diff --git a/.gitignore b/.gitignore index 0b0a2f7..c95dcfd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -SOURCES/jsonpointer-1.10.tar.gz -/jsonpointer-1.10.tar.gz +jsonpointer-2.3.tar.gz diff --git a/gating.yaml b/gating.yaml deleted file mode 100644 index eb7c84f..0000000 --- a/gating.yaml +++ /dev/null @@ -1,6 +0,0 @@ ---- !Policy -product_versions: - - rhel-8 -decision_context: osci_compose_gate -rules: - - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional} diff --git a/python-jsonpointer.spec b/python-jsonpointer.spec index e4d3542..58f35d7 100644 --- a/python-jsonpointer.spec +++ b/python-jsonpointer.spec @@ -1,122 +1,134 @@ %global pypi_name jsonpointer -%global github_name python-json-pointer - -%if 0%{?fedora} || 0%{?rhel} > 7 -# Enable python3 build by default -%bcond_without python3 -%else -%bcond_with python3 -%endif - -%if 0%{?rhel} > 7 -# Disable python2 build by default -%bcond_with python2 -%else -%bcond_without python2 -%endif Name: python-%{pypi_name} -Version: 1.10 -Release: 11%{?dist} +Version: 2.3 +Release: 9%{?dist} Summary: Resolve JSON Pointers in Python -License: BSD -URL: https://github.com/stefankoegl/%{github_name} -Source0: https://pypi.io/packages/source/j/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +License: BSD-3-Clause +URL: https://github.com/stefankoegl/python-json-pointer +Source0: %{pypi_source} BuildArch: noarch +%global _description %{expand: +Library to resolve JSON Pointers according to RFC 6901.} -%description -Library to resolve JSON Pointers according to RFC 6901. +%description %{_description} -%if %{with python2} -%package -n python2-%{pypi_name} -Summary: Resolve JSON Pointers in Python -BuildRequires: python2-devel -BuildRequires: python2-setuptools - -%{?python_provide:%python_provide python2-%{pypi_name}} - -%description -n python2-%{pypi_name} -Library to resolve JSON Pointers according to RFC 6901. -%endif # with python2 - -%if %{with python3} %package -n python3-%{pypi_name} -Summary: Resolve JSON Pointers in Python - +Summary: %{summary} BuildRequires: python3-devel -BuildRequires: python3-setuptools -%{?python_provide:%python_provide python3-%{pypi_name}} - -%description -n python3-%{pypi_name} -Library to resolve JSON Pointers according to RFC 6901. -%endif # with python3 +%description -n python3-%{pypi_name} %{_description} %prep -%setup -q -n %{pypi_name}-%{version} +%autosetup -n %{pypi_name}-%{version} -p1 + +%generate_buildrequires +%pyproject_buildrequires %build -%if %{with python2} -%py2_build -%endif # with python2 -%if %{with python3} -LC_ALL=en_US.UTF-8 %py3_build -%endif # with python3 +%pyproject_wheel %install -%if %{with python2} -%py2_install -mv %{buildroot}%{_bindir}/jsonpointer %{buildroot}%{_bindir}/jsonpointer-%{python2_version} -ln -s ./jsonpointer-%{python2_version} %{buildroot}%{_bindir}/jsonpointer-2 -%if %{without python3} -ln -s ./jsonpointer-%{python2_version} %{buildroot}%{_bindir}/jsonpointer -%endif # without python3 -%endif # with python2 - -%if %{with python3} -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 -%endif # with python3 - +%pyproject_install +%pyproject_save_files %{pypi_name} %check -%if %{with python3} -%{__python3} tests.py -%endif # with python3 -%if %{with python2} -%{__python2} tests.py -%endif # with python2 +%python3 tests.py -%if %{with python2} -%files -n python2-%{pypi_name} +%files -n python3-%{pypi_name} -f %{pyproject_files} +%license LICENSE.txt %doc README.md AUTHORS -%license COPYING -%if %{without python3} %{_bindir}/jsonpointer -%endif # without python3 -%{_bindir}/jsonpointer-2* -%{python2_sitelib}/%{pypi_name}.py* -%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info -%endif # with python2 - -%if %{with python3} -%files -n python3-%{pypi_name} -%doc README.md AUTHORS -%license COPYING -%{_bindir}/jsonpointer -%{_bindir}/jsonpointer-3* -%{python3_sitelib}/__pycache__/* -%{python3_sitelib}/%{pypi_name}.py* -%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info -%endif # with python3 %changelog +* Tue Oct 29 2024 Troy Dawson - 2.3-9 +- Bump release for October 2024 mass rebuild: + Resolves: RHEL-64018 + +* Mon Jun 24 2024 Troy Dawson - 2.3-8 +- Bump release for June 2024 mass rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 2.3-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 2.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 2.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jul 12 2023 Nathan Scott - 2.3-4 +- Use SPDX license string + +* Tue Jun 13 2023 Python Maint - 2.3-3 +- Rebuilt for Python 3.12 + +* Sat Mar 25 2023 Igor Raits - 2.3-2 +- Remove broken gating tests + +* Sat Mar 11 2023 Igor Raits - 2.3-1 +- Update to 2.3 + +* Fri Jan 20 2023 Fedora Release Engineering - 2.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 2.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 2.0-6 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 2.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Thu Jun 03 2021 Python Maint - 2.0-3 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Sep 30 2020 Andreas Gerstmayr - 2.0-1 +- update to upstream version 2.0 + +* Wed Jul 29 2020 Fedora Release Engineering - 1.10-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sat May 23 2020 Miro Hrončok - 1.10-20 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.10-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Sep 23 2019 Miro Hrončok - 1.10-18 +- Subpackage python2-jsonpointer has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Thu Aug 15 2019 Miro Hrončok - 1.10-17 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.10-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 1.10-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek - 1.10-14 +- Use C.UTF-8 locale + See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot + +* Sat Jul 14 2018 Fedora Release Engineering - 1.10-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Jun 15 2018 Miro Hrončok - 1.10-12 +- Rebuilt for Python 3.7 + * Tue Apr 03 2018 Charalampos Stratakis - 1.10-11 - Conditionalize the Python 2 subpackage and don't build it on EL > 7 diff --git a/sources b/sources index 88e724b..c9fd9fe 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (jsonpointer-1.10.tar.gz) = b2df5f19b14b670825b18f7da4ca50b089beb2ccbb1c69acfc904eed82b5315ad19940b4aaa8f8504c2fc7d477778d65e31f492dd30ee8b5ba95ccfd0eaeb9b1 +SHA512 (jsonpointer-2.3.tar.gz) = e04da474a5ec376d1cd2c764c2d7a11ac296450df199449994cb1dedf02a49df3ae3a4e75b2963370dba1da166464602b849a79609f7a98d8246dab0b342c819