diff --git a/lockdev.spec b/lockdev.spec index 464b4d9..f044ae3 100644 --- a/lockdev.spec +++ b/lockdev.spec @@ -10,7 +10,7 @@ Summary: A library for locking devices Name: lockdev Version: 1.0.4 -Release: 0.7.%{checkout}%{?dist} +Release: 0.8.%{checkout}%{?dist} License: LGPLv2 Group: System Environment/Libraries URL: https://alioth.debian.org/projects/lockdev/ @@ -73,19 +73,28 @@ make install DESTDIR=%{buildroot} rm -f %{buildroot}%{_libdir}/*.la +# %%ghosted, but needs to be in buildroot +# on reboot re-created by %%{_prefix}/lib/tmpfiles.d/legacy.conf mkdir -p %{buildroot}%{_lockdir} %pre getent group lock >/dev/null || groupadd -g 54 -r -f lock exit 0 -%post -p /sbin/ldconfig +%post +/sbin/ldconfig +if [ $1 -eq 1 ] ; then +# for the time until first reboot + mkdir --mode=0775 -p %{_lockdir} + chown root:lock %{_lockdir} +fi + %postun -p /sbin/ldconfig %files %doc COPYING AUTHORS -%dir %attr(0775,root,lock) %{_lockdir} +%ghost %dir %attr(0775,root,lock) %{_lockdir} %attr(2711,root,lock) %{_sbindir}/lockdev %{_libdir}/*.so.* %{_mandir}/man8/* @@ -97,6 +106,9 @@ exit 0 %{_includedir}/* %changelog +* Fri Jul 12 2013 Jiri Popelka - 1.0.4-0.8.20111007git +- %%{_lockdir} is %%ghost-ed (#983772) + * Mon Jun 03 2013 Jiri Popelka - 1.0.4-0.7.20111007git - Replace access() calls with euidaccess(), build with -D_GNU_SOURCE (600636#c9)