Hello community, here is the log from the commit of package python3-numpydoc for openSUSE:Factory checked in at 2013-11-01 17:43:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-numpydoc (Old) and /work/SRC/openSUSE:Factory/.python3-numpydoc.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-numpydoc" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-numpydoc/python3-numpydoc.changes 2013-09-03 22:06:32.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python3-numpydoc.new/python3-numpydoc.changes 2013-11-01 17:43:57.000000000 +0100 @@ -1,0 +2,5 @@ +Thu Oct 31 12:25:04 UTC 2013 - [email protected] + +- Implement update-alternatives + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-numpydoc.spec ++++++ --- /var/tmp/diff_new_pack.lpAumI/_old 2013-11-01 17:43:57.000000000 +0100 +++ /var/tmp/diff_new_pack.lpAumI/_new 2013-11-01 17:43:57.000000000 +0100 @@ -31,6 +31,8 @@ # Test requirements BuildRequires: python3-Sphinx >= 1.0.1 Requires: python3-Sphinx >= 1.0.1 +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch @@ -50,14 +52,33 @@ %install python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} +ln -s %{_bindir}/autosummary_generate-%{py3_ver} %{buildroot}%{_bindir}/autosummary_generate %check python3 setup.py test +%pre +# Since /usr/bin/autosummary_generate became ghosted to be used with update-alternatives, we have +# to get rid of the old binary resulting from the non-update-alternativies-ified package: +[[ ! -L %{_bindir}/autosummary_generate ]] && rm -f %{_bindir}/autosummary_generate +exit 0 + +%post +update-alternatives \ + --install %{_bindir}/autosummary_generate autosummary_generate %{_bindir}/autosummary_generate-%{py3_ver} 30 + +%preun +if [ $1 -eq 0 ] ; then + update-alternatives --remove autosummary_generate %{_bindir}/autosummary_generate-%{py3_ver} +fi + + %files %defattr(-,root,root,-) %doc LICENSE.txt README.txt +%ghost %attr(0755,root,root) %{_bindir}/autosummary_generate %{_bindir}/autosummary_generate-%{py3_ver} -%{python3_sitelib}/* +%{python3_sitelib}/numpydoc/ +%{python3_sitelib}/numpydoc-%{version}-py*.egg-info %changelog -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
