commit python-python-subunit for openSUSE:Factory
Hello community, here is the log from the commit of package python-python-subunit for openSUSE:Factory checked in at 2017-09-29 11:55:51 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-python-subunit (Old) and /work/SRC/openSUSE:Factory/.python-python-subunit.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-python-subunit" Fri Sep 29 11:55:51 2017 rev:18 rq:528951 version:1.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-python-subunit/python-python-subunit.changes 2017-07-12 19:35:51.385616147 +0200 +++ /work/SRC/openSUSE:Factory/.python-python-subunit.new/python-python-subunit.changes 2017-09-29 11:55:55.218285272 +0200 @@ -1,0 +2,6 @@ +Wed Sep 27 12:14:25 UTC 2017 - tbechtold@suse.com + +- Use update-alternatives for binaries. That way, the binaries are + also available from the python2 package. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-python-subunit.spec ++++++ --- /var/tmp/diff_new_pack.Hd0jpD/_old 2017-09-29 11:55:56.342126802 +0200 +++ /var/tmp/diff_new_pack.Hd0jpD/_new 2017-09-29 11:55:56.346126239 +0200 @@ -38,6 +38,8 @@ Requires: python-extras Requires: python-testtools >= 0.9.34 BuildRoot: %{_tmppath}/%{name}-%{version}-build +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %python_subpackages @@ -68,30 +70,42 @@ $python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/subunit/tests/ %fdupes -s %{buildroot}%{$python_sitelib} } +for bin in subunit-2to1 subunit2csv subunit-1to2 subunit-filter subunit-ls \ + subunit-notify subunit-stats subunit-tags subunit-output subunit2gtk \ + subunit2junitxml subunit2pyunit tap2subunit + do + %python_clone -a %{buildroot}%{_bindir}/$bin +done %check patch -p1 -R < %{PATCH0} export PYTHONPATH="$PWD/python" %python_exec -m testtools.run subunit.test_suite +%post +%{python_install_alternative subunit-2to1 subunit2csv subunit-1to2 subunit-filter subunit-ls + subunit-notify subunit-stats subunit-tags subunit-output subunit2gtk + subunit2junitxml subunit2pyunit tap2subunit} + +%postun +%python_uninstall_alternative subunit-2to1 + %files %{python_files} %defattr(-,root,root,-) %doc README.rst NEWS -%ifpython3 -%{_bindir}/subunit2csv -%{_bindir}/subunit-2to1 -%{_bindir}/subunit-1to2 -%{_bindir}/subunit-filter -%{_bindir}/subunit-ls -%{_bindir}/subunit-notify -%{_bindir}/subunit-stats -%{_bindir}/subunit-tags -%{_bindir}/subunit-output -%{_bindir}/subunit2gtk -%{_bindir}/subunit2junitxml -%{_bindir}/subunit2pyunit -%{_bindir}/tap2subunit -%endif +%python_alternative %{_bindir}/subunit2csv +%python_alternative %{_bindir}/subunit-2to1 +%python_alternative %{_bindir}/subunit-1to2 +%python_alternative %{_bindir}/subunit-filter +%python_alternative %{_bindir}/subunit-ls +%python_alternative %{_bindir}/subunit-notify +%python_alternative %{_bindir}/subunit-stats +%python_alternative %{_bindir}/subunit-tags +%python_alternative %{_bindir}/subunit-output +%python_alternative %{_bindir}/subunit2gtk +%python_alternative %{_bindir}/subunit2junitxml +%python_alternative %{_bindir}/subunit2pyunit +%python_alternative %{_bindir}/tap2subunit %{python_sitelib}/subunit %{python_sitelib}/python_subunit-%{version}-py*.egg-info
participants (1)
-
root@hilbert.suse.de