Hello community, here is the log from the commit of package python3-Flask for openSUSE:Factory checked in at 2016-09-27 13:44:25 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-Flask (Old) and /work/SRC/openSUSE:Factory/.python3-Flask.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-Flask" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-Flask/python3-Flask.changes 2016-07-24 19:43:49.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python3-Flask.new/python3-Flask.changes 2016-09-27 13:44:37.000000000 +0200 @@ -1,0 +2,10 @@ +Fri Sep 23 14:19:03 UTC 2016 - [email protected] + +- Change preun back to postun for now. + +------------------------------------------------------------------- +Thu Sep 15 18:22:01 UTC 2016 - [email protected] + +- Implement update-alternatives + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-Flask.spec ++++++ --- /var/tmp/diff_new_pack.xwgjuy/_old 2016-09-27 13:44:38.000000000 +0200 +++ /var/tmp/diff_new_pack.xwgjuy/_new 2016-09-27 13:44:38.000000000 +0200 @@ -32,11 +32,13 @@ BuildRequires: python3-Werkzeug >= 0.7 BuildRequires: python3-itsdangerous >= 0.21 BuildRequires: python3-pytest -BuildRequires: python3-click -Requires: python3-click +BuildRequires: python3-click >= 2.0 Requires: python3-Jinja2 >= 2.4 Requires: python3-Werkzeug >= 0.7 +Requires: python3-click >= 2.0 Requires: python3-itsdangerous >= 0.21 +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %description @@ -64,16 +66,33 @@ %install python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} + +# Prepare for update-alternatives usage +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +mv %{buildroot}%{_bindir}/flask %{buildroot}%{_bindir}/flask-%{py3_ver} +ln -s -f %{_sysconfdir}/alternatives/flask %{buildroot}%{_bindir}/flask + %fdupes %{buildroot}%{python3_sitelib} +%post +%_sbindir/update-alternatives \ + --install %{_bindir}/flask flask %{_bindir}/flask-%{py3_ver} 30 + +%postun +if [ $1 -eq 0 ] ; then + %_sbindir/update-alternatives --remove flask %{_bindir}/flask-%{py3_ver} +fi + %check python3 setup.py test %files %defattr(-,root,root,-) -%doc AUTHORS CHANGES LICENSE -%{python3_sitelib}/* +%doc AUTHORS CHANGES LICENSE README %{_bindir}/flask +%{_bindir}/flask-%{py3_ver} +%ghost %{_sysconfdir}/alternatives/flask +%{python3_sitelib}/* %files doc %defattr(-,root,root)
