[packages/python-jsonpatch] - updated to 1.33
qboosh
qboosh at pld-linux.org
Sat Nov 18 21:25:30 CET 2023
commit 9131b697432439b6b0eb31cbb6f212f99d1be3f6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Nov 18 21:13:47 2023 +0100
- updated to 1.33
python-jsonpatch.spec | 26 +++++++++++++++++++-------
1 file changed, 19 insertions(+), 7 deletions(-)
---
diff --git a/python-jsonpatch.spec b/python-jsonpatch.spec
index 291f42c..ae4c421 100644
--- a/python-jsonpatch.spec
+++ b/python-jsonpatch.spec
@@ -1,34 +1,37 @@
#
# Conditional build:
-%bcond_with tests # unit tests (broken - tests.js file missing)
+%bcond_without tests # unit tests
%bcond_without python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
Summary: Apply JSON-Patches (RFC 6902)
Summary(pl.UTF-8): Nakładanie łat JSON-Patch (RFC 6902)
Name: python-jsonpatch
-Version: 1.16
-Release: 7
+Version: 1.33
+Release: 1
License: BSD
Group: Libraries/Python
Source0: https://files.pythonhosted.org/packages/source/j/jsonpatch/jsonpatch-%{version}.tar.gz
-# Source0-md5: 8ef1ceb00dcf992c9e43611f698f9279
+# Source0-md5: ed3e8eaa5cce105ad02509d185f0889f
URL: https://pypi.python.org/pypi/jsonpatch
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
%if %{with python2}
+BuildRequires: python >= 1:2.7
BuildRequires: python-setuptools
%if %{with tests}
BuildRequires: python-jsonpointer >= 1.9
%endif
%endif
%if %{with python3}
+BuildRequires: python3 >= 1:3.7
BuildRequires: python3-setuptools
%if %{with tests}
BuildRequires: python3-jsonpointer >= 1.9
%endif
%endif
Requires: python-jsonpointer >= 1.9
+Requires: python-modules >= 1:2.7
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -43,6 +46,7 @@ Summary: Apply JSON-Patches (RFC 6902)
Summary(pl.UTF-8): Nakładanie łat JSON-Patch (RFC 6902)
Group: Libraries/Python
Requires: python3-jsonpointer >= 1.9
+Requires: python3-modules >= 1:3.7
%description -n python3-jsonpatch
Library to apply JSON Patches according to RFC 6902.
@@ -71,11 +75,19 @@ Narzędzia do nakładania łat JSON Patch zgodnie z RFC 6902.
%build
%if %{with python2}
-%py_build %{?with_tests:test}
+%py_build
+
+%if %{with tests}
+%{__python} tests.py
+%endif
%endif
%if %{with python3}
-%py3_build %{?with_tests:test}
+%py3_build
+
+%if %{with tests}
+%{__python3} tests.py
+%endif
%endif
%install
@@ -102,7 +114,7 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python2}
%files
%defattr(644,root,root,755)
-%doc AUTHORS README.md
+%doc AUTHORS LICENSE README.md
%{py_sitescriptdir}/jsonpatch.py[co]
%{py_sitescriptdir}/jsonpatch-%{version}-py*.egg-info
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-jsonpatch.git/commitdiff/9131b697432439b6b0eb31cbb6f212f99d1be3f6
More information about the pld-cvs-commit
mailing list