fixed runtime dependencies
authorAnas Nashif <anas.nashif@intel.com>
Tue, 3 Sep 2013 20:45:50 +0000 (16:45 -0400)
committerChanho Park <chanho61.park@samsung.com>
Fri, 28 Nov 2014 06:17:39 +0000 (15:17 +0900)
- Do not depend on RPM to get version of dbus
- Fixed package groups

Change-Id: Ie3bf84eef9542a889e251bf7f05c0f9715f3cf67
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
packaging/dbus-python.spec

index bc53a51..9df22eb 100644 (file)
@@ -3,7 +3,7 @@ Version:        1.1.1
 Release:        0
 Summary:        Python bindings for D-Bus
 License:        MIT
-Group:          Development/Libraries/Python
+Group:          System/Libraries
 Url:            http://www.freedesktop.org/wiki/Software/DBusBindings/
 Source0:        http://dbus.freedesktop.org/releases/dbus-python/dbus-python-%{version}.tar.gz
 Source1001:    dbus-python.manifest
@@ -13,18 +13,16 @@ BuildRequires:  pkgconfig(dbus-1)
 BuildRequires:  pkgconfig(dbus-glib-1)
 Requires:       libxml2-python
 Requires:       python-xml
-Requires:       dbus >= %( echo `rpm -q --queryformat '%{VERSION}' dbus`)
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+Requires:       dbus >= 1.6.10
 
 %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}' dbus`)
-Requires:       dbus-devel >= %( echo `rpm -q --queryformat '%{VERSION}' dbus-devel`)
+Requires:       dbus >= 1.6.10
+Requires:       dbus-devel >= 1.6.10
 
 %description  devel
 Developer files for Python bindings for D-Bus.
@@ -39,9 +37,7 @@ export CFLAGS="%{optflags} -fstack-protector -fno-strict-aliasing -fPIC"
 make %{?_smp_mflags}
 
 %install
-make DESTDIR=%{buildroot} install
-
-# Install additional docs
+%make_install
 
 
 %remove_docs