Blame python-debtcollector.spec

Alan Pevec 29a21fc
%global pypi_name debtcollector
6b6523e
11d501c
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
11d501c
55cfbec
Name:        python-%{pypi_name}
51e3692
Version:     1.11.0
b445c91
Release:     8%{?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 python-%{pypi_name}-doc
6b6523e
Summary:        Documentation for the debtcollector module
6b6523e
b445c91
BuildRequires:  python3-sphinx
b445c91
BuildRequires:  python3-oslo-sphinx
b445c91
BuildRequires:  python3-six
6b6523e
55cfbec
%description -n python-%{pypi_name}-doc
6b6523e
Documentation for the debtcollector module
6b6523e
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
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
b445c91
%py3_build
55cfbec
6b6523e
# doc
6b6523e
export PYTHONPATH="$( pwd ):$PYTHONPATH"
6b6523e
pushd doc
b445c91
sphinx-build-3 -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
6b6523e
6b6523e
%install
55cfbec
%py3_install
6b6523e
55cfbec
%files -n python-%{pypi_name}-doc
6b6523e
%doc doc/build/html
Alan Pevec 29a21fc
%license LICENSE
6b6523e
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
2f3eee3
6b6523e
%changelog
b445c91
* Wed Feb 27 2019 Yatin Karel <ykarel@redhat.com> - 1.11.0-8
b445c91
- Drop python2 package
b445c91
3d704c8
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-7
3d704c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3d704c8
80f179b
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-6
80f179b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
80f179b
c726848
* Tue Jun 19 2018 Miro HronĨok <mhroncok@redhat.com> - 1.11.0-5
c726848
- Rebuilt for Python 3.7
c726848
202eb90
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-4
202eb90
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
202eb90
648356f
* Tue Jan 16 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.11.0-3
648356f
- Update Python 2 dependency declarations to new packaging standards
648356f
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
648356f
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