diff --git a/jsonpointer-2.3.tar.gz b/jsonpointer-2.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f30f826ab854677aadd6964501aa4b892b069fb4 Binary files /dev/null and b/jsonpointer-2.3.tar.gz differ diff --git a/python-jsonpointer.spec b/python-jsonpointer.spec index 9789dec3a5118be70e5341dfd4633cd2c2d3da1d..c3e2d3c0cf06414bec18dd3413448464b33e17e9 100644 --- a/python-jsonpointer.spec +++ b/python-jsonpointer.spec @@ -1,56 +1,86 @@ -%global pypi_name jsonpointer - -Name: python-%{pypi_name} -Version: 2.2 +%global _empty_manifest_terminate_build 0 +%global common_description \ +python-json-pointer [![PyPI version]( [![Supported Python versions]( [![Build \ +Status]( [![Coverage Status]( Resolve JSON Pointers in Python -Library to \ +resolve JSON Pointers according to [RFC 6901](. + +Name: python-jsonpointer +Version: 2.3 Release: 1 -Summary: Resolve JSON Pointers in Python +Summary: Identify specific nodes in a JSON document (RFC 6901) License: BSD URL: https://github.com/stefankoegl/python-json-pointer -Source0: https://pypi.io/packages/source/j/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/a0/6c/c52556b957a0f904e7c45585444feef206fe5cb1ff656303a1d6d922a53b/jsonpointer-2.3.tar.gz BuildArch: noarch - %description -python-json-pointer is a Python library for resolving JSON pointers (RFC 6901). Python 2.7, 3.4+ and PyPy are supported. - - -%package -n python3-%{pypi_name} -Summary: Resolve JSON Pointers in Python -BuildRequires: python3-devel python3-setuptools - -%{?python_provide:%python_provide python3-%{pypi_name}} - -%description -n python3-%{pypi_name} -python-json-pointer is a Python library for resolving JSON pointers (RFC 6901). - -%package_help +%{common_description} + +%package -n python3-jsonpointer +Summary: Identify specific nodes in a JSON document (RFC 6901) +Provides: python-jsonpointer +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +%description -n python3-jsonpointer +%{common_description} + +%package help +Summary: Identify specific nodes in a JSON document (RFC 6901) +Provides: python3-jsonpointer-doc +%description help +%{common_description} %prep -%autosetup -n %{pypi_name}-%{version} +%autosetup -n jsonpointer-%{version} %build -LC_ALL=en_US.UTF-8 %py3_build +%py3_build %install -LC_ALL=en_US.UTF-8 %py3_install -mv %{buildroot}%{_bindir}/jsonpointer %{buildroot}%{_bindir}/jsonpointer-%{python3_version} -ln -s ./jsonpointer-%{python3_version} %{buildroot}%{_bindir}/jsonpointer-3 -ln -s ./jsonpointer-%{python3_version} %{buildroot}%{_bindir}/jsonpointer - +%py3_install + +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . %check -%{__python3} tests.py +%{__python3} setup.py test -%files -n python3-%{pypi_name} -%{_bindir}/jsonpointer -%{_bindir}/jsonpointer-3* -%{python3_sitelib}/__pycache__/* -%{python3_sitelib}/%{pypi_name}.py* -%{python3_sitelib}/*.egg-info +%files -n python3-jsonpointer -f filelist.lst +%dir %{python3_sitelib}/* -%files help -%doc README.md +%files help -f doclist.lst +%{_docdir}/* %changelog +* Wed Mar 20 2024 wangjing - 2.3-1 +- Upgrade package python3-jsonpointer to version 2.3 + * Tue Nov 23 liudabo - 2.2-1 - upgrade version to 2.2