Move scriptlets to a more logical space in the spec

Accidentally slopped into middle of %files sections by yours truly.
This commit is contained in:
Panu Matilainen 2020-06-01 09:41:28 +03:00
parent 08269f4d3c
commit 03c8fed85d

View File

@ -402,6 +402,18 @@ rm -f $RPM_BUILD_ROOT/%{_fileattrsdir}/{perl*,python*}
make check || (cat tests/rpmtests.log; exit 1)
%endif
# Handle rpmdb rebuild service on erasure of old to avoid ordering issues
# https://pagure.io/fesco/issue/2382
%triggerun -- rpm < 4.15.90-0.git14971.10
if [ -x /usr/bin/systemctl ]; then
systemctl --no-reload preset rpmdb-rebuild ||:
fi
%posttrans
if [ -f /var/lib/rpm/Packages ]; then
touch /var/lib/rpm/.rebuilddb
fi
%files -f rpm.lang
%license COPYING
%doc CREDITS doc/manual/[a-z]*
@ -458,18 +470,6 @@ make check || (cat tests/rpmtests.log; exit 1)
%dir %{rpmhome}/fileattrs
# Handle rpmdb rebuild service on erasure of old to avoid ordering issues
# https://pagure.io/fesco/issue/2382
%triggerun -- rpm < 4.15.90-0.git14971.10
if [ -x /usr/bin/systemctl ]; then
systemctl --no-reload preset rpmdb-rebuild ||:
fi
%posttrans
if [ -f /var/lib/rpm/Packages ]; then
touch /var/lib/rpm/.rebuilddb
fi
%files libs
%{_libdir}/librpmio.so.*
%{_libdir}/librpm.so.*