Hello community, here is the log from the commit of package python-qt4 for openSUSE:Factory checked in at 2017-05-10 20:34:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-qt4 (Old) and /work/SRC/openSUSE:Factory/.python-qt4.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-qt4" Wed May 10 20:34:36 2017 rev:81 rq:492938 version:4.12 Changes: -------- --- /work/SRC/openSUSE:Factory/python-qt4/python-qt4.changes 2017-04-28 10:42:27.270955436 +0200 +++ /work/SRC/openSUSE:Factory/.python-qt4.new/python-qt4.changes 2017-05-10 20:34:38.865199462 +0200 @@ -1,0 +2,5 @@ +Thu May 4 22:04:31 UTC 2017 - toddrme2178@gmail.com + +- Fix issues with update-alternatives. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-qt4.spec ++++++ --- /var/tmp/diff_new_pack.6Hinog/_old 2017-05-10 20:34:39.849060652 +0200 +++ /var/tmp/diff_new_pack.6Hinog/_new 2017-05-10 20:34:39.853060088 +0200 @@ -75,7 +75,7 @@ Requires: python-sip-devel >= 4.19.1 Recommends: python-qscintilla Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(preun): update-alternatives %description devel PyQt is a set of Python bindings for Trolltech's Qt application @@ -148,28 +148,22 @@ popd -# Prepare for update-alternatives usage -for p in pyuic4 pylupdate4 pyrcc4 ; do - mv %{buildroot}%{_bindir}/$p %{buildroot}%{_bindir}/$p-%{$python_bin_suffix} -done - mv %{buildroot}%{_libdir}/qt4/plugins/designer/libpyqt4.so %{buildroot}%{_libdir}/qt4/plugins/designer/libpy%{$python_bin_suffix}qt4.so mv -T %{buildroot}%{_datadir}/qt4/qsci/api/python %{buildroot}%{_datadir}/qt4/qsci/api/python_%{$python_bin_suffix} } +%fdupes doc +%fdupes examples -for p in pyuic4 pylupdate4 pyrcc4 ; do - %prepare_alternative $p -done - +%python_clone -a %{buildroot}%{_bindir}/pyuic4 +%python_clone -a %{buildroot}%{_bindir}/pylupdate4 +%python_clone -a %{buildroot}%{_bindir}/pyrcc4 -%post -%{python_install_alternative pyuic4} \ - --slave %{_bindir}/pylupdate4 pylupdate4 %{_bindir}/pylupdate4-%{python_bin_suffix} \ - --slave %{_bindir}/pyrcc4 pyrcc4 %{_bindir}/pyrcc4-%{python_bin_suffix} +%post devel +%{python_install_alternative pyuic4 pylupdate4 pyrcc4} -%postun +%preun devel %python_uninstall_alternative pyuic4 @@ -177,7 +171,8 @@ %defattr(-,root,root) %doc build_%{python_bin_suffix}/README %doc ChangeLog LICENSE NEWS THANKS -%doc doc/ examples/ +%doc doc/ +%doc examples/ %{python_sitearch}/PyQt4/ %{python_sitelib}/dbus/mainloop/qt.so