]> git.pld-linux.org Git - packages/ConsoleKit.git/commitdiff
- mv to new rpm macros, add post,preun,postun actions
authorBartłomiej Zimoń <cactus@pld-linux.org>
Sun, 4 Dec 2011 01:41:08 +0000 (01:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ConsoleKit.spec -> 1.43

ConsoleKit.spec

index df5df920b0c81e7747a946a529b79a4d29c9aa20..b3d389bf1ba65ad787b9228c9090538e786bf98d 100644 (file)
@@ -17,7 +17,7 @@ BuildRequires:        glibc-devel >= 6:2.4
 BuildRequires: pam-devel >= 0.80
 BuildRequires: pkgconfig
 BuildRequires: polkit-devel >= 0.92
-BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: rpmbuild(macros) >= 1.623
 BuildRequires: xmlto
 BuildRequires: xorg-lib-libX11-devel >= 1.0.0
 BuildRequires: zlib-devel
@@ -126,7 +126,7 @@ systemd units for ConsoleKit.
        --enable-static \
        --with-pam-module-dir=/%{_lib}/security \
        --with-pid-file=%{_localstatedir}/run/console-kit-daemon.pid \
-       --with-systemdsystemunitdir=/lib/systemd/system
+       --with-systemdsystemunitdir=%{systemdunitdir}
 
 %{__make} -j1
 
@@ -154,6 +154,15 @@ rm -rf $RPM_BUILD_ROOT
 %post  libs -p /sbin/ldconfig
 %postun        libs -p /sbin/ldconfig
 
+%post systemd
+%systemd_post
+
+%postun systemd
+%systemd_postun console-kit-daemon.service
+
+%preun systemd
+%systemd_preun console-kit-daemon.service
+
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README TODO
@@ -216,12 +225,12 @@ rm -rf $RPM_BUILD_ROOT
 
 %files systemd
 %defattr(644,root,root,755)
-/lib/systemd/system/basic.target.wants/console-kit-log-system-start.service
-/lib/systemd/system/console-kit-daemon.service
-/lib/systemd/system/console-kit-log-system-restart.service
-/lib/systemd/system/console-kit-log-system-start.service
-/lib/systemd/system/console-kit-log-system-stop.service
-/lib/systemd/system/halt.target.wants/console-kit-log-system-stop.service
-/lib/systemd/system/kexec.target.wants/console-kit-log-system-restart.service
-/lib/systemd/system/poweroff.target.wants/console-kit-log-system-stop.service
-/lib/systemd/system/reboot.target.wants/console-kit-log-system-restart.service
+%{systemdunitdir}/basic.target.wants/console-kit-log-system-start.service
+%{systemdunitdir}/console-kit-daemon.service
+%{systemdunitdir}/console-kit-log-system-restart.service
+%{systemdunitdir}/console-kit-log-system-start.service
+%{systemdunitdir}/console-kit-log-system-stop.service
+%{systemdunitdir}/halt.target.wants/console-kit-log-system-stop.service
+%{systemdunitdir}/kexec.target.wants/console-kit-log-system-restart.service
+%{systemdunitdir}/poweroff.target.wants/console-kit-log-system-stop.service
+%{systemdunitdir}/reboot.target.wants/console-kit-log-system-restart.service
This page took 0.08703 seconds and 4 git commands to generate.