Blame SPECS/python-futurist.spec

3cddf1
%{!?sources_gpg: %{!?dlrn:%global sources_gpg 1} }
3cddf1
%global sources_gpg_sign 0x2426b928085a020d8a90d0d879ab7008d0896c8a
3cddf1
3cddf1
%global with_doc 1
3cddf1
3cddf1
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
3cddf1
3cddf1
%global pypi_name futurist
3cddf1
3cddf1
%global common_desc \
3cddf1
Code from the future, delivered to you in the now.
3cddf1
3cddf1
Name:           python-%{pypi_name}
3cddf1
Version:        2.3.0
3cddf1
Release:        3%{?dist}
3cddf1
Summary:        Useful additions to futures, from the future
3cddf1
3cddf1
License:        ASL 2.0
3cddf1
URL:            http://docs.openstack.org/developer/futurist
3cddf1
Source0:        https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{upstream_version}.tar.gz
3cddf1
# Required for tarball sources verification
3cddf1
%if 0%{?sources_gpg} == 1
3cddf1
Source101:        https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{upstream_version}.tar.gz.asc
3cddf1
Source102:        https://releases.openstack.org/_static/%{sources_gpg_sign}.txt
3cddf1
%endif
3cddf1
BuildArch:      noarch
3cddf1
3cddf1
# Required for tarball sources verification
3cddf1
%if 0%{?sources_gpg} == 1
3cddf1
BuildRequires:  /usr/bin/gpgv2
3cddf1
%endif
3cddf1
3cddf1
%package -n python3-%{pypi_name}
3cddf1
Summary:        Useful additions to futures, from the future
3cddf1
%{?python_provide:%python_provide python3-%{pypi_name}}
3cddf1
3cddf1
BuildRequires:  python3-devel
3cddf1
BuildRequires:  python3-pbr
3cddf1
BuildRequires:  git
3cddf1
BuildRequires:  python3-prettytable
3cddf1
BuildRequires:  python3-setuptools
3cddf1
BuildRequires:  python3-six
3cddf1
BuildRequires:  python3-contextlib2
3cddf1
3cddf1
Requires:       python3-six >= 1.10.0
3cddf1
3cddf1
%description -n python3-%{pypi_name}
3cddf1
%{common_desc}
3cddf1
3cddf1
%if 0%{?with_doc}
3cddf1
%package -n python-%{pypi_name}-doc
3cddf1
Summary:        Useful additions to futures, from the future - documentation
3cddf1
3cddf1
BuildRequires:  python3-sphinx
3cddf1
BuildRequires:  python3-openstackdocstheme
3cddf1
3cddf1
%description -n python-%{pypi_name}-doc
3cddf1
%{common_desc}
3cddf1
%endif
3cddf1
3cddf1
%description
3cddf1
========
3cddf1
Futurist
3cddf1
========
3cddf1
3cddf1
%{common_desc}
3cddf1
3cddf1
%prep
3cddf1
# Required for tarball sources verification
3cddf1
%if 0%{?sources_gpg} == 1
3cddf1
%{gpgverify}  --keyring=%{SOURCE102} --signature=%{SOURCE101} --data=%{SOURCE0}
3cddf1
%endif
3cddf1
%autosetup -n %{pypi_name}-%{upstream_version} -S git
3cddf1
3cddf1
%build
3cddf1
%{py3_build}
3cddf1
3cddf1
%if 0%{?with_doc}
3cddf1
# generate html docs
3cddf1
sphinx-build-3 -W -b html doc/source doc/build/html
3cddf1
# remove the sphinx-build-3 leftovers
3cddf1
rm -rf doc/build/html/.{doctrees,buildinfo}
3cddf1
%endif
3cddf1
3cddf1
%install
3cddf1
%{py3_install}
3cddf1
3cddf1
%files -n python3-%{pypi_name}
3cddf1
%doc README.rst
3cddf1
%license LICENSE
3cddf1
%{python3_sitelib}/%{pypi_name}
3cddf1
%{python3_sitelib}/%{pypi_name}-*-py%{python3_version}.egg-info
3cddf1
3cddf1
%if 0%{?with_doc}
3cddf1
%files -n python-%{pypi_name}-doc
3cddf1
%doc doc/build/html
3cddf1
%license LICENSE
3cddf1
%endif
3cddf1
3cddf1
%changelog
3cddf1
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-3
3cddf1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
3cddf1
3cddf1
* Wed Oct 28 2020 Alfredo Moralejo <amoralej@redhat.com> 2.3.0-2
3cddf1
- Update to upstream version 2.3.0
3cddf1
3cddf1
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-2
3cddf1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3cddf1
3cddf1
* Wed Jun 03 2020 Joel Capitao <jcapitao@redhat.com> 2.1.1-1
3cddf1
- Update to upstream version 2.1.1
3cddf1
3cddf1
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.9.0-4
3cddf1
- Rebuilt for Python 3.9
3cddf1
3cddf1
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-3
3cddf1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3cddf1
3cddf1
* Wed Nov 06 2019 Alfredo Moralejo <amoralej@redhat.com> 1.9.0-2
3cddf1
- Update to upstream version 1.9.0
3cddf1
3cddf1
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.8.1-4
3cddf1
- Rebuilt for Python 3.8.0rc1 (#1748018)
3cddf1
3cddf1
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.8.1-3
3cddf1
- Rebuilt for Python 3.8
3cddf1
3cddf1
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1-2
3cddf1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3cddf1
3cddf1
* Fri Mar 08 2019 RDO <dev@lists.rdoproject.org> 1.8.1-1
3cddf1
- Update to 1.8.1
3cddf1