221c8b
%global pypi_name jmespath
221c8b
221c8b
Name:           python-%{pypi_name}
221c8b
Version:        0.9.4
221c8b
Release:        11%{?dist}
221c8b
Summary:        JSON Matching Expressions
221c8b
221c8b
License:        MIT
221c8b
URL:            https://github.com/jmespath/jmespath.py
221c8b
Source0:        https://pypi.python.org/packages/source/j/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
221c8b
BuildArch:      noarch
221c8b
221c8b
Patch:          nonose.patch
221c8b
221c8b
%description
221c8b
JMESPath allows you to declaratively specify how to extract elements from
221c8b
a JSON document.
221c8b
221c8b
%package -n     python3-%{pypi_name}
221c8b
Summary:        JSON Matching Expressions
221c8b
%{?python_provide:%python_provide python3-%{pypi_name}}
221c8b
%{?python_provide:%python_provide python-%{pypi_name}}
221c8b
221c8b
BuildRequires:  python3-devel
221c8b
BuildRequires:  python3-setuptools
221c8b
BuildRequires:  python3-pytest
221c8b
221c8b
Obsoletes: python2-jmespath < 0.9.4-2
221c8b
221c8b
%description -n python3-%{pypi_name}
221c8b
JMESPath allows you to declaratively specify how to extract elements from
221c8b
a JSON document.
221c8b
221c8b
%prep
221c8b
%setup -q -n %{pypi_name}-%{version}
221c8b
%patch -p1
221c8b
rm -rf %{pypi_name}.egg-info
221c8b
221c8b
%build
221c8b
%py3_build
221c8b
221c8b
%install
221c8b
%py3_install
221c8b
221c8b
%check
221c8b
%pytest
221c8b
221c8b
%files -n python3-%{pypi_name}
221c8b
%doc README.rst
221c8b
%license LICENSE.txt
221c8b
%{_bindir}/jp.py
221c8b
%{python3_sitelib}/%{pypi_name}
221c8b
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
221c8b
221c8b
%changelog
221c8b
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.9.4-11
221c8b
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
221c8b
  Related: rhbz#1991688
221c8b
221c8b
* Wed Jun 30 2021 Pavel Cahyna <pcahyna@redhat.com> - 0.9.4-10
221c8b
- Remove the python-nose dependency, replace by pytest
221c8b
221c8b
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.9.4-9
221c8b
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
221c8b
221c8b
* Wed Mar  3 2021 Pavel Cahyna <pcahyna@redhat.com> - 0.9.4-8
221c8b
- Remove unused python-mock build dependency
221c8b
221c8b
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-7
221c8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
221c8b
221c8b
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-6
221c8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
221c8b
221c8b
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 0.9.4-5
221c8b
- Rebuilt for Python 3.9
221c8b
221c8b
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-4
221c8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
221c8b
221c8b
* Wed Sep  4 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.9.4-3
221c8b
- Obsolete python2 subpackage to fix upgrade path (#1734184)
221c8b
221c8b
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9.4-2
221c8b
- Rebuilt for Python 3.8
221c8b
221c8b
* Wed Jul 24 2019 Kevin Fenzi <kevin@scrye.com> - 0.9.4-1
221c8b
- Upgrade to 0.9.4.
221c8b
- Drop python2 subpackage and fix unversioned command to use python3.
221c8b
221c8b
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.3-2
221c8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
221c8b
221c8b
* Sat Sep 08 2018 Kevin Fenzi <kevin@scrye.com> - 0.9.3-1
221c8b
- Upgrade to 0.9.3. Fixes bug #1588131
221c8b
221c8b
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-12
221c8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
221c8b
221c8b
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.0-11
221c8b
- Rebuilt for Python 3.7
221c8b
221c8b
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.9.0-10
221c8b
- Update Python 2 dependency declarations to new packaging standards
221c8b
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
221c8b
221c8b
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-9
221c8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
221c8b
221c8b
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-8
221c8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
221c8b
221c8b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-7
221c8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
221c8b
221c8b
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.9.0-6
221c8b
- Rebuild for Python 3.6
221c8b
221c8b
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-5
221c8b
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
221c8b
221c8b
* Mon Jun 27 2016 Haïkel Guémar <hguemar@fedoraproject.org> - 0.9.0-4
221c8b
- Fix python2 subpackage requiring python3 (RHBZ#1342501)
221c8b
221c8b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-3
221c8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
221c8b
221c8b
* Wed Jan 06 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.9.0-2
221c8b
- Improve to set the Provides tag for EL6 too
221c8b
221c8b
* Tue Dec 29 2015 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.9.0-1
221c8b
- Upgrade to upstream current version
221c8b
- Improve the spec file
221c8b
- Make possible to build in EL6
221c8b
221c8b
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-3
221c8b
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
221c8b
221c8b
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-2
221c8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
221c8b
221c8b
* Fri Dec 19 2014 Lubomir Rintel <lkundrak@v3.sk> - 0.5.0-1
221c8b
- New version
221c8b
221c8b
* Fri Jul 25 2014 Lubomir Rintel <lkundrak@v3.sk> - 0.4.1-2
221c8b
- Add Python 3 support
221c8b
221c8b
* Fri Jul 25 2014 Lubomir Rintel <lkundrak@v3.sk> - 0.4.1-1
221c8b
- Initial packaging