Hello community, here is the log from the commit of package python3-Mako for openSUSE:Factory checked in at 2016-09-25 14:44:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-Mako (Old) and /work/SRC/openSUSE:Factory/.python3-Mako.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-Mako" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-Mako/python3-Mako.changes 2016-05-25 21:23:06.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python3-Mako.new/python3-Mako.changes 2016-09-25 14:44:56.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 23:22:18 UTC 2016 - [email protected] + +- Implement update-alternatives + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-Mako.spec ++++++ --- /var/tmp/diff_new_pack.v8AySo/_old 2016-09-25 14:44:57.000000000 +0200 +++ /var/tmp/diff_new_pack.v8AySo/_new 2016-09-25 14:44:57.000000000 +0200 @@ -33,6 +33,8 @@ Requires: python3-Beaker >= 1.1 Requires: python3-MarkupSafe BuildArch: noarch +Requires(post): update-alternatives +Requires(postun): update-alternatives %description Mako is a template library written in Python. It provides a familiar, non-XML @@ -52,16 +54,32 @@ %install python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} + +# Prepare for update-alternatives usage +mkdir -p %{buildroot}%{_sysconfdir}/alternatives mv %{buildroot}%{_bindir}/mako-render %{buildroot}%{_bindir}/mako-render-%{py3_ver} +ln -s -f %{_sysconfdir}/alternatives/mako-render %{buildroot}%{_bindir}/mako-render + +%post +%_sbindir/update-alternatives \ + --install %{_bindir}/mako-render mako-render %{_bindir}/mako-render-%{py3_ver} 30 + +%postun +if [ $1 -eq 0 ] ; then + %_sbindir/update-alternatives --remove mako-render %{_bindir}/mako-render-%{py3_ver} +fi %check python3 setup.py test %files %defattr(-,root,root,-) -%doc CHANGES LICENSE README.rst examples +%doc CHANGES LICENSE README.rst +%doc examples +%{_bindir}/mako-render %{_bindir}/mako-render-%{py3_ver} +%ghost %{_sysconfdir}/alternatives/mako-render %{python3_sitelib}/mako/ -%{python3_sitelib}/Mako-%{version}-py%{py3_ver}.egg-info +%{python3_sitelib}/Mako-%{version}-py*.egg-info %changelog
