[packages/python3-jsonpointer] - fixed tests, merged separate jsonpointer package into main; release 3

qboosh qboosh at pld-linux.org
Thu Jul 17 06:22:34 CEST 2025


commit 72d3a58d01911d1bff79a9f8f361feb2d8fe2a13
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Jul 17 06:24:11 2025 +0200

    - fixed tests, merged separate jsonpointer package into main; release 3

 python3-jsonpointer.spec | 33 ++++++++++++---------------------
 1 file changed, 12 insertions(+), 21 deletions(-)
---
diff --git a/python3-jsonpointer.spec b/python3-jsonpointer.spec
index 029ac58..c28dafd 100644
--- a/python3-jsonpointer.spec
+++ b/python3-jsonpointer.spec
@@ -1,23 +1,25 @@
 #
 # Conditional build:
-%bcond_without	tests	# do not perform "make test"
+%bcond_without	tests	# unit tests
 
 Summary:	Identify specific nodes in a JSON document (RFC 6901)
 Summary(pl.UTF-8):	Identyfikowanie określonych węzłów w dokumencie JSON (RFC 6901)
 Name:		python3-jsonpointer
 Version:	3.0.0
-Release:	2
+Release:	3
 License:	BSD
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/jsonpointer/
 Source0:	https://files.pythonhosted.org/packages/source/j/jsonpointer/jsonpointer-%{version}.tar.gz
 # Source0-md5:	9a0b3e940bbd65f544f41018a904991f
 URL:		https://pypi.org/project/jsonpointer/
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
 BuildRequires:	python3-modules >= 1:3.7
 BuildRequires:	python3-setuptools
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
 Requires:	python3-modules >= 1:3.7
+Provides:	jsonpointer = %{version}-%{release}
+Obsoletes:	jsonpointer < 3.0.0-3
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -27,18 +29,6 @@ Library to resolve JSON Pointers according to RFC 6901.
 %description -l pl.UTF-8
 Biblioteka do rozwiązywania wskaźników JSON zgodnie z RFC 6901.
 
-%package -n jsonpointer
-Summary:	Identify specific nodes in a JSON document (RFC 6901)
-Summary(pl.UTF-8):	Identyfikowanie określonych węzłów w dokumencie JSON (RFC 6901)
-Group:		Applications/Text
-Requires:	python3-jsonpointer = %{version}-%{release}
-
-%description -n jsonpointer
-Tool to resolve JSON Pointers according to RFC 6901.
-
-%description -n jsonpointer -l pl.UTF-8
-Narzędzie do rozwiązywania wskaźników JSON zgodnie z RFC 6901.
-
 %prep
 %setup -q -n jsonpointer-%{version}
 
@@ -46,7 +36,7 @@ Narzędzie do rozwiązywania wskaźników JSON zgodnie z RFC 6901.
 %py3_build
 
 %if %{with tests}
-%{__python3} tests.py
+%{__python3} -m unittest tests
 %endif
 
 %install
@@ -54,16 +44,17 @@ rm -rf $RPM_BUILD_ROOT
 
 %py3_install
 
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/jsonpointer{,-3}
+ln -sf jsonpointer-3 $RPM_BUILD_ROOT%{_bindir}/jsonpointer
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS LICENSE.txt README.md
+%attr(755,root,root) %{_bindir}/jsonpointer
+%attr(755,root,root) %{_bindir}/jsonpointer-3
 %{py3_sitescriptdir}/jsonpointer.py
 %{py3_sitescriptdir}/__pycache__/jsonpointer.cpython-*.py[co]
 %{py3_sitescriptdir}/jsonpointer-%{version}-py*.egg-info
-
-%files -n jsonpointer
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/jsonpointer
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-jsonpointer.git/commitdiff/72d3a58d01911d1bff79a9f8f361feb2d8fe2a13



More information about the pld-cvs-commit mailing list