Author: cactus                       Date: Mon Nov 28 00:59:09 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add libs subpackage - now it is possible to install systemd-devel without 
systemd

---- Files affected:
packages/systemd:
   systemd.spec (1.42 -> 1.43) 

---- Diffs:

================================================================
Index: packages/systemd/systemd.spec
diff -u packages/systemd/systemd.spec:1.42 packages/systemd/systemd.spec:1.43
--- packages/systemd/systemd.spec:1.42  Mon Nov 28 01:17:59 2011
+++ packages/systemd/systemd.spec       Mon Nov 28 01:59:04 2011
@@ -55,6 +55,7 @@
 BuildRequires: rpmbuild(macros) >= 1.527
 BuildRequires: udev-devel >= 160
 BuildRequires: vala >= 0.10.0
+Requires:      %{name}-libs = %{version}-%{release}
 Requires:      %{name}-units = %{version}-%{release}
 Requires:      SysVinit-tools
 Requires:      agetty
@@ -129,11 +130,18 @@
 %description -n bash-completion-systemd
 bash-completion for systemd.
 
+%package libs
+Summary:       Shared systemd library
+Group:         Libraries
+
+%description libs
+Shared systemd library.
+
 %package devel
 Summary:       Header files for systemd libraries
 Summary(pl.UTF-8):     Pliki nagłówkowe bibliotek systemd
 Group:         Development/Libraries
-Requires:      %{name} = %{version}-%{release}
+Requires:      %{name}-libs = %{version}-%{release}
 
 %description devel
 Header files for systemd libraries.
@@ -210,16 +218,17 @@
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/sbin/ldconfig
 /bin/systemd-machine-id-setup > /dev/null 2>&1 || :
 /bin/systemctl daemon-reexec > /dev/null 2>&1 || :
 
 %postun
-/sbin/ldconfig
 if [ $1 -ge 1 ]; then
        /bin/systemctl try-restart systemd-logind.service >/dev/null 2>&1 || :
 fi
 
+%post  libs -p /sbin/ldconfig
+%postun        libs -p /sbin/ldconfig
+
 %post units
 if [ $1 -eq 1 ]; then
        # Try to read default runlevel from the old inittab if it exists
@@ -287,10 +296,6 @@
 %attr(755,root,root) /sbin/shutdown
 %attr(755,root,root) /sbin/telinit
 %attr(755,root,root) /lib/systemd/systemd-*
-%attr(755,root,root) /%{_lib}/libsystemd-daemon.so.*.*.*
-%attr(755,root,root) %ghost /%{_lib}/libsystemd-daemon.so.0
-%attr(755,root,root) /%{_lib}/libsystemd-login.so.*.*.*
-%attr(755,root,root) %ghost /%{_lib}/libsystemd-login.so.0
 
 %dir %{_libexecdir}/systemd
 %{_libexecdir}/systemd/user
@@ -375,6 +380,13 @@
 %{_mandir}/man8/pam_systemd.8*
 %endif
 
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) /%{_lib}/libsystemd-daemon.so.*.*.*
+%attr(755,root,root) %ghost /%{_lib}/libsystemd-daemon.so.0
+%attr(755,root,root) /%{_lib}/libsystemd-login.so.*.*.*
+%attr(755,root,root) %ghost /%{_lib}/libsystemd-login.so.0
+
 %files units
 %defattr(644,root,root,755)
 %dir %{_sysconfdir}/binfmt.d
@@ -423,6 +435,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.43  2011/11/28 00:59:04  cactus
+- add libs subpackage - now it is possible to install systemd-devel without 
systemd
+
 Revision 1.42  2011/11/28 00:17:59  cactus
 - S: ConsoleKit-systemd, rsyslog-systemd, udev-systemd
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/systemd/systemd.spec?r1=1.42&r2=1.43&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to