%{_lockdir} is %ghost-ed (#983772)

This commit is contained in:
Jiri Popelka 2013-07-12 15:34:01 +02:00
parent 02d51bb1b1
commit f0b3e10d29

View File

@ -10,7 +10,7 @@
Summary: A library for locking devices Summary: A library for locking devices
Name: lockdev Name: lockdev
Version: 1.0.4 Version: 1.0.4
Release: 0.7.%{checkout}%{?dist} Release: 0.8.%{checkout}%{?dist}
License: LGPLv2 License: LGPLv2
Group: System Environment/Libraries Group: System Environment/Libraries
URL: https://alioth.debian.org/projects/lockdev/ URL: https://alioth.debian.org/projects/lockdev/
@ -73,19 +73,28 @@ make install DESTDIR=%{buildroot}
rm -f %{buildroot}%{_libdir}/*.la 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} mkdir -p %{buildroot}%{_lockdir}
%pre %pre
getent group lock >/dev/null || groupadd -g 54 -r -f lock getent group lock >/dev/null || groupadd -g 54 -r -f lock
exit 0 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 %postun -p /sbin/ldconfig
%files %files
%doc COPYING AUTHORS %doc COPYING AUTHORS
%dir %attr(0775,root,lock) %{_lockdir} %ghost %dir %attr(0775,root,lock) %{_lockdir}
%attr(2711,root,lock) %{_sbindir}/lockdev %attr(2711,root,lock) %{_sbindir}/lockdev
%{_libdir}/*.so.* %{_libdir}/*.so.*
%{_mandir}/man8/* %{_mandir}/man8/*
@ -97,6 +106,9 @@ exit 0
%{_includedir}/* %{_includedir}/*
%changelog %changelog
* Fri Jul 12 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.4-0.8.20111007git
- %%{_lockdir} is %%ghost-ed (#983772)
* Mon Jun 03 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.4-0.7.20111007git * Mon Jun 03 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.4-0.7.20111007git
- Replace access() calls with euidaccess(), build with -D_GNU_SOURCE (600636#c9) - Replace access() calls with euidaccess(), build with -D_GNU_SOURCE (600636#c9)