Remove the %post scriptlet completely (#983772)

This commit is contained in:
Jiri Popelka 2013-08-26 15:30:00 +02:00
parent 7203794ad4
commit 5430dec9ba

View File

@ -10,7 +10,7 @@
Summary: A library for locking devices
Name: lockdev
Version: 1.0.4
Release: 0.10.%{checkout}%{?dist}
Release: 0.11.%{checkout}%{?dist}
License: LGPLv2
Group: System Environment/Libraries
URL: https://alioth.debian.org/projects/lockdev/
@ -80,13 +80,7 @@ mkdir -p %{buildroot}%{_lockdir}
%pre
getent group lock >/dev/null 2>&1 || groupadd -g 54 -r -f lock >/dev/null 2>&1 || :
%post
/sbin/ldconfig
if [ $1 -eq 1 ] ; then
# for the time until first reboot
mkdir --mode=0775 -p %{_lockdir} >/dev/null 2>&1 || :
chown root:lock %{_lockdir} >/dev/null 2>&1 || :
fi
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
@ -105,6 +99,9 @@ fi
%{_includedir}/*
%changelog
* Mon Aug 26 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.4-0.11.20111007git
- Remove the %%post scriptlet completely (#983772)
* Mon Aug 26 2013 Jiri Popelka <jpopelka@redhat.com> - 1.0.4-0.10.20111007git
- Silence possible %%post scriptlet errors (#983772)