Blame SPECS/python-oslotest.spec

7387c0
%{!?sources_gpg: %{!?dlrn:%global sources_gpg 1} }
7387c0
%global sources_gpg_sign 0x2426b928085a020d8a90d0d879ab7008d0896c8a
7387c0
%global pypi_name oslotest
7387c0
%global repo_bootstrap 1
7387c0
7387c0
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
7387c0
7387c0
%if 0%{?repo_bootstrap} == 0
7387c0
%global with_doc 1
7387c0
%else
7387c0
%global with_doc 0
7387c0
%endif
7387c0
7387c0
%global common_desc OpenStack test framework and test fixtures.
7387c0
7387c0
Name:           python-%{pypi_name}
7387c0
Version:        4.4.1
7387c0
Release:        3%{?dist}
7387c0
Summary:        OpenStack test framework
7387c0
7387c0
License:        ASL 2.0
7387c0
URL:            http://launchpad.net/oslo
7387c0
Source0:        https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
7387c0
# Required for tarball sources verification
7387c0
%if 0%{?sources_gpg} == 1
7387c0
Source101:        https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{version}.tar.gz.asc
7387c0
Source102:        https://releases.openstack.org/_static/%{sources_gpg_sign}.txt
7387c0
%endif
7387c0
BuildArch:      noarch
7387c0
7387c0
# Required for tarball sources verification
7387c0
%if 0%{?sources_gpg} == 1
7387c0
BuildRequires:  /usr/bin/gpgv2
7387c0
%endif
7387c0
7387c0
BuildRequires:  git
7387c0
7387c0
%description
7387c0
%{common_desc}
7387c0
7387c0
%package -n python3-%{pypi_name}
7387c0
Summary:        OpenStack test framework
7387c0
%{?python_provide:%python_provide python3-%{pypi_name}}
7387c0
7387c0
BuildRequires:  python3-devel
7387c0
BuildRequires:  python3-pbr
7387c0
BuildRequires:  python3-setuptools
7387c0
7387c0
7387c0
# test requires
7387c0
BuildRequires:  python3-six
7387c0
BuildRequires:  python3-stestr
7387c0
%if 0%{?repo_bootstrap} == 0
7387c0
BuildRequires:  python3-oslo-config
7387c0
%endif
7387c0
7387c0
Requires: python3-fixtures
7387c0
Requires: python3-six
7387c0
Requires: python3-subunit
7387c0
Requires: python3-testtools
7387c0
Requires: python3-mock
7387c0
7387c0
7387c0
%description -n python3-%{pypi_name}
7387c0
%{common_desc}
7387c0
7387c0
%if 0%{?with_doc}
7387c0
%package -n python-%{pypi_name}-doc
7387c0
Summary:        Documentation for the OpenStack test framework
7387c0
7387c0
BuildRequires:  python3-sphinx
7387c0
BuildRequires:  python3-openstackdocstheme
7387c0
BuildRequires:  python3-sphinxcontrib-apidoc
7387c0
7387c0
%description -n python-%{pypi_name}-doc
7387c0
%{common_desc} Documentation
7387c0
%endif
7387c0
7387c0
%prep
7387c0
# Required for tarball sources verification
7387c0
%if 0%{?sources_gpg} == 1
7387c0
%{gpgverify}  --keyring=%{SOURCE102} --signature=%{SOURCE101} --data=%{SOURCE0}
7387c0
%endif
7387c0
%autosetup -n %{pypi_name}-%{upstream_version} -S git
7387c0
7387c0
# let RPM handle deps
7387c0
rm -rf {test-,}requirements.txt
7387c0
7387c0
%build
7387c0
%{py3_build}
7387c0
7387c0
%if 0%{?with_doc}
7387c0
# generate html docs
7387c0
sphinx-build-3 -b html doc/source doc/build/html
7387c0
# remove the sphinx-build-3 leftovers
7387c0
rm -rf doc/build/html/.{doctrees,buildinfo}
7387c0
%endif
7387c0
7387c0
%install
7387c0
%{py3_install}
7387c0
7387c0
%check
7387c0
%if 0%{?repo_bootstrap} == 0
7387c0
python3 setup.py test
7387c0
%endif
7387c0
7387c0
%files -n python3-%{pypi_name}
7387c0
%license LICENSE
7387c0
%{_bindir}/oslo_run_cross_tests
7387c0
%{_bindir}/oslo_run_pre_release_tests
7387c0
%{_bindir}/oslo_debug_helper
7387c0
%{python3_sitelib}/%{pypi_name}
7387c0
%{python3_sitelib}/%{pypi_name}*.egg-info
7387c0
7387c0
%if 0%{?with_doc}
7387c0
%files -n python-%{pypi_name}-doc
7387c0
%license LICENSE
7387c0
%doc doc/build/html
7387c0
%doc README.rst
7387c0
%endif
7387c0
7387c0
%changelog
7387c0
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.1-3
7387c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
7387c0
7387c0
* Wed Oct 28 2020 Alfredo Moralejo <amoralej@redhat.com> 4.4.1-2
7387c0
- Update to upstream version 4.4.1
7387c0
7387c0
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-2
7387c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
7387c0
7387c0
* Wed Jun 03 2020 Joel Capitao <jcapitao@redhat.com> 4.2.0-1
7387c0
- Update to upstream version 4.2.0
7387c0
7387c0
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.8.1-4
7387c0
- Rebuilt for Python 3.9
7387c0
7387c0
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.1-3
7387c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7387c0
7387c0
* Wed Nov 06 2019 Alfredo Moralejo <amoralej@redhat.com> 3.8.1-2
7387c0
- Update to upstream version 3.8.1
7387c0
7387c0
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.1-4
7387c0
- Rebuilt for Python 3.8.0rc1 (#1748018)
7387c0
7387c0
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.1-3
7387c0
- Rebuilt for Python 3.8
7387c0
7387c0
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.1-2
7387c0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
7387c0
7387c0
* Fri Mar 08 2019 RDO <dev@lists.rdoproject.org> 3.7.1-1
7387c0
- Update to 3.7.1
7387c0