0ecbeaa
%global srcname mongoquery
0ecbeaa
0ecbeaa
Name:           python-%{srcname}
2b76936
Version:        1.3.6
3d3ddea
Release:        4%{?dist}
0ecbeaa
Summary:        A python implementation of mongodb queries
0ecbeaa
0ecbeaa
License:        Unlicense
0ecbeaa
URL:            https://github.com/kapouille/%{srcname}
6263462
Source0:        https://github.com/kapouille/%{srcname}/archive/%{version}.tar.gz
0ecbeaa
0ecbeaa
BuildArch:      noarch
6263462
BuildRequires:  python3-devel
6263462
BuildRequires:  python3-six
2b76936
BuildRequires:  python3-pytest
3d3ddea
BuildRequires:  python3-setuptools
6263462
6263462
Requires:       python3-six
0ecbeaa
0ecbeaa
%description
0ecbeaa
A utility library that provides a MongoDB-like query language for querying
0ecbeaa
Python collections. It's mainly intended to parse objects structured as
0ecbeaa
fundamental types in a similar fashion to what is produced by JSON or YAML
0ecbeaa
parsers. It follows the specification of queries for MongoDB version 3.2.
0ecbeaa
0ecbeaa
%package -n python3-%{srcname}
0ecbeaa
Summary:        %{summary}
0ecbeaa
%{?python_provide:%python_provide python3-%{srcname}}
0ecbeaa
0ecbeaa
%description -n python3-%{srcname}
0ecbeaa
A utility library that provides a MongoDB-like query language for querying
0ecbeaa
Python collections. It's mainly intended to parse objects structured as
0ecbeaa
fundamental types in a similar fashion to what is produced by JSON or YAML
0ecbeaa
parsers. It follows the specification of queries for MongoDB version 3.2.
0ecbeaa
0ecbeaa
%prep
0ecbeaa
%autosetup -n %{srcname}-%{version}
0ecbeaa
0ecbeaa
%build
0ecbeaa
%py3_build
0ecbeaa
0ecbeaa
%install
0ecbeaa
%py3_install
0ecbeaa
0ecbeaa
%check
2b76936
# For some reason, 'setup.py test' doesn't work here (executes 0 tests)
2b76936
PYTHONPATH=. pytest-3
0ecbeaa
0ecbeaa
%files -n python3-%{srcname}
0ecbeaa
%license LICENSE
0ecbeaa
%doc README.rst
0ecbeaa
%{python3_sitelib}/%{srcname}/
b83cbaa
%{python3_sitelib}/%{srcname}-*.egg-info/
0ecbeaa
0ecbeaa
%changelog
3d3ddea
* Wed Aug 05 2020 Frantisek Zatloukal <fzatlouk@redhat.com> - 1.3.6-4
3d3ddea
- BuildRequires python3-setuptools, fix RHBZ#1850951
3d3ddea
f8ea5df
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.6-3
f8ea5df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f8ea5df
6a21407
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.3.6-2
6a21407
- Rebuilt for Python 3.9
6a21407
2b76936
* Mon Feb 03 2020 Frantisek Zatloukal <fzatlouk@redhat.com> - 1.3.6-1
2b76936
- Release 1.3.6
2b76936
b138d1e
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-5
b138d1e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
b138d1e
7e313c0
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.5-4
7e313c0
- Rebuilt for Python 3.8.0rc1 (#1748018)
7e313c0
f5126d8
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.5-3
f5126d8
- Rebuilt for Python 3.8
f5126d8
6690932
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.5-2
6690932
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
6690932
b83cbaa
* Wed Feb 13 2019 Frantisek Zatloukal <fzatlouk@redhat.com> - 1.3.5-1
b83cbaa
- Update to latest upstream: 1.3.5
b83cbaa
- Drop Python 2 support
b83cbaa
0e47934
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-3
0e47934
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
0e47934
3836337
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-2
3836337
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
3836337
6263462
* Wed Jul 04 2018 Frantisek Zatloukal <fzatlouk@redhat.com> - 1.3.3-1
6263462
- Update to latest upstream: 1.3.3
6263462
3eda1b3
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-6
3eda1b3
- Rebuilt for Python 3.7
3eda1b3
0ff911c
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
0ff911c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0ff911c
b8984a8
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
b8984a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b8984a8
bafb5d9
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
bafb5d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bafb5d9
a8ab72b
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.1.0-2
a8ab72b
- Rebuild for Python 3.6
a8ab72b
0ecbeaa
* Thu Jun 02 2016 Josef Skladanka <jskladan@redhat.com> - 1.1.0-1
0ecbeaa
- initial packaging