Tomáš Chvátal 2015-05-14 09:14:44 +00:00 committed by Git OBS Bridge
parent 3fd46b28ae
commit 740f8c1a03

View File

@ -1229,6 +1229,7 @@ grep -v '%{_libdir}/%{name}/help' file-lists/common_list.txt > tmplist
mv tmplist file-lists/common_list.txt
echo "%dir %{_datadir}/%{name}/help" >>file-lists/common_list.txt
mv %{buildroot}/%{_libdir}/%{name}/help/ %{buildroot}/%{_datadir}/%{name}/
mkdir -p %{buildroot}/%{_libdir}/%{name}/help/
for file in idxcaption.xsl idxcontent.xsl main_transform.xsl ; do
mv "%{buildroot}/%{_datadir}/%{name}/help/$file" "%{buildroot}/%{_libdir}/%{name}/help/$file"
echo "%{_libdir}/%{name}/help/$file" >> file-lists/common_list.txt
@ -1320,26 +1321,6 @@ chrpath --delete %{buildroot}%{_libdir}/%{name}/program/librasqal-lo.so.3
# We have ton of duped files so run over it
%fdupes %{buildroot}%{_prefix}
%pre
# do not crate cache for bundled extensions because it is not secure
# rather remove it (fdo#53006, fdo#51252, bnc#769448)
# Remove after 12.2 is out of support/migration scope.
bundled_cache="%{_libdir}/%{name}/share/prereg/bundled"
if [ -d "$bundled_cache" ]; then
rm -rf "$bundled_cache"/* || true
fi
# Directory to symlink is not working in RPM so workaround it
# FIXME: Remove after 13.1 is out of update scope.
helpdir="%{_libdir}/%{name}/help"
autotextdir="%{_libdir}/%{name}/share/autotext"
if [ -d "$helpdir" ]; then
rm -rf "$helpdir" || true
fi
if [ -d "$autotextdir" ]; then
rm -rf "$autotextdir" || true
fi
exit 0
%post
/sbin/ldconfig
%mime_database_post