Tomáš Chvátal 2015-03-05 12:51:26 +00:00 committed by Git OBS Bridge
parent efb2bdaa81
commit ac00497cb0
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Mar 5 12:51:02 UTC 2015 - tchvatal@suse.com
- Move pretrans to pre
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Feb 26 21:06:18 UTC 2015 - tchvatal@suse.com Thu Feb 26 21:06:18 UTC 2015 - tchvatal@suse.com

View File

@ -1121,7 +1121,7 @@ rm -rf %{buildroot}%{_libdir}/%{name}/readmes/
# We have ton of duped files so run over it # We have ton of duped files so run over it
%fdupes %{buildroot}/usr %fdupes %{buildroot}/usr
%pretrans %pre
# do not crate cache for bundled extensions because it is not secure # do not crate cache for bundled extensions because it is not secure
# rather remove it (fdo#53006, fdo#51252, bnc#769448) # rather remove it (fdo#53006, fdo#51252, bnc#769448)
# Remove after 12.2 is out of support/migration scope. # Remove after 12.2 is out of support/migration scope.
@ -1136,12 +1136,13 @@ autotextdir="%{_libdir}/%{name}/share/autotext"
if [ -d "$helpdir" ]; then if [ -d "$helpdir" ]; then
rm -rf "$helpdir" || true rm -rf "$helpdir" || true
rm -f %{_datadir}/%{name}/help/* || true rm -f %{_datadir}/%{name}/help/* || true
ln -s "%{_datadir}/%{name}/help" "$helpdir" ln -s "%{_datadir}/%{name}/help" "$helpdir" || true
fi fi
if [ -d "$autotextdir" ]; then if [ -d "$autotextdir" ]; then
rm -rf "$autotextdir" || true rm -rf "$autotextdir" || true
ln -s "%{_datadir}/%{name}/share/autotext" "$autotextdir" ln -s "%{_datadir}/%{name}/share/autotext" "$autotextdir" || true
fi fi
exit 0
%post %post
/sbin/ldconfig /sbin/ldconfig