diff --git a/jsonpointer-2.2.tar.gz b/jsonpointer-2.2.tar.gz deleted file mode 100644 index 9573faf90c0a4680e56cdca10132bd65a8d5f76d..0000000000000000000000000000000000000000 Binary files a/jsonpointer-2.2.tar.gz and /dev/null differ 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..c459ed22df459aca215bdef08b6b7d34cf22f9bf 100644 --- a/python-jsonpointer.spec +++ b/python-jsonpointer.spec @@ -1,56 +1,76 @@ -%global pypi_name jsonpointer - -Name: python-%{pypi_name} -Version: 2.2 +%global _empty_manifest_terminate_build 0 +Name: python-jsonpointer +Version: 2.3 Release: 1 Summary: Resolve JSON Pointers in Python 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} +%package -n python3-jsonpointer Summary: Resolve JSON Pointers in Python +Provides: python-jsonpointer = %{version}-%{release} BuildRequires: python3-devel python3-setuptools +%description -n python3-jsonpointer +python-json-pointer is a Python library for resolving JSON pointers (RFC 6901). Python 2.7, 3.4+ and PyPy are supported. -%{?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 +%package help +Summary: Development documents and examples for jsonpointer +Provides: python3-jsonpointer-doc +%description help +python-json-pointer is a Python library for resolving JSON pointers (RFC 6901). Python 2.7, 3.4+ and PyPy are supported. %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 -%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 +* Fri Dec 02 2022 liqiuyu - 2.3-1 +- Update package to version 2.3 + * Tue Nov 23 liudabo - 2.2-1 - upgrade version to 2.2