2848091
%if 0%{?rhel} && 0%{?rhel} < 9
2848091
%bcond_with tests
2848091
%else
2848091
%bcond_without tests
2848091
%endif
2848091
Igor Gnatenko 82ed3a3
%global modname cerberus
Igor Gnatenko 82ed3a3
Igor Gnatenko 82ed3a3
Name:           python-%{modname}
2848091
Version:        1.3.2
5553d10
Release:        5%{?dist}
Igor Gnatenko 82ed3a3
Summary:        Lightweight, extensible data validation library for Python
Igor Gnatenko 82ed3a3
Igor Gnatenko 82ed3a3
License:        ISC
9a04ff0
URL:            https://github.com/pyeve/cerberus
Igor Gnatenko 82ed3a3
Source0:        %{url}/archive/%{version}/%{modname}-%{version}.tar.gz
Igor Gnatenko 82ed3a3
Igor Gnatenko 82ed3a3
BuildArch:      noarch
Igor Gnatenko 82ed3a3
Igor Gnatenko 82ed3a3
%global _description \
Igor Gnatenko 82ed3a3
Cerberus is a lightweight and extensible data validation library for Python.\
Igor Gnatenko 82ed3a3
\
Igor Gnatenko 82ed3a3
Cerberus provides type checking and other base functionality out of the box\
Igor Gnatenko 82ed3a3
and is designed to be non-blocking and easily extensible, allowing for custom\
Igor Gnatenko 82ed3a3
validation. It has no dependancies and is thoroughly tested.
Igor Gnatenko 82ed3a3
Igor Gnatenko 82ed3a3
%description %{_description}
Igor Gnatenko 82ed3a3
Igor Gnatenko 82ed3a3
%package -n python3-%{modname}
Igor Gnatenko 82ed3a3
Summary:        %{summary}
Igor Gnatenko 82ed3a3
%{?python_provide:%python_provide python3-%{modname}}
Igor Gnatenko 82ed3a3
BuildRequires:  python3-devel
Igor Gnatenko 82ed3a3
BuildRequires:  python3-setuptools
2848091
%if %{with tests}
2848091
BuildRequires:  python3-pytest >= 3.6
2848091
%endif
Igor Gnatenko 82ed3a3
%description -n python3-%{modname} %{_description}
Igor Gnatenko 82ed3a3
Igor Gnatenko 82ed3a3
Python 3 version.
Igor Gnatenko 82ed3a3
Igor Gnatenko 82ed3a3
%prep
9a04ff0
%autosetup -n %{modname}-%{version} -p1
Igor Gnatenko 82ed3a3
Igor Gnatenko 82ed3a3
%build
Igor Gnatenko 82ed3a3
%py3_build
Igor Gnatenko 82ed3a3
Igor Gnatenko 82ed3a3
%install
Igor Gnatenko 82ed3a3
%py3_install
Igor Gnatenko 82ed3a3
2848091
%if %{with tests}
Igor Gnatenko 82ed3a3
%check
5d69ed2
py.test-%{python3_version} -v %{modname}/tests
2848091
%endif
Igor Gnatenko 82ed3a3
Igor Gnatenko 82ed3a3
%files -n python3-%{modname}
Igor Gnatenko 82ed3a3
%license LICENSE
1104e46
%doc README.rst AUTHORS CHANGES.rst
Igor Gnatenko 82ed3a3
%{python3_sitelib}/Cerberus-*.egg-info/
Igor Gnatenko 82ed3a3
%{python3_sitelib}/%{modname}/
Igor Gnatenko 82ed3a3
Igor Gnatenko 82ed3a3
%changelog
5553d10
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-5
5553d10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
5553d10
9a20dc2
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-4
9a20dc2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
9a20dc2
bcde796
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.3.2-3
bcde796
- Rebuilt for Python 3.10
bcde796
af56b45
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-2
af56b45
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
af56b45
2848091
* Sat Aug 15 2020 Neal Gompa <ngompa13@gmail.com> - 1.3.2-1
2848091
- Update to 1.3.2
2848091
- Disable tests on EPEL 8 due to pytest being too old
2848091
27e2435
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-6
27e2435
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
27e2435
658cfe6
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.3.1-5
658cfe6
- Rebuilt for Python 3.9
658cfe6
aac6e5c
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-4
aac6e5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
aac6e5c
37abccb
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.1-3
37abccb
- Rebuilt for Python 3.8.0rc1 (#1748018)
37abccb
b9c3093
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.3.1-2
b9c3093
- Rebuilt for Python 3.8
b9c3093
892450e
* Sun Jul 28 16:42:27 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.1-1
892450e
- Update to 1.3.1
892450e
9375c1b
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-5
9375c1b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9375c1b
426ff37
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-4
426ff37
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
426ff37
7c8f963
* Thu Dec 27 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2-3
7c8f963
- Subpackage python2-cerberus has been removed
7c8f963
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
7c8f963
f52bd9a
* Mon Dec 24 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.2-2
f52bd9a
- Enable python dependency generator
f52bd9a
df42139
* Fri Aug 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.2-1
df42139
- Update to 1.2
df42139
3e327df
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-5
3e327df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
3e327df
f92eb85
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1-4
f92eb85
- Rebuilt for Python 3.7
f92eb85
feabe8d
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-3
feabe8d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
feabe8d
1d912cb
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-2
1d912cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1d912cb
5d69ed2
* Sat Feb 11 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.1-1
5d69ed2
- Update to 1.1
5d69ed2
6d80cf9
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3
6d80cf9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
6d80cf9
622953f
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-2
622953f
- Rebuild for Python 3.6
622953f
Igor Gnatenko f215008
* Thu Sep 01 2016 Igor Gnatenko <ignatenko@redhat.com> - 1.0.1-1
Igor Gnatenko f215008
- Update to 1.0.1
Igor Gnatenko f215008
6961de1
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-2
6961de1
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
6961de1
Igor Gnatenko 82ed3a3
* Mon May 09 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.9.2-1
Igor Gnatenko 82ed3a3
- Initial package