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