diff --git a/python-jsonpatch.changes b/python-jsonpatch.changes index 6a06977..4804ff8 100644 --- a/python-jsonpatch.changes +++ b/python-jsonpatch.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 14 09:46:03 UTC 2013 - speilicke@suse.com + +- Fix update-alternatives (SLE_11_SP3) + ------------------------------------------------------------------- Mon Oct 21 13:18:40 UTC 2013 - dmueller@suse.com diff --git a/python-jsonpatch.spec b/python-jsonpatch.spec index 6fcd4ed..f732126 100644 --- a/python-jsonpatch.spec +++ b/python-jsonpatch.spec @@ -41,6 +41,7 @@ Python module to apply JSON-Patches (according to RFC 6902). %prep %setup -q -n jsonpatch-%{version} +sed -i "s|entry_poimts|entry_points|" setup.py # Typo fix already in upstream git.. %build python setup.py build @@ -49,6 +50,7 @@ python setup.py build python setup.py install --prefix=%{_prefix} --root=%{buildroot} for i in patch diff; do mv %{buildroot}%{_bindir}/json$i %{buildroot}%{_bindir}/json$i-%{py_ver} + ln -s %{_bindir}/json$i-%{py_ver} %{buildroot}%{_bindir}/json$i done %pre @@ -68,9 +70,11 @@ fi %files %defattr(-,root,root,-) %ghost %{_bindir}/jsonpatch +%ghost %{_sysconfdir}/alternatives/jsonpatch %{_bindir}/jsonpatch-%{py_ver} %ghost %{_bindir}/jsondiff +%ghost %{_sysconfdir}/alternatives/jsondiff %{_bindir}/jsondiff-%{py_ver} -%{python_sitelib}/* +%{python_sitelib}/jsonpatch* %changelog