Hello community, here is the log from the commit of package python-keyring for openSUSE:Factory checked in at 2014-11-13 09:21:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-keyring (Old) and /work/SRC/openSUSE:Factory/.python-keyring.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-keyring" Changes: -------- --- /work/SRC/openSUSE:Factory/python-keyring/python-keyring.changes 2014-10-18 09:08:07.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-keyring.new/python-keyring.changes 2014-11-13 09:21:41.000000000 +0100 @@ -1,0 +2,6 @@ +Tue Nov 11 17:45:50 UTC 2014 - i...@marguerite.su + +- use update-alternatives for /usr/bin/keyring because there'll be + a python3-keyring package + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-keyring.spec ++++++ --- /var/tmp/diff_new_pack.tKyOEq/_old 2014-11-13 09:21:42.000000000 +0100 +++ /var/tmp/diff_new_pack.tKyOEq/_new 2014-11-13 09:21:42.000000000 +0100 @@ -34,6 +34,8 @@ %if 0%{?suse_version} && 0%{?suse_version} <= 1110 BuildRequires: python-unittest2 %endif +Requires(post): update-alternatives +Requires(postun): update-alternatives Provides: python-keyring-kde = %{version} Obsoletes: python-keyring-kde < %{version} Provides: python-keyring-gnome = %{version} @@ -60,13 +62,30 @@ %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} +# update-alternatives +mv %{buildroot}%{_bindir}/keyring %{buildroot}%{_bindir}/keyring-%{py_ver} +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +touch %{buildroot}%{_sysconfdir}/alternatives/keyring +ln -sf %{_sysconfdir}/alternatives/keyring %{buildroot}%{_bindir}/keyring + %check py.test +%post +update-alternatives \ + --install %{_bindir}/keyring keyring %{_bindir}/keyring-%{py_ver} 20 + +%postun +if [ $1 -eq 0 ] ; then + update-alternatives --remove keyring %{_bindir}/keyring-%{py_ver} +fi + %files %defattr(-,root,root) %doc CONTRIBUTORS.txt README.rst CHANGES.rst +%ghost %{_sysconfdir}/alternatives/keyring %{_bindir}/keyring +%{_bindir}/keyring-%{py_ver} %{python_sitelib}/* %changelog -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org