diff options
author | Anas Nashif <anas.nashif@intel.com> | 2013-03-28 06:15:12 -0700 |
---|---|---|
committer | Lukasz Skalski <l.skalski@samsung.com> | 2014-11-13 12:02:54 +0100 |
commit | 5bb798cd292deb121ebdf65fe11cec30fcc209cb (patch) | |
tree | 9b69bf6a88ba5f9ea5dd5001b634e0e4d0f322fa | |
parent | 0e85d01cea7912dc76e4e0b44c9e0ed9d8e34f21 (diff) | |
download | dbus-5bb798cd292deb121ebdf65fe11cec30fcc209cb.tar.gz dbus-5bb798cd292deb121ebdf65fe11cec30fcc209cb.tar.bz2 dbus-5bb798cd292deb121ebdf65fe11cec30fcc209cb.zip |
use libname directly
-rw-r--r-- | packaging/dbus.spec | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/packaging/dbus.spec b/packaging/dbus.spec index 5558e0e3..108e1e1f 100644 --- a/packaging/dbus.spec +++ b/packaging/dbus.spec @@ -1,7 +1,6 @@ %define dbus_user_uid 81 Name: dbus -%define _libname libdbus Url: http://dbus.freedesktop.org/ Summary: D-Bus Message Bus System License: GPL-2.0+ or AFL-2.1 @@ -35,7 +34,7 @@ Requires(pre): /usr/sbin/groupadd /usr/sbin/useradd Provides: dbus-1 -%package -n %{_libname} +%package -n libdbus Summary: Library package for D-Bus Group: Base/IPC @@ -43,7 +42,7 @@ Group: Base/IPC Summary: Developer package for D-Bus Group: Development/Libraries -Requires: %{_libname} = %{version} +Requires: libdbus = %{version} Requires: dbus Requires: glibc-devel @@ -62,7 +61,7 @@ a general one-to-one message passing framework, which can be used by any two apps to communicate directly (without going through the message bus daemon). -%description -n %{_libname} +%description -n libdbus D-Bus is a message bus system, a simple way for applications to talk to one another. D-Bus supplies both a system daemon and a per-user-login-session daemon. Also, the message bus is built on top of @@ -150,9 +149,9 @@ install -m0644 %{SOURCE6} %{buildroot}%{_unitdir_user}/dbus.socket /usr/sbin/useradd -c 'System message bus' -u %{dbus_user_uid} -g %{dbus_user_uid} \ -s /sbin/nologin -r -d '/' dbus 2> /dev/null || : -%post -n %{_libname} -p /sbin/ldconfig +%post -n libdbus -p /sbin/ldconfig -%postun -n %{_libname} -p /sbin/ldconfig +%postun -n libdbus -p /sbin/ldconfig %docs_package @@ -188,7 +187,7 @@ install -m0644 %{SOURCE6} %{buildroot}%{_unitdir_user}/dbus.socket %dir %{_unitdir}/sockets.target.wants %{_unitdir}/sockets.target.wants/dbus.socket -%files -n %{_libname} +%files -n libdbus %defattr(-, root, root) %{_libdir}/libdbus-1.so.* # Own those directories in the library instead of dbus-1, since dbus users |