955f058
%{!?sources_gpg: %{!?dlrn:%global sources_gpg 1} }
d32640c
%global sources_gpg_sign 0x815afec729392386480e076dcc0dfe2d21c023c9
1470389
66b9cd3
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
66b9cd3
42f732f
%global pypi_name oslo.context
efd5630
%global pkg_name oslo-context
ba53b85
%global with_doc 1
ba53b85
a82f4bb
%global common_desc \
a82f4bb
The OpenStack Oslo context library has helpers to maintain \
a82f4bb
useful information about a request context. \
a82f4bb
The request context is usually populated in the \
a82f4bb
WSGI pipeline and used by various modules such as logging.
a82f4bb
efd5630
Name:           python-%{pkg_name}
d32640c
Version:        5.2.0
7eec5a6
Release:        3%{?dist}
42f732f
Summary:        OpenStack Oslo Context library
42f732f
42f732f
License:        ASL 2.0
66b9cd3
URL:            https://launchpad.net/oslo.context
af0b104
Source0:        https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{upstream_version}.tar.gz
955f058
# Required for tarball sources verification
955f058
%if 0%{?sources_gpg} == 1
955f058
Source101:        https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{upstream_version}.tar.gz.asc
955f058
Source102:        https://releases.openstack.org/_static/%{sources_gpg_sign}.txt
955f058
%endif
42f732f
42f732f
BuildArch:      noarch
42f732f
955f058
# Required for tarball sources verification
955f058
%if 0%{?sources_gpg} == 1
955f058
BuildRequires:  /usr/bin/gpgv2
955f058
%endif
955f058
ced66f1
BuildRequires:  git-core
42f732f
196230b
%package -n python3-%{pkg_name}
6adebe2
Summary:        OpenStack Oslo Context library
196230b
%{?python_provide:%python_provide python3-%{pkg_name}}
6adebe2
196230b
BuildRequires:  python3-devel
196230b
BuildRequires:  python3-pbr
efd5630
# test dependencies
196230b
BuildRequires:  python3-debtcollector
196230b
BuildRequires:  python3-fixtures
d32640c
BuildRequires:  python3-hacking
196230b
BuildRequires:  python3-oslotest
efd5630
196230b
Requires:       python3-debtcollector >= 1.2.0
196230b
Requires:       python3-pbr
6adebe2
196230b
%description -n python3-%{pkg_name}
a82f4bb
%{common_desc}
6adebe2
196230b
%package -n python3-%{pkg_name}-tests
a24c364
Summary:   Tests for OpenStack Oslo context library
a24c364
196230b
Requires:  python3-%{pkg_name} = %{version}-%{release}
a24c364
196230b
%description -n python3-%{pkg_name}-tests
a24c364
Tests for OpenStack Oslo context library
efd5630
1470389
%if 0%{?with_doc}
1470389
%package -n python-%{pkg_name}-doc
1470389
Summary:        Documentation for the OpenStack Oslo context library
1470389
196230b
BuildRequires:  python3-sphinx
196230b
BuildRequires:  python3-openstackdocstheme
1470389
1470389
%description -n python-%{pkg_name}-doc
1470389
Documentation for the OpenStack Oslo context library.
1470389
%endif
1470389
ba53b85
%description
ba53b85
%{common_desc}
ba53b85
42f732f
%prep
955f058
# Required for tarball sources verification
955f058
%if 0%{?sources_gpg} == 1
955f058
%{gpgverify}  --keyring=%{SOURCE102} --signature=%{SOURCE101} --data=%{SOURCE0}
955f058
%endif
9ffbb61
%autosetup -n %{pypi_name}-%{upstream_version} -S git
ba53b85
rm -rf *requirements.txt
42f732f
42f732f
%build
196230b
%{py3_build}
ba53b85
ba53b85
%if 0%{?with_doc}
42f732f
# doc
196230b
sphinx-build-3 -b html doc/source doc/build/html
196230b
# Remove the sphinx-build-3 leftovers
a82f4bb
rm -fr doc/build/html/.{doctrees,buildinfo}
ba53b85
%endif
42f732f
42f732f
%install
196230b
%{py3_install}
6adebe2
efd5630
%check
196230b
python3 setup.py test
ba53b85
196230b
%files -n python3-%{pkg_name}
6adebe2
%license LICENSE
6adebe2
%doc README.rst
196230b
%{python3_sitelib}/oslo_context
196230b
%{python3_sitelib}/*.egg-info
196230b
%exclude %{python3_sitelib}/oslo_context/tests
6adebe2
ba53b85
%if 0%{?with_doc}
efd5630
%files -n python-%{pkg_name}-doc
42f732f
%license LICENSE
a82f4bb
%doc doc/build/html
ba53b85
%endif
42f732f
196230b
%files -n python3-%{pkg_name}-tests
a24c364
%license LICENSE
196230b
%{python3_sitelib}/oslo_context/tests
a24c364
42f732f
%changelog
7eec5a6
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-3
7eec5a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
7eec5a6
fe07f53
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-2
fe07f53
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
fe07f53
d32640c
* Thu Oct 26 2023 Alfredo Moralejo <amoralej@gmail.com> 5.2.0-1
d32640c
- Update to upstream version 5.2.0
d32640c
628314a
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.1-3
628314a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
628314a
1484969
* Tue Jul 04 2023 Python Maint <python-maint@redhat.com> - 5.1.1-2
1484969
- Rebuilt for Python 3.12
1484969
e30233a
* Fri Apr 14 2023 Karolina Kula <kkula@redhat.com> 5.1.1-1
e30233a
- Update to upstream version 5.1.1
e30233a
34dd3cb
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-2
34dd3cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
34dd3cb
5f80243
* Thu Nov 17 2022 Alfredo Moralejo <amoralej@redhat.com> 5.0.0-1
5f80243
- Update to upstream version 5.0.0
5f80243
e033fb4
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-3
e033fb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
e033fb4
0b7fcc3
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 4.1.0-2
0b7fcc3
- Rebuilt for Python 3.11
0b7fcc3
4824244
* Thu May 19 2022 Joel Capitao <jcapitao@redhat.com> 4.1.0-1
4824244
- Update to upstream version 4.1.0
4824244
bd64923
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-4
bd64923
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
bd64923
95ee93b
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.0-3
95ee93b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
95ee93b
acaaff0
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.2.0-2
acaaff0
- Rebuilt for Python 3.10
acaaff0
ced66f1
* Tue Mar 16 2021 Joel Capitao <jcapitao@redhat.com> 3.2.0-1
ced66f1
- Update to upstream version 3.2.0
ced66f1
7d01d87
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.1-3
7d01d87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
7d01d87
955f058
* Wed Oct 28 2020 Alfredo Moralejo <amoralej@redhat.com> 3.1.1-2
955f058
- Update to upstream version 3.1.1
955f058
0ca51ee
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-2
0ca51ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0ca51ee
196230b
* Wed Jun 03 2020 Joel Capitao <jcapitao@redhat.com> 3.0.2-1
196230b
- Update to upstream version 3.0.2
196230b
717bc3b
* Mon Jun 01 2020 Alfredo Moralejo <amoralej@redhat.com> - 2.23.0-5
717bc3b
- Remove hacking as build requirement
717bc3b
d000a3c
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.23.0-4
d000a3c
- Rebuilt for Python 3.9
d000a3c
5de7858
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.23.0-3
5de7858
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5de7858
1470389
* Wed Nov 06 2019 Alfredo Moralejo <amoralej@redhat.com> 2.23.0-2
1470389
- Update to upstream version 2.23.0
1470389
2cb7a97
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.22.1-4
2cb7a97
- Rebuilt for Python 3.8.0rc1 (#1748018)
2cb7a97
7719759
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.22.1-3
7719759
- Rebuilt for Python 3.8
7719759
0326efb
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.22.1-2
0326efb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
0326efb
ba53b85
* Fri Mar 08 2019 RDO <dev@lists.rdoproject.org> 2.22.1-1
ba53b85
- Update to 2.22.1
42f732f