Hello community,

here is the log from the commit of package python-parallax for openSUSE:Factory 
checked in at 2016-03-18 21:39:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-parallax (Old)
 and      /work/SRC/openSUSE:Factory/.python-parallax.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-parallax"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-parallax/python-parallax.changes  
2015-06-15 17:49:42.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-parallax.new/python-parallax.changes     
2016-03-18 21:39:58.000000000 +0100
@@ -1,0 +2,5 @@
+Mon Mar  7 08:48:52 UTC 2016 - kgronl...@suse.com
+
+- Add alternatives entry for parallax-askpass 
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-parallax.spec ++++++
--- /var/tmp/diff_new_pack.3mTB47/_old  2016-03-18 21:39:59.000000000 +0100
+++ /var/tmp/diff_new_pack.3mTB47/_new  2016-03-18 21:39:59.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-parallax
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -28,11 +28,9 @@
 BuildRequires:  python-setuptools
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Requires:       openssh
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
 BuildArch:      noarch
-%endif
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 
 %description
 Parallax SSH provides an interface to executing commands on multiple
@@ -48,11 +46,28 @@
 %install
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
 
+# create a dummy target for /etc/alternatives/parallax-askpass
+mv %{buildroot}%{_bindir}/parallax-askpass 
%{buildroot}%{_bindir}/parallax-askpass-%{py_ver}
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives
+touch %{buildroot}%{_sysconfdir}/alternatives/parallax-askpass
+ln -s -f %{_sysconfdir}/alternatives/parallax-askpass 
%{buildroot}%{_bindir}/parallax-askpass
+
+%post
+"%_sbindir/update-alternatives" --install \
+   /%{_bindir}/parallax-askpass parallax-askpass 
%{_bindir}/parallax-askpass-%{py_ver} 20
+
+%postun
+if [ "$1" = 0 ] ; then
+   "%_sbindir/update-alternatives" --remove parallax-askpass 
%{_bindir}/parallax-askpass-%{py_ver}
+fi
+
 %files
 %defattr(-,root,root,-)
 %doc AUTHORS README.md COPYING
 %{python_sitelib}/parallax
 %{python_sitelib}/parallax-%{version}*.egg-info
 %{_bindir}/parallax-askpass
+%{_bindir}/parallax-askpass-%{py_ver}
+%ghost %_sysconfdir/alternatives/parallax-askpass
 
 %changelog


Reply via email to