diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-10-30 16:39:17 -0700 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-28 15:17:39 +0900 |
commit | a4183f6ecca186bd576104d7f110ae29e9780ba6 (patch) | |
tree | 921c7a8527c93671e1917f124e5fadb8c5284cfe | |
parent | 74fd01c9252e24ef192d00efd4cab21b3c64ab18 (diff) | |
download | dbus-python-a4183f6ecca186bd576104d7f110ae29e9780ba6.tar.gz dbus-python-a4183f6ecca186bd576104d7f110ae29e9780ba6.tar.bz2 dbus-python-a4183f6ecca186bd576104d7f110ae29e9780ba6.zip |
add packaging
-rw-r--r-- | packaging/dbus-python.spec | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/packaging/dbus-python.spec b/packaging/dbus-python.spec new file mode 100644 index 0000000..6bd3445 --- /dev/null +++ b/packaging/dbus-python.spec @@ -0,0 +1,58 @@ +Name: dbus-python +Version: 1.1.1 +Release: 0 +Summary: Python bindings for D-Bus +License: MIT +Group: Development/Libraries/Python +Url: http://www.freedesktop.org/wiki/Software/DBusBindings/ +Source0: http://dbus.freedesktop.org/releases/dbus-python/dbus-python-%{version}.tar.gz +BuildRequires: fdupes +BuildRequires: python-devel +BuildRequires: pkgconfig(dbus-1) +BuildRequires: pkgconfig(dbus-glib-1) +Requires: libxml2-python +Requires: python-xml +Requires: dbus >= %( echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' dbus`) +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +D-Bus python bindings for use with python programs. + +%package devel +Summary: Python bindings for D-Bus +Group: Development/Libraries/Python +Requires: dbus-python = %{version} +Requires: dbus >= %( echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' dbus`) +Requires: dbus-devel >= %( echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' dbus-devel`) + +%description devel +Developer files for Python bindings for D-Bus. + +%prep +%setup -q + +%build +export CFLAGS="%{optflags} -fstack-protector -fno-strict-aliasing -fPIC" +%configure --docdir=%{_docdir}/dbus-python +make %{?_smp_mflags} + +%install +make DESTDIR=%{buildroot} install + +# Install additional docs + + +%remove_docs +%fdupes -s %{buildroot} + +%files +%defattr(-,root,root,-) +%{python_sitelib}/* +%{python_sitearch}/* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/dbus-1.0/dbus/dbus-python.h +%{_libdir}/pkgconfig/dbus-python.pc + +%changelog |