43491e5
%global pypi_name case
43491e5
43491e5
# docs depend on package sphinx_celery
43491e5
# https://github.com/celery/sphinx_celery
43491e5
%global with_docs 0
43491e5
43491e5
Name:           python-%{pypi_name}
b2abbb6
Version:        1.5.3
2816c4d
Release:        15%{?dist}
43491e5
Summary:        Python unittest Utilities
43491e5
43491e5
License:        BSD
261956a
URL:            https://github.com/celery/case
43491e5
Source0:        https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
43491e5
BuildArch:      noarch
43491e5
43491e5
%description
261956a
%{summary}.
43491e5
43491e5
%package -n     python3-%{pypi_name}
43491e5
Summary:        Python unittest Utilities
43491e5
%{?python_provide:%python_provide python3-%{pypi_name}}
43491e5
43491e5
Requires:       python3-six
43491e5
Requires:       python3-setuptools >= 0.7
43491e5
Requires:       python3-nose >= 1.3.7
43491e5
Requires:       python3-setuptools
43491e5
43491e5
BuildRequires:  python3-devel
43491e5
BuildRequires:  python3-coverage >= 3.0
43491e5
BuildRequires:  python3-setuptools
43491e5
BuildRequires:  python3-nose
36c4c7f
BuildRequires:  python3-six
43491e5
43491e5
%description -n python3-%{pypi_name}
261956a
%{summary}.
43491e5
43491e5
%if 0%{?with_docs} > 0
43491e5
%package -n python-%{pypi_name}-doc
43491e5
Summary:        case documentation
43491e5
%description -n python-%{pypi_name}-doc
43491e5
Documentation for case
43491e5
%endif
43491e5
43491e5
%prep
43491e5
%autosetup -n %{pypi_name}-%{version}
43491e5
# Remove bundled egg-info
43491e5
rm -rf %{pypi_name}.egg-info
43491e5
43491e5
%build
43491e5
%py3_build
43491e5
43491e5
%if 0%{?with_docs} > 0
43491e5
# generate html docs
43491e5
sphinx-build docs html
43491e5
# remove the sphinx-build leftovers
43491e5
rm -rf html/.{doctrees,buildinfo}
43491e5
%endif
43491e5
43491e5
%install
43491e5
# Must do the subpackages' install first because the scripts in /usr/bin are
43491e5
# overwritten with every setup.py install.
43491e5
%py3_install
43491e5
43491e5
43491e5
%check
43491e5
%{__python3} setup.py test
43491e5
43491e5
%files -n python3-%{pypi_name}
43491e5
%license LICENSE
43491e5
%doc docs/templates/readme.txt README.rst
43491e5
%{python3_sitelib}/%{pypi_name}
b34581e
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
43491e5
43491e5
%if 0%{?with_docs} > 0
43491e5
%files -n python-%{pypi_name}-doc
43491e5
%doc html
43491e5
%endif
43491e5
43491e5
%changelog
2816c4d
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-15
2816c4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2816c4d
19f8766
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.5.3-14
19f8766
- Rebuilt for Python 3.11
19f8766
10f3c4e
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-13
10f3c4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
10f3c4e
300412f
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-12
300412f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
300412f
c3679df
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.5.3-11
c3679df
- Rebuilt for Python 3.10
c3679df
773b8c4
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-10
773b8c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
773b8c4
5ee65b2
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-9
5ee65b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
5ee65b2
b8d66ef
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 1.5.3-8
b8d66ef
- Rebuilt for Python 3.9
b8d66ef
a3e4c48
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 1.5.3-7
a3e4c48
- Rebuilt for Python 3.9
a3e4c48
d0da766
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-6
d0da766
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d0da766
261956a
* Thu Jan  9 2020 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.5.3-5
261956a
- Remove dependency on unittest2 (#1789200)
261956a
c8eabd9
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.3-4
c8eabd9
- Rebuilt for Python 3.8.0rc1 (#1748018)
c8eabd9
d56f9d0
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.3-3
d56f9d0
- Rebuilt for Python 3.8
d56f9d0
cb54943
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.3-2
cb54943
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
cb54943
b2abbb6
* Tue Apr 30 2019 Matthias Runge <mrunge@redhat.com> - 1.5.3-1
b2abbb6
- drop python2 subpackage
b2abbb6
9371d86
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-9
9371d86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
9371d86
b6a8b4e
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-8
b6a8b4e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b6a8b4e
e590873
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.5.2-7
e590873
- Rebuilt for Python 3.7
e590873
5149548
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-6
5149548
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5149548
70d1347
* Tue Jan 16 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.5.2-5
70d1347
- Update Python 2 dependency declarations to new packaging standards
70d1347
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
70d1347
a0cedeb
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-4
a0cedeb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a0cedeb
4d05342
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-3
4d05342
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4d05342
43491e5
* Mon Jan 02 2017 Matthias Runge <mrunge@redhat.com> - 1.5.2-2
43491e5
- add missing builddeps: python[23]-unittest2, python[23]-nose
43491e5
43491e5
* Tue Dec 27 2016 Matthias Runge <mrunge@redhat.com> - 1.5.2-1
43491e5
- Initial package. (rhbz#1408868)