1
0

Accepting request 110186 from devel:languages:python

Fix Qt Designer plugin directories.  I have tested Qt Designer with these directories and they work, so this version should fix the problem. (forwarded request 110123 from TheBlackCat)

OBS-URL: https://build.opensuse.org/request/show/110186
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-matplotlib?expand=0&rev=18
This commit is contained in:
Stephan Kulow 2012-03-22 11:39:07 +00:00 committed by Git OBS Bridge
parent a33e2683c5
commit a306367f2d
2 changed files with 15 additions and 9 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Mar 20 10:08:51 UTC 2012 - toddrme2178@gmail.com
- Fix Qt Designer plugin directories
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Mar 16 15:13:32 UTC 2012 - toddrme2178@gmail.com Fri Mar 16 15:13:32 UTC 2012 - toddrme2178@gmail.com

View File

@ -94,7 +94,7 @@ Requires: python-wxGTK
wxWidgets backend for %{name} plotting package wxWidgets backend for %{name} plotting package
%package designer %package designer
Summary: %{name} widget for Qt Designer Summary: Qt Designer %{name} plugin
Group: Development/Libraries/Python Group: Development/Libraries/Python
License: MIT License: MIT
Requires: %{name} = %{version} Requires: %{name} = %{version}
@ -118,9 +118,9 @@ python setup.py build
%install %install
python setup.py install --root=%{buildroot} \ python setup.py install --root=%{buildroot} \
--record-rpm=INSTALLED_FILES --prefix=%{_prefix} --record-rpm=INSTALLED_FILES --prefix=%{_prefix}
mkdir -p %{buildroot}%{_libdir}/qt4/PyQt4/plugins/ mkdir -p %{buildroot}%{_libdir}/qt4/plugins/designer/python/
cp -v %{SOURCE2} %{buildroot}%{_libdir}/qt4/PyQt4/plugins/ install -vm 755 %{SOURCE2} %{buildroot}%{_libdir}/qt4/plugins/designer/python/
cp -v %{SOURCE3} %{buildroot}%{py_sitedir}/%{modname}/ install -vm 755 %{SOURCE3} %{buildroot}%{py_sitedir}/
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
@ -139,7 +139,6 @@ rm -rf %{buildroot}
%exclude %{py_sitedir}/%{modname}/backends/_tkagg.so %exclude %{py_sitedir}/%{modname}/backends/_tkagg.so
%exclude %{py_sitedir}/%{modname}/backends/backend_wx.* %exclude %{py_sitedir}/%{modname}/backends/backend_wx.*
%exclude %{py_sitedir}/%{modname}/backends/backend_wxagg.* %exclude %{py_sitedir}/%{modname}/backends/backend_wxagg.*
%exclude %{py_sitedir}/%{modname}/%{modname}widget.py
%files tk %files tk
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -154,9 +153,11 @@ rm -rf %{buildroot}
%files designer %files designer
%defattr(-,root,root,-) %defattr(-,root,root,-)
%dir %{_libdir}/qt4/PyQt4 %dir %{_libdir}/qt4/
%dir %{_libdir}/qt4/PyQt4/plugins %dir %{_libdir}/qt4/plugins/
%{_libdir}/qt4/PyQt4/plugins/%{modname}plugin.py %dir %{_libdir}/qt4/plugins/designer/
%{py_sitedir}/%{modname}/%{modname}widget.py %dir %{_libdir}/qt4/plugins/designer/python/
%{_libdir}/qt4/plugins/designer/python/%{modname}plugin.py
%{py_sitedir}/%{modname}widget.py
%changelog %changelog