revert previous change and use %tmpfiles_create in %post
This commit is contained in:
parent
55504ab25d
commit
33fbffc3dd
17
lockdev.spec
17
lockdev.spec
@ -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.12.%{checkout}%{?dist}
|
Release: 0.13.%{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/
|
||||||
@ -24,7 +24,7 @@ Patch1: lockdev-euidaccess.patch
|
|||||||
Requires(pre): shadow-utils
|
Requires(pre): shadow-utils
|
||||||
Requires(post): glibc
|
Requires(post): glibc
|
||||||
Requires(postun): glibc
|
Requires(postun): glibc
|
||||||
Requires: systemd-units >= 13
|
Requires: systemd
|
||||||
|
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
@ -73,6 +73,7 @@ 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
|
# on reboot re-created by %%{_prefix}/lib/tmpfiles.d/legacy.conf
|
||||||
mkdir -p %{buildroot}%{_lockdir}
|
mkdir -p %{buildroot}%{_lockdir}
|
||||||
|
|
||||||
@ -81,12 +82,19 @@ getent group lock >/dev/null 2>&1 || groupadd -g 54 -r -f lock >/dev/null 2>&1 |
|
|||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%post
|
||||||
|
/sbin/ldconfig
|
||||||
|
if [ $1 -eq 1 ] ; then
|
||||||
|
# for the time until first reboot
|
||||||
|
%tmpfiles_create
|
||||||
|
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/*
|
||||||
@ -98,6 +106,9 @@ getent group lock >/dev/null 2>&1 || groupadd -g 54 -r -f lock >/dev/null 2>&1 |
|
|||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Nov 28 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.4-0.13.20111007git
|
||||||
|
- revert previous change and use %%tmpfiles_create in %%post
|
||||||
|
|
||||||
* Wed Nov 27 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.4-0.12.20111007git
|
* Wed Nov 27 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.4-0.12.20111007git
|
||||||
- do not %%ghost /var/lock/lockdev (https://fedorahosted.org/fesco/ticket/525)
|
- do not %%ghost /var/lock/lockdev (https://fedorahosted.org/fesco/ticket/525)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user