- Fix python3_sitelib not being around for py2
OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=261
This commit is contained in:
parent
698059fe40
commit
df85ecbfa5
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 17 12:57:07 UTC 2015 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Fix python3_sitelib not being around for py2
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Apr 16 12:23:40 UTC 2015 - tchvatal@suse.com
|
Thu Apr 16 12:23:40 UTC 2015 - tchvatal@suse.com
|
||||||
|
|
||||||
|
@ -51,6 +51,7 @@
|
|||||||
%global python_type python3
|
%global python_type python3
|
||||||
%else
|
%else
|
||||||
%global python_type python
|
%global python_type python
|
||||||
|
%global python3_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
|
||||||
%endif
|
%endif
|
||||||
# List of supported langs, populated bellow in the lang macros
|
# List of supported langs, populated bellow in the lang macros
|
||||||
%global langpack_langs %{nil}
|
%global langpack_langs %{nil}
|
||||||
@ -1278,6 +1279,8 @@ done
|
|||||||
mkdir -p %{buildroot}%{python3_sitelib}
|
mkdir -p %{buildroot}%{python3_sitelib}
|
||||||
ln -s %{_libdir}/libreoffice/program/uno.py %{buildroot}%{python3_sitelib}/uno.py
|
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/unohelper.py %{buildroot}%{python3_sitelib}/unohelper.py
|
||||||
|
echo "%{python3_sitelib}/uno.py" >> file-lists/pyuno_list.txt
|
||||||
|
echo "%{python3_sitelib}/unohelper.py" >> file-lists/pyuno_list.txt
|
||||||
|
|
||||||
# Install appdata files, so we're shown in gnome-software (and other, future app stores)
|
# Install appdata files, so we're shown in gnome-software (and other, future app stores)
|
||||||
# upstream ships the files called libreoffice-{base,writer,...}, but the destop files are called base.destop [...]
|
# upstream ships the files called libreoffice-{base,writer,...}, but the destop files are called base.destop [...]
|
||||||
@ -1425,8 +1428,6 @@ exit 0
|
|||||||
|
|
||||||
%files -f file-lists/pyuno_list.txt pyuno
|
%files -f file-lists/pyuno_list.txt pyuno
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{python3_sitelib}/uno.py
|
|
||||||
%{python3_sitelib}/unohelper.py
|
|
||||||
|
|
||||||
%files -f file-lists/gnome_list.txt gnome
|
%files -f file-lists/gnome_list.txt gnome
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
Loading…
Reference in New Issue
Block a user