15
0

- Fix update-alternatives (SLE_11_SP3)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpatch?expand=0&rev=9
This commit is contained in:
Sascha Peilicke
2013-11-14 09:46:36 +00:00
committed by Git OBS Bridge
parent 49e2a92fd2
commit da29999099
2 changed files with 10 additions and 1 deletions

View File

@@ -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

View File

@@ -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