Require pkgconfig(x11) for building
authorAnas Nashif <anas.nashif@intel.com>
Sun, 30 Dec 2012 05:40:45 +0000 (21:40 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Sun, 30 Dec 2012 05:40:45 +0000 (21:40 -0800)
Do not require bogus libx11-devel, that does not match any package
and is wrongly provided by libX11 package.

Also, do not require ldconfig, RPM is smart enough to to require this
based on the %post -p <script> call.

Change-Id: I154c4fee1ccdef2546ab455b71e38cc21c32c7ea

packaging/dbus.spec

index 53242c7..c4bdbcc 100755 (executable)
@@ -21,7 +21,7 @@ Patch7:         0007-Set-correct-address-when-using-address-systemd.patch
 Requires:      %{name}-libs = %{version}
 BuildRequires:  expat-devel >= 1.95.5
 BuildRequires:  libtool
-BuildRequires:  libx11-devel
+BuildRequires:  pkgconfig(x11)
 BuildRequires:  pkgconfig(libsmack)
 #BuildRequires:  pkgconfig(libsystemd-daemon)
 #BuildRequires:  pkgconfig(libsystemd-login)
@@ -38,8 +38,6 @@ Summary:    Libraries for accessing D-Bus
 Group:      System/Libraries
 #FIXME: This is circular dependency
 Requires:   %{name} = %{version}-%{release}
-Requires(post): /sbin/ldconfig
-Requires(postun): /sbin/ldconfig
 
 %description libs
 Lowlevel libraries for accessing D-Bus.