forked from pool/python-jsonpatch
- 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:
committed by
Git OBS Bridge
parent
49e2a92fd2
commit
da29999099
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user