|
|
58331b2 |
%{!?sources_gpg: %{!?dlrn:%global sources_gpg 1} }
|
|
|
58331b2 |
%global sources_gpg_sign 0x2426b928085a020d8a90d0d879ab7008d0896c8a
|
|
|
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}
|
|
|
58331b2 |
Version: 2.2.0
|
|
|
74b092e |
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 |
|
|
|
3684790 |
BuildRequires: git
|
|
|
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
|
|
|
57fbf63 |
BuildRequires: python3-pbr
|
|
|
c584188 |
|
|
|
57fbf63 |
Requires: python3-pbr
|
|
|
57fbf63 |
Requires: python3-six
|
|
|
57fbf63 |
Requires: python3-wrapt
|
|
|
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-six
|
|
|
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
|
|
|
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 |
|