Compare commits

...

No commits in common. "c9" and "c8s" have entirely different histories.
c9 ... c8s

5 changed files with 79 additions and 54 deletions

3
.gitignore vendored
View File

@ -1 +1,2 @@
SOURCES/jsonpointer-2.0.tar.gz SOURCES/jsonpointer-1.10.tar.gz
/jsonpointer-1.10.tar.gz

View File

@ -1 +0,0 @@
f0733349a44b0c777ef9b8e0256d628e2530624b SOURCES/jsonpointer-2.0.tar.gz

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-8
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional}

View File

@ -1,9 +1,23 @@
%global pypi_name jsonpointer %global pypi_name jsonpointer
%global github_name python-json-pointer %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} Name: python-%{pypi_name}
Version: 2.0 Version: 1.10
Release: 4%{?dist} Release: 11%{?dist}
Summary: Resolve JSON Pointers in Python Summary: Resolve JSON Pointers in Python
License: BSD License: BSD
@ -16,89 +30,93 @@ BuildArch: noarch
%description %description
Library to resolve JSON Pointers according to RFC 6901. Library to resolve JSON Pointers according to RFC 6901.
%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} %package -n python3-%{pypi_name}
Summary: %{summary} Summary: Resolve JSON Pointers in Python
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
%{?python_provide:%python_provide python3-%{pypi_name}} %{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name} %description -n python3-%{pypi_name}
Library to resolve JSON Pointers according to RFC 6901. Library to resolve JSON Pointers according to RFC 6901.
%endif # with python3
%prep %prep
%setup -q -n %{pypi_name}-%{version} %setup -q -n %{pypi_name}-%{version}
%build %build
%py3_build %if %{with python2}
%py2_build
%endif # with python2
%if %{with python3}
LC_ALL=en_US.UTF-8 %py3_build
%endif # with python3
%install %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
%py3_install %if %{with python3}
LC_ALL=en_US.UTF-8 %py3_install
mv %{buildroot}%{_bindir}/jsonpointer %{buildroot}%{_bindir}/jsonpointer-%{python3_version} 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-3
ln -s ./jsonpointer-%{python3_version} %{buildroot}%{_bindir}/jsonpointer ln -s ./jsonpointer-%{python3_version} %{buildroot}%{_bindir}/jsonpointer
%endif # with python3
%check %check
%if %{with python3}
%{__python3} tests.py %{__python3} tests.py
%endif # with python3
%if %{with python2}
%{__python2} tests.py
%endif # with python2
%if %{with python2}
%files -n python2-%{pypi_name}
%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} %files -n python3-%{pypi_name}
%doc README.md AUTHORS %doc README.md AUTHORS
%license LICENSE.txt %license COPYING
%{_bindir}/jsonpointer %{_bindir}/jsonpointer
%{_bindir}/jsonpointer-3* %{_bindir}/jsonpointer-3*
%{python3_sitelib}/__pycache__/* %{python3_sitelib}/__pycache__/*
%{python3_sitelib}/%{pypi_name}.py* %{python3_sitelib}/%{pypi_name}.py*
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
%endif # with python3
%changelog %changelog
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.0-4
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.0-3
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Wed Sep 30 2020 Andreas Gerstmayr <agerstmayr@redhat.com> - 2.0-1
- update to upstream version 2.0
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 1.10-20
- Rebuilt for Python 3.9
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Mon Sep 23 2019 Miro Hrončok <mhroncok@redhat.com> - 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 <mhroncok@redhat.com> - 1.10-17
- Rebuilt for Python 3.8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 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 <releng@fedoraproject.org> - 1.10-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 1.10-12
- Rebuilt for Python 3.7
* Tue Apr 03 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.10-11 * Tue Apr 03 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.10-11
- Conditionalize the Python 2 subpackage and don't build it on EL > 7 - Conditionalize the Python 2 subpackage and don't build it on EL > 7

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (jsonpointer-1.10.tar.gz) = b2df5f19b14b670825b18f7da4ca50b089beb2ccbb1c69acfc904eed82b5315ad19940b4aaa8f8504c2fc7d477778d65e31f492dd30ee8b5ba95ccfd0eaeb9b1