63a4d80
%{?python_enable_dependency_generator}
58331b2
%{!?sources_gpg: %{!?dlrn:%global sources_gpg 1} }
63a4d80
%global sources_gpg_sign 0x01527a34f0d0080f8a5db8d6eb6c5df21b4b6363
6b6523e
11d501c
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
11d501c
c584188
%global pypi_name debtcollector
3684790
%global with_doc 1
c584188
%global common_desc \
c584188
It is a collection of functions/decorators which is used to signal a user when \
c584188
*  a method (static method, class method, or regular instance method) or a class \
c584188
    or function is going to be removed at some point in the future. \
c584188
* to move a instance method/property/class from an existing one to a new one \
c584188
* a keyword is renamed \
c584188
* further customizing the emitted messages
3684790
55cfbec
Name:        python-%{pypi_name}
63a4d80
Version:     2.5.0
07e73c2
Release:     6%{?dist}
6b6523e
Summary:     A collection of Python deprecation patterns and strategies
6b6523e
6b6523e
License:     ASL 2.0
Alan Pevec 29a21fc
URL:         https://pypi.python.org/pypi/%{pypi_name}
51e3692
Source0:     https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{upstream_version}.tar.gz
58331b2
# Required for tarball sources verification
58331b2
%if 0%{?sources_gpg} == 1
58331b2
Source101:        https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{upstream_version}.tar.gz.asc
58331b2
Source102:        https://releases.openstack.org/_static/%{sources_gpg_sign}.txt
58331b2
%endif
6b6523e
6b6523e
BuildArch:   noarch
3684790
58331b2
# Required for tarball sources verification
58331b2
%if 0%{?sources_gpg} == 1
58331b2
BuildRequires:  /usr/bin/gpgv2
58331b2
%endif
58331b2
63a4d80
BuildRequires: git-core
3684790
2f3eee3
%description
c584188
%{common_desc}
c584188
57fbf63
%package -n python3-%{pypi_name}
c584188
Summary:     A collection of Python deprecation patterns and strategies
57fbf63
%{?python_provide:%python_provide python3-%{pypi_name}}
c584188
57fbf63
BuildRequires: python3-devel
57fbf63
BuildRequires: python3-setuptools
c584188
57fbf63
Requires:    python3-wrapt
63a4d80
%if 0%{?rhel} == 8
63a4d80
Requires:    python3-importlib-metadata >= 1.7.0
63a4d80
%endif
c584188
57fbf63
%description -n python3-%{pypi_name}
c584188
%{common_desc}
c584188
2f3eee3
3684790
%if 0%{?with_doc}
55cfbec
%package -n python-%{pypi_name}-doc
6b6523e
Summary:        Documentation for the debtcollector module
6b6523e
57fbf63
BuildRequires:  python3-sphinx
57fbf63
BuildRequires:  python3-openstackdocstheme
57fbf63
BuildRequires:  python3-fixtures
57fbf63
BuildRequires:  python3-wrapt
6b6523e
55cfbec
%description -n python-%{pypi_name}-doc
6b6523e
Documentation for the debtcollector module
3684790
%endif
3684790
6b6523e
6b6523e
%prep
58331b2
# Required for tarball sources verification
58331b2
%if 0%{?sources_gpg} == 1
58331b2
%{gpgverify}  --keyring=%{SOURCE102} --signature=%{SOURCE101} --data=%{SOURCE0}
58331b2
%endif
3684790
%autosetup -n %{pypi_name}-%{upstream_version} -S git
6b6523e
6b6523e
# let RPM handle deps
3684790
rm -rf *requirements.txt
6b6523e
6b6523e
%build
57fbf63
%{py3_build}
55cfbec
3684790
%if 0%{?with_doc}
6b6523e
# doc
57fbf63
sphinx-build-3 -b html doc/source doc/build/html
6b6523e
# Fix hidden-file-or-dir warnings
57fbf63
rm -fr doc/build/html/.{doctrees,buildinfo}
3684790
%endif
6b6523e
6b6523e
%install
57fbf63
%{py3_install}
3684790
57fbf63
%files -n python3-%{pypi_name}
c584188
%doc README.rst CONTRIBUTING.rst
c584188
%license LICENSE
57fbf63
%{python3_sitelib}/%{pypi_name}
57fbf63
%{python3_sitelib}/%{pypi_name}*.egg-info
57fbf63
%exclude %{python3_sitelib}/%{pypi_name}/tests
6b6523e
3684790
%if 0%{?with_doc}
55cfbec
%files -n python-%{pypi_name}-doc
6b6523e
%doc doc/build/html
Alan Pevec 29a21fc
%license LICENSE
3684790
%endif
6b6523e
6b6523e
%changelog
07e73c2
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-6
07e73c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
07e73c2
16607c4
* Thu Jun 15 2023 Python Maint <python-maint@redhat.com> - 2.5.0-5
16607c4
- Rebuilt for Python 3.12
16607c4
21fb4c3
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-4
21fb4c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
21fb4c3
1ed0b5c
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-3
1ed0b5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
1ed0b5c
a41bf6e
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 2.5.0-2
a41bf6e
- Rebuilt for Python 3.11
a41bf6e
63a4d80
* Thu May 19 2022 Joel Capitao <jcapitao@redhat.com> 2.5.0-1
63a4d80
- Update to upstream version 2.5.0
63a4d80
69403cc
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-7
69403cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
69403cc
74b092e
* Tue Jul 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-6
74b092e
- Second attempt - Rebuilt for
74b092e
  https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
74b092e
b65836e
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.2.0-5
b65836e
- Rebuilt for Python 3.10
b65836e
f0733fc
* Wed Feb 10 2021 Charalampos Stratakis <cstratak@redhat.com> - 2.2.0-4
f0733fc
- Remove redundant python-funcsigs dependency
f0733fc
365ea9a
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-3
365ea9a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
365ea9a
58331b2
* Wed Oct 28 2020 Alfredo Moralejo <amoralej@redhat.com> 2.2.0-2
58331b2
- Update to upstream version 2.2.0
58331b2
f5aab7b
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-2
f5aab7b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f5aab7b
57fbf63
* Wed Jun 03 2020 Joel Capitao <jcapitao@redhat.com> 2.0.1-1
57fbf63
- Update to upstream version 2.0.1
57fbf63
a9ac272
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.22.0-4
a9ac272
- Rebuilt for Python 3.9
a9ac272
0d9f902
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.22.0-3
0d9f902
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0d9f902
c584188
* Wed Nov 06 2019 Alfredo Moralejo <amoralej@redhat.com> 1.22.0-2
c584188
- Update to upstream version 1.22.0
c584188
1c94c79
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.21.0-4
1c94c79
- Rebuilt for Python 3.8.0rc1 (#1748018)
1c94c79
0411461
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.21.0-3
0411461
- Rebuilt for Python 3.8
0411461
6df92a8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.21.0-2
6df92a8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
6df92a8
3684790
* Fri Mar 08 2019 RDO <dev@lists.rdoproject.org> 1.21.0-1
3684790
- Update to 1.21.0
6b6523e