Be less strict with dbus dependencies
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 29 Nov 2012 12:10:54 +0000 (12:10 +0000)
committerChanho Park <chanho61.park@samsung.com>
Fri, 28 Nov 2014 06:17:39 +0000 (15:17 +0900)
A locally-rebuilt version of dbus will end up with release 0, causing
it not to satisfy the dependency any more. It shouldn't be necessary to
depend on a specific release anyway: library functionality is what
really matters, and that's determined by the upstream version.

packaging/dbus-python.spec

index 6bd3445..d571dd7 100644 (file)
@@ -12,7 +12,7 @@ BuildRequires:  pkgconfig(dbus-1)
 BuildRequires:  pkgconfig(dbus-glib-1)
 Requires:       libxml2-python
 Requires:       python-xml
-Requires:       dbus >= %( echo `rpm -q --queryformat '%{VERSION}-%{RELEASE}' dbus`)
+Requires:       dbus >= %( echo `rpm -q --queryformat '%{VERSION}' dbus`)
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -22,8 +22,8 @@ D-Bus python bindings for use with python programs.
 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`)
+Requires:       dbus >= %( echo `rpm -q --queryformat '%{VERSION}' dbus`)
+Requires:       dbus-devel >= %( echo `rpm -q --queryformat '%{VERSION}' dbus-devel`)
 
 %description  devel
 Developer files for Python bindings for D-Bus.