- Fixup pyuno loading as it broke when we dropped the uno patch
OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=466
This commit is contained in:
parent
631912789c
commit
fe98156986
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 14 12:20:48 UTC 2017 - tchvatal@suse.com
|
||||
|
||||
- Fixup pyuno loading as it broke when we dropped the uno patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 4 00:46:52 UTC 2017 - zaitor@opensuse.org
|
||||
|
||||
|
@ -1221,6 +1221,13 @@ done
|
||||
# Remove pointless readmes
|
||||
rm -rf %{buildroot}%{_libdir}/%{name}/readmes/
|
||||
|
||||
# Prepare uno path detection, can't be patched in because it breaks tests
|
||||
echo "import sys, os" > uno.py
|
||||
echo "sys.path.append('%{baseinstdir}/program')" >> uno.py
|
||||
echo "os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:%{_libdir}/libreoffice/program/fundamentalrc')" >> uno.py
|
||||
cat %{buildroot}%{_libdir}/%{name}/program/uno.py >> uno.py
|
||||
cp uno.py %{buildroot}%{_libdir}/%{name}/program/uno.py
|
||||
|
||||
# Generate python cache files
|
||||
%py3_compile %{buildroot}/%{_libdir}/libreoffice/program/
|
||||
%py3_compile %{buildroot}/%{_libdir}/libreoffice/share/extensions/
|
||||
@ -1249,8 +1256,10 @@ ln -s %{_libdir}/%{name}/program/liblibreofficekitgtk.so %{buildroot}%{_libdir}/
|
||||
mkdir -p %{buildroot}%{python3_sitelib}
|
||||
ln -s %{_libdir}/libreoffice/program/uno.py %{buildroot}%{python3_sitelib}/uno.py
|
||||
ln -s %{_libdir}/libreoffice/program/unohelper.py %{buildroot}%{python3_sitelib}/unohelper.py
|
||||
ln -s %{_libdir}/libreoffice/program/officehelper.py %{buildroot}%{python3_sitelib}/officehelper.py
|
||||
echo "%{python3_sitelib}/uno.py" >> file-lists/pyuno_list.txt
|
||||
echo "%{python3_sitelib}/unohelper.py" >> file-lists/pyuno_list.txt
|
||||
echo "%{python3_sitelib}/officehelper.py" >> file-lists/pyuno_list.txt
|
||||
|
||||
# move glade catalog to system glade dir
|
||||
install -m 0755 -d %{buildroot}%{_datadir}/glade/catalogs
|
||||
|
Loading…
x
Reference in New Issue
Block a user