Hello community,

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

Package is "python-jsonpointer"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-jsonpointer/python-jsonpointer.changes    
2015-06-23 12:01:09.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-jsonpointer.new/python-jsonpointer.changes   
    2016-08-17 12:05:20.000000000 +0200
@@ -1,0 +2,5 @@
+Mon Aug 15 14:51:56 UTC 2016 - [email protected]
+
+- Fix update-alternatives implementation.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-jsonpointer.spec ++++++
--- /var/tmp/diff_new_pack.OGIV2j/_old  2016-08-17 12:05:21.000000000 +0200
+++ /var/tmp/diff_new_pack.OGIV2j/_new  2016-08-17 12:05:21.000000000 +0200
@@ -19,7 +19,7 @@
 Name:           python-jsonpointer
 Version:        1.9
 Release:        0
-Summary:        Identify specific nodes in a JSON document (according to draft 
08)
+Summary:        Identify specific nodes in a JSON document
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
 Url:            https://github.com/stefankoegl/python-json-pointer
@@ -27,8 +27,7 @@
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
 Requires(post):   update-alternatives
-Requires(postun): update-alternatives
-Requires(pre):    coreutils
+Requires(preun): update-alternatives
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %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()")}
@@ -47,25 +46,26 @@
 
 %install
 python setup.py install --prefix=%{_prefix} --root=%{buildroot}
-mv %{buildroot}%{_bindir}/jsonpointer 
%{buildroot}%{_bindir}/jsonpointer-%{py_ver}
-ln -s %{_bindir}/jsonpointer-%{py_ver} %{buildroot}%{_bindir}/jsonpointer
 
-%pre
-[ -h %{_bindir}/jsonpointer ] || rm -f %{_bindir}/jsonpointer
+# Prepare for update-alternatives usage
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives
+mv %{buildroot}%{_bindir}/jsonpointer 
%{buildroot}%{_bindir}/jsonpointer-%{py_ver}
+ln -s -f %{_sysconfdir}/alternatives/jsonpointer 
%{buildroot}%{_bindir}/jsonpointer
 
 %post
-update-alternatives --install \
-    %{_bindir}/jsonpointer jsonpointer %{_bindir}/jsonpointer-%{py_ver} 20
+%_sbindir/update-alternatives \
+    --install %{_bindir}/jsonpointer jsonpointer 
%{_bindir}/jsonpointer-%{py_ver} 20
 
 %preun
 if [ $1 -eq 0 ] ; then
-    update-alternatives --remove jsonpointer %{_bindir}/jsonpointer-%{py_ver}
+    %_sbindir/update-alternatives --remove jsonpointer 
%{_bindir}/jsonpointer-%{py_ver}
 fi
 
 %files
 %defattr(-,root,root,-)
-%ghost %{_bindir}/jsonpointer
+%{_bindir}/jsonpointer
 %{_bindir}/jsonpointer-%{py_ver}
+%ghost %{_sysconfdir}/alternatives/jsonpointer
 %{python_sitelib}/*
 
 %changelog


Reply via email to