commit python3-pyflakes for openSUSE:Factory
![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package python3-pyflakes for openSUSE:Factory checked in at 2016-01-21 23:42:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-pyflakes (Old) and /work/SRC/openSUSE:Factory/.python3-pyflakes.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python3-pyflakes" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-pyflakes/python3-pyflakes.changes 2015-11-12 19:41:17.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python3-pyflakes.new/python3-pyflakes.changes 2016-01-22 01:06:58.000000000 +0100 @@ -1,0 +2,5 @@ +Wed Jan 13 09:55:01 UTC 2016 - toddrme2178@gmail.com + +- Implement update-alternatives. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-pyflakes.spec ++++++ --- /var/tmp/diff_new_pack.ZynNXF/_old 2016-01-22 01:07:00.000000000 +0100 +++ /var/tmp/diff_new_pack.ZynNXF/_new 2016-01-22 01:07:00.000000000 +0100 @@ -34,6 +34,8 @@ Requires: python3 # the pkg_resources module is required at runtime Requires: python3-setuptools +Requires(post): update-alternatives +Requires(postun): update-alternatives BuildArch: noarch %description @@ -49,12 +51,32 @@ %install python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} -mv %{buildroot}%{_bindir}/pyflakes %{buildroot}%{_bindir}/pyflakes-python%{py3_ver} + +# Prepare for update-alternatives usage +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +mv %{buildroot}%{_bindir}/pyflakes %{buildroot}%{_bindir}/pyflakes-%{py3_ver} +ln -s -f %{_sysconfdir}/alternatives/pyflakes %{buildroot}%{_bindir}/pyflakes +# create a dummy target for /etc/alternatives/pyflakes +touch %{buildroot}%{_sysconfdir}/alternatives/pyflakes +# Leave existing executable name in place +ln -s -f %{_bindir}/pyflakes-%{py3_ver} %{buildroot}%{_bindir}/pyflakes-python%{py3_ver} + +%post +"%_sbindir/update-alternatives" \ + --install %{_bindir}/pyflakes pyflakes %{_bindir}/pyflakes-%{py3_ver} 30 + +%postun +if [ $1 -eq 0 ] ; then + "%_sbindir/update-alternatives" --remove pyflakes %{_bindir}/pyflakes-%{py3_ver} +fi %files %defattr(-,root,root,-) %doc LICENSE NEWS.txt README.rst AUTHORS +%{_bindir}/pyflakes +%{_bindir}/pyflakes-%{py3_ver} %{_bindir}/pyflakes-python%{py3_ver} +%ghost %{_sysconfdir}/alternatives/pyflakes %{python3_sitelib}/pyflakes/ %{python3_sitelib}/pyflakes-%{version}-py*.egg-info
participants (1)
-
root@hilbert.suse.de