Hello community,

here is the log from the commit of package python-jmespath for openSUSE:Factory 
checked in at 2016-08-17 12:05:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jmespath (Old)
 and      /work/SRC/openSUSE:Factory/.python-jmespath.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-jmespath"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-jmespath/python-jmespath.changes  
2016-03-29 14:50:33.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-jmespath.new/python-jmespath.changes     
2016-08-17 12:05:28.000000000 +0200
@@ -1,0 +2,5 @@
+Mon Aug 15 14:51:56 UTC 2016 - toddrme2...@gmail.com
+
+- Fix update-alternatives implementation.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-jmespath.spec ++++++
--- /var/tmp/diff_new_pack.8fx26d/_old  2016-08-17 12:05:29.000000000 +0200
+++ /var/tmp/diff_new_pack.8fx26d/_new  2016-08-17 12:05:29.000000000 +0200
@@ -29,7 +29,7 @@
 Requires:       python-base
 Requires:       python-ply >= 3.4
 Requires(post):   update-alternatives
-Requires(postun): update-alternatives
+Requires(preun): update-alternatives
 BuildRequires:  python-devel
 BuildRequires:  python-ply >= 3.4
 BuildRequires:  python-setuptools
@@ -86,25 +86,29 @@
 
 %install
 python setup.py install --prefix=%{_prefix} --root=%{buildroot} 
--install-scripts=%{_bindir}
-pushd %{buildroot}/%{_bindir}
-mv jp.py jp-%{py_ver}
-popd
+
+# Prepare for update-alternatives usage
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives
+mv %{buildroot}%{_bindir}/jp.py %{buildroot}%{_bindir}/jp-%{py_ver}
+ln -s -f %{_sysconfdir}/alternatives/jp %{buildroot}%{_bindir}/jp
 
 %check
 nosetests tests
 
 %post
-"%_sbindir/update-alternatives" --install %{_bindir}/jp jp 
%{_bindir}/jp-%{py_ver} 30
+%_sbindir/update-alternatives --install %{_bindir}/jp jp 
%{_bindir}/jp-%{py_ver} 30
 
-%postun
+%preun
 if [ $1 -eq 0 ] ; then
-    "%_sbindir/update-alternatives" --remove jp %{_bindir}/jp-%{py_ver}
+    %_sbindir/update-alternatives --remove jp %{_bindir}/jp-%{py_ver}
 fi
 
 %files
 %defattr(-,root,root,-)
 %doc LICENSE.txt README.rst
+%{_bindir}/jp
 %{_bindir}/jp-%{py_ver}
+%ghost %{_sysconfdir}/alternatives/jp
 %{python_sitelib}/jmespath/
 %{python_sitelib}/%{baseName}-%{version}-py%{py_ver}.egg-info/
 


Reply via email to