- Fix autotext symlinking to point right path.

OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=129
This commit is contained in:
Tomáš Chvátal 2014-04-09 09:44:48 +00:00 committed by Git OBS Bridge
parent 3ef484c576
commit b47a93160d
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Apr 9 09:44:26 UTC 2014 - tchvatal@suse.com
- Fix autotext symlinking to point right path.
-------------------------------------------------------------------
Fri Mar 28 12:23:02 CET 2014 - fcrozat@suse.com

View File

@ -1054,7 +1054,7 @@ for file in idxcaption.xsl idxcontent.xsl main_transform.xsl ; do
echo "%{_datadir}/%{name}/help/$file" >> file-lists/common_list.txt
done
# autotext is another self contained dir
mkdir -p %{buildroot}/%{_datadir}/%{name}/autotext/
mkdir -p %{buildroot}/%{_datadir}/%{name}/share/autotext/
grep -v '%{_libdir}/%{name}/share/autotext' file-lists/common_list.txt > tmplist
mv tmplist file-lists/common_list.txt
mv %{buildroot}/%{_libdir}/%{name}/share/autotext/ %{buildroot}/%{_datadir}/%{name}/share/
@ -1129,7 +1129,7 @@ if [ -d "$helpdir" ]; then
fi
if [ -d "$autotextdir" ]; then
rm -rf "$autotextdir" || true
ln -s "%{_datadir}/%{name}/autotext" "$autotextdir"
ln -s "%{_datadir}/%{name}/share/autotext" "$autotextdir"
fi
%post