|
Alan Pevec |
29a21fc |
%global pypi_name debtcollector
|
|
|
6b6523e |
|
|
|
11d501c |
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
|
|
|
11d501c |
|
|
|
55cfbec |
%if 0%{?fedora} >=24
|
|
|
f002f49 |
%global with_python3 1
|
|
|
f002f49 |
%endif
|
|
|
f002f49 |
|
|
|
55cfbec |
Name: python-%{pypi_name}
|
|
|
51e3692 |
Version: 1.11.0
|
|
|
3fce6af |
Release: 2%{?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
|
|
|
6b6523e |
|
|
|
6b6523e |
BuildArch: noarch
|
|
|
2f3eee3 |
%description
|
|
|
2f3eee3 |
It is a collection of functions/decorators which is used to signal a user when
|
|
|
2f3eee3 |
* a method (static method, class method, or regular instance method) or a class
|
|
|
2f3eee3 |
or function is going to be removed at some point in the future.
|
|
|
2f3eee3 |
* to move a instance method/property/class from an existing one to a new one
|
|
|
2f3eee3 |
* a keyword is renamed
|
|
|
2f3eee3 |
* further customizing the emitted messages
|
|
|
2f3eee3 |
|
|
|
55cfbec |
%package -n python2-%{pypi_name}
|
|
|
2f3eee3 |
Summary: A collection of Python deprecation patterns and strategies
|
|
|
2f3eee3 |
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
|
41286b6 |
|
|
|
f002f49 |
BuildRequires: python2-devel
|
|
|
f002f49 |
BuildRequires: python-setuptools
|
|
|
f002f49 |
BuildRequires: python-pbr
|
|
|
f002f49 |
|
|
Alan Pevec |
29a21fc |
Requires: python-babel
|
|
|
51e3692 |
Requires: python-funcsigs
|
|
|
55cfbec |
Requires: python-pbr
|
|
|
55cfbec |
Requires: python-six
|
|
|
6b6523e |
Requires: python-wrapt
|
|
|
6b6523e |
|
|
|
55cfbec |
|
|
|
55cfbec |
%description -n python2-%{pypi_name}
|
|
|
6b6523e |
It is a collection of functions/decorators which is used to signal a user when
|
|
|
6b6523e |
* a method (static method, class method, or regular instance method) or a class
|
|
|
6b6523e |
or function is going to be removed at some point in the future.
|
|
|
6b6523e |
* to move a instance method/property/class from an existing one to a new one
|
|
|
6b6523e |
* a keyword is renamed
|
|
|
6b6523e |
* further customizing the emitted messages
|
|
|
6b6523e |
|
|
|
55cfbec |
%package -n python-%{pypi_name}-doc
|
|
|
6b6523e |
Summary: Documentation for the debtcollector module
|
|
|
6b6523e |
|
|
|
6b6523e |
BuildRequires: python-sphinx
|
|
|
6b6523e |
BuildRequires: python-oslo-sphinx
|
|
|
55cfbec |
BuildRequires: python-six
|
|
|
6b6523e |
|
|
|
55cfbec |
%description -n python-%{pypi_name}-doc
|
|
|
6b6523e |
Documentation for the debtcollector module
|
|
|
6b6523e |
|
|
|
f002f49 |
%if 0%{?with_python3}
|
|
|
55cfbec |
%package -n python3-%{pypi_name}
|
|
|
f002f49 |
Summary: A collection of Python deprecation patterns and strategies
|
|
|
41286b6 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
55cfbec |
|
|
|
f002f49 |
BuildRequires: python3-devel
|
|
|
f002f49 |
BuildRequires: python3-setuptools
|
|
|
f002f49 |
BuildRequires: python3-pbr
|
|
|
f002f49 |
|
|
|
f002f49 |
Requires: python3-babel
|
|
|
51e3692 |
Requires: python3-funcsigs
|
|
|
f002f49 |
Requires: python3-pbr
|
|
|
55cfbec |
Requires: python3-six
|
|
|
f002f49 |
Requires: python3-wrapt
|
|
|
f002f49 |
|
|
|
55cfbec |
%description -n python3-%{pypi_name}
|
|
|
f002f49 |
It is a collection of functions/decorators which is used to signal a user when
|
|
|
f002f49 |
* a method (static method, class method, or regular instance method) or a class
|
|
|
f002f49 |
or function is going to be removed at some point in the future.
|
|
|
f002f49 |
* to move a instance method/property/class from an existing one to a new one
|
|
|
f002f49 |
* a keyword is renamed
|
|
|
f002f49 |
* further customizing the emitted messages
|
|
|
f002f49 |
%endif
|
|
|
f002f49 |
|
|
|
6b6523e |
%prep
|
|
|
55cfbec |
%setup -q -n %{pypi_name}-%{upstream_version}
|
|
|
6b6523e |
|
|
|
6b6523e |
# let RPM handle deps
|
|
Alan Pevec |
29a21fc |
rm -rf requirements.txt
|
|
|
6b6523e |
|
|
|
6b6523e |
%build
|
|
|
55cfbec |
%py2_build
|
|
|
55cfbec |
|
|
|
6b6523e |
# doc
|
|
|
6b6523e |
export PYTHONPATH="$( pwd ):$PYTHONPATH"
|
|
|
6b6523e |
pushd doc
|
|
|
6b6523e |
sphinx-build -b html -d build/doctrees source build/html
|
|
|
6b6523e |
popd
|
|
|
6b6523e |
# Fix hidden-file-or-dir warnings
|
|
|
6b6523e |
rm -fr doc/build/html/.buildinfo
|
|
|
6b6523e |
|
|
|
2f3eee3 |
%if 0%{?with_python3}
|
|
|
55cfbec |
%py3_build
|
|
|
2f3eee3 |
%endif
|
|
|
6b6523e |
|
|
|
6b6523e |
%install
|
|
|
55cfbec |
%py2_install
|
|
|
6b6523e |
|
|
|
f002f49 |
%if 0%{?with_python3}
|
|
|
55cfbec |
%py3_install
|
|
|
f002f49 |
%endif
|
|
|
f002f49 |
|
|
|
55cfbec |
%files -n python2-%{pypi_name}
|
|
|
6b6523e |
%doc README.rst CONTRIBUTING.rst
|
|
|
6b6523e |
%license LICENSE
|
|
Alan Pevec |
29a21fc |
%{python2_sitelib}/%{pypi_name}
|
|
|
f002f49 |
%{python2_sitelib}/%{pypi_name}*.egg-info
|
|
|
55cfbec |
%exclude %{python2_sitelib}/%{pypi_name}/tests
|
|
|
6b6523e |
|
|
|
55cfbec |
%files -n python-%{pypi_name}-doc
|
|
|
6b6523e |
%doc doc/build/html
|
|
Alan Pevec |
29a21fc |
%license LICENSE
|
|
|
6b6523e |
|
|
|
f002f49 |
%if 0%{?with_python3}
|
|
|
55cfbec |
%files -n python3-%{pypi_name}
|
|
|
55cfbec |
%doc README.rst CONTRIBUTING.rst
|
|
|
f002f49 |
%license LICENSE
|
|
|
f002f49 |
%{python3_sitelib}/%{pypi_name}
|
|
|
f002f49 |
%{python3_sitelib}/%{pypi_name}*.egg-info
|
|
|
55cfbec |
%exclude %{python2_sitelib}/%{pypi_name}/tests
|
|
|
2f3eee3 |
%endif
|
|
|
2f3eee3 |
|
|
|
6b6523e |
%changelog
|
|
|
3fce6af |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-2
|
|
|
3fce6af |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
3fce6af |
|
|
|
51e3692 |
* Tue Feb 07 2017 Alfredo Moralejo <amoralej@redhat.com> 1.11.0-1
|
|
|
51e3692 |
- Update to 1.11.0
|
|
|
6b6523e |
|