|
|
05465b4 |
%{!?sources_gpg: %{!?dlrn:%global sources_gpg 1} }
|
|
|
5f90e39 |
%global sources_gpg_sign 0x815afec729392386480e076dcc0dfe2d21c023c9
|
|
|
830c76e |
|
|
|
eb85461 |
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
|
|
|
5f90e39 |
# we are excluding some BRs from automatic generator
|
|
|
5f90e39 |
%global excluded_brs doc8 bandit pre-commit hacking flake8-import-order
|
|
|
5f90e39 |
# Exclude sphinx from BRs if docs are disabled
|
|
|
5f90e39 |
%if ! 0%{?with_doc}
|
|
|
5f90e39 |
%global excluded_brs %{excluded_brs} sphinx openstackdocstheme
|
|
|
5f90e39 |
%endif
|
|
|
2b9f8ee |
%global with_doc 1
|
|
|
eb85461 |
|
|
|
a8e1444 |
%global pypi_name oslo.concurrency
|
|
Alan Pevec |
973c74f |
%global pkg_name oslo-concurrency
|
|
|
a8e1444 |
|
|
|
2b9f8ee |
%global common_desc \
|
|
|
2b9f8ee |
Oslo concurrency library has utilities for safely running multi-thread, \
|
|
|
2b9f8ee |
multi-process applications using locking mechanisms and for running \
|
|
|
2b9f8ee |
external processes.
|
|
|
2b9f8ee |
|
|
|
2b9f8ee |
%global common_desc2 \
|
|
|
2b9f8ee |
Tests for the Oslo concurrency library.
|
|
|
2b9f8ee |
|
|
|
a8e1444 |
Name: python-oslo-concurrency
|
|
|
5f90e39 |
Version: 5.2.0
|
|
|
f9b45d9 |
Release: 3%{?dist}
|
|
Alan Pevec |
e2afff7 |
Summary: OpenStack Oslo concurrency library
|
|
|
a8e1444 |
|
|
|
5f90e39 |
License: Apache-2.0
|
|
Alan Pevec |
e2afff7 |
URL: https://launchpad.net/oslo
|
|
|
ad96689 |
Source0: https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{upstream_version}.tar.gz
|
|
|
05465b4 |
# Required for tarball sources verification
|
|
|
05465b4 |
%if 0%{?sources_gpg} == 1
|
|
|
05465b4 |
Source101: https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{upstream_version}.tar.gz.asc
|
|
|
05465b4 |
Source102: https://releases.openstack.org/_static/%{sources_gpg_sign}.txt
|
|
|
05465b4 |
%endif
|
|
|
a8e1444 |
BuildArch: noarch
|
|
|
a8e1444 |
|
|
|
05465b4 |
# Required for tarball sources verification
|
|
|
05465b4 |
%if 0%{?sources_gpg} == 1
|
|
|
05465b4 |
BuildRequires: /usr/bin/gpgv2
|
|
|
05465b4 |
%endif
|
|
|
05465b4 |
|
|
|
4b8a6f5 |
%description
|
|
|
2b9f8ee |
%{common_desc}
|
|
|
4b8a6f5 |
|
|
|
5be41c4 |
%package -n python3-%{pkg_name}
|
|
|
6719344 |
Summary: OpenStack Oslo concurrency library
|
|
|
6719344 |
|
|
|
5be41c4 |
BuildRequires: python3-devel
|
|
|
c64f353 |
BuildRequires: git-core
|
|
|
bd06971 |
BuildRequires: pyproject-rpm-macros
|
|
|
6719344 |
Requires: python-%{pkg_name}-lang = %{version}-%{release}
|
|
|
6719344 |
|
|
|
5be41c4 |
%description -n python3-%{pkg_name}
|
|
|
6719344 |
%{common_desc}
|
|
|
6719344 |
|
|
|
2b9f8ee |
%if 0%{?with_doc}
|
|
|
a8e1444 |
|
|
|
eb85461 |
%package -n python-%{pkg_name}-doc
|
|
Alan Pevec |
e2afff7 |
Summary: Documentation for the Oslo concurrency library
|
|
|
830c76e |
Group: Documentation
|
|
|
eb85461 |
%description -n python-%{pkg_name}-doc
|
|
Alan Pevec |
e2afff7 |
Documentation for the Oslo concurrency library.
|
|
|
a8e1444 |
|
|
|
2b9f8ee |
%endif
|
|
|
2b9f8ee |
|
|
|
5be41c4 |
%package -n python3-%{pkg_name}-tests
|
|
|
1f93403 |
Summary: Tests for the Oslo concurrency library
|
|
|
5be41c4 |
|
|
|
5be41c4 |
Requires: python3-%{pkg_name} = %{version}-%{release}
|
|
|
5be41c4 |
Requires: python3-hacking
|
|
|
5be41c4 |
Requires: python3-oslotest
|
|
|
5be41c4 |
Requires: python3-fixtures
|
|
|
bd06971 |
Requires: python3-stestr
|
|
|
4b8a6f5 |
|
|
|
5be41c4 |
%description -n python3-%{pkg_name}-tests
|
|
|
2b9f8ee |
%{common_desc2}
|
|
|
eb85461 |
|
|
|
1f93403 |
%package -n python-%{pkg_name}-lang
|
|
|
1f93403 |
Summary: Translation files for Oslo concurrency library
|
|
|
1f93403 |
|
|
|
1f93403 |
%description -n python-%{pkg_name}-lang
|
|
|
1f93403 |
Translation files for Oslo concurrency library
|
|
|
0cfbb35 |
|
|
|
a8e1444 |
%prep
|
|
|
05465b4 |
# Required for tarball sources verification
|
|
|
05465b4 |
%if 0%{?sources_gpg} == 1
|
|
|
05465b4 |
%{gpgverify} --keyring=%{SOURCE102} --signature=%{SOURCE101} --data=%{SOURCE0}
|
|
|
05465b4 |
%endif
|
|
|
2b9f8ee |
%autosetup -n %{pypi_name}-%{upstream_version} -S git
|
|
|
5f90e39 |
|
|
|
5f90e39 |
sed -i /^[[:space:]]*-c{env:.*_CONSTRAINTS_FILE.*/d tox.ini
|
|
|
5f90e39 |
sed -i "s/^deps = -c{env:.*_CONSTRAINTS_FILE.*/deps =/" tox.ini
|
|
|
5f90e39 |
sed -i /^minversion.*/d tox.ini
|
|
|
5f90e39 |
sed -i /^requires.*virtualenv.*/d tox.ini
|
|
|
5f90e39 |
|
|
|
5f90e39 |
# Exclude some bad-known BRs
|
|
|
5f90e39 |
for pkg in %{excluded_brs}; do
|
|
|
5f90e39 |
for reqfile in doc/requirements.txt test-requirements.txt; do
|
|
|
5f90e39 |
if [ -f $reqfile ]; then
|
|
|
5f90e39 |
sed -i /^${pkg}.*/d $reqfile
|
|
|
5f90e39 |
fi
|
|
|
5f90e39 |
done
|
|
|
5f90e39 |
done
|
|
|
5f90e39 |
|
|
|
5f90e39 |
# Automatic BR generation
|
|
|
5f90e39 |
%generate_buildrequires
|
|
|
5f90e39 |
%if 0%{?with_doc}
|
|
|
5f90e39 |
%pyproject_buildrequires -t -e %{default_toxenv},docs
|
|
|
5f90e39 |
%else
|
|
|
5f90e39 |
%pyproject_buildrequires -t -e %{default_toxenv}
|
|
|
5f90e39 |
%endif
|
|
|
a8e1444 |
|
|
Alan Pevec |
e2afff7 |
%build
|
|
|
5f90e39 |
%pyproject_wheel
|
|
|
5f90e39 |
|
|
|
5f90e39 |
|
|
|
5f90e39 |
%install
|
|
|
5f90e39 |
%pyproject_install
|
|
|
a8e1444 |
|
|
|
1f93403 |
# Generate i18n files
|
|
|
5f90e39 |
python3 setup.py compile_catalog -d %{buildroot}%{python3_sitelib}/oslo_concurrency/locale --domain oslo_concurrency
|
|
|
1f93403 |
|
|
|
2b9f8ee |
%if 0%{?with_doc}
|
|
|
a8e1444 |
# generate html docs
|
|
|
5f90e39 |
PYTHONPATH="%{buildroot}/%{python3_sitelib}"
|
|
|
5f90e39 |
%tox -e docs
|
|
|
5be41c4 |
# remove the sphinx-build-3 leftovers
|
|
|
2b9f8ee |
rm -rf doc/build/html/.{doctrees,buildinfo}
|
|
|
2b9f8ee |
%endif
|
|
|
a8e1444 |
|
|
|
5be41c4 |
ln -s ./lockutils-wrapper %{buildroot}%{_bindir}/lockutils-wrapper-3
|
|
|
0cfbb35 |
|
|
|
1f93403 |
# Install i18n .mo files (.po and .pot are not required)
|
|
|
1f93403 |
install -d -m 755 %{buildroot}%{_datadir}
|
|
|
5be41c4 |
rm -f %{buildroot}%{python3_sitelib}/oslo_concurrency/locale/*/LC_*/oslo_concurrency*po
|
|
|
5be41c4 |
rm -f %{buildroot}%{python3_sitelib}/oslo_concurrency/locale/*pot
|
|
|
5be41c4 |
mv %{buildroot}%{python3_sitelib}/oslo_concurrency/locale %{buildroot}%{_datadir}/locale
|
|
|
1f93403 |
|
|
|
1f93403 |
# Find language files
|
|
|
1f93403 |
%find_lang oslo_concurrency --all-name
|
|
|
0cfbb35 |
|
|
|
eb85461 |
%check
|
|
|
5f90e39 |
%tox -e %{default_toxenv}
|
|
|
6719344 |
|
|
|
5be41c4 |
%files -n python3-%{pkg_name}
|
|
|
6719344 |
%doc README.rst
|
|
|
6719344 |
%license LICENSE
|
|
|
6719344 |
%{_bindir}/lockutils-wrapper
|
|
|
5be41c4 |
%{_bindir}/lockutils-wrapper-3
|
|
|
5be41c4 |
%{python3_sitelib}/oslo_concurrency
|
|
|
5f90e39 |
%{python3_sitelib}/*.dist-info
|
|
|
5be41c4 |
%exclude %{python3_sitelib}/oslo_concurrency/tests
|
|
|
a8e1444 |
|
|
|
2b9f8ee |
%if 0%{?with_doc}
|
|
|
eb85461 |
%files -n python-%{pkg_name}-doc
|
|
Alan Pevec |
e2afff7 |
%license LICENSE
|
|
|
2b9f8ee |
%doc doc/build/html
|
|
|
2b9f8ee |
%endif
|
|
Alan Pevec |
e2afff7 |
|
|
|
5be41c4 |
%files -n python3-%{pkg_name}-tests
|
|
|
5be41c4 |
%{python3_sitelib}/oslo_concurrency/tests
|
|
Alan Pevec |
13a3f30 |
|
|
|
6719344 |
%files -n python-%{pkg_name}-lang -f oslo_concurrency.lang
|
|
|
eb85461 |
%license LICENSE
|
|
|
0cfbb35 |
|
|
|
eb85461 |
%changelog
|
|
|
f9b45d9 |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-3
|
|
|
f9b45d9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
f9b45d9 |
|
|
|
380ef41 |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-2
|
|
|
380ef41 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
380ef41 |
|
|
|
5f90e39 |
* Thu Oct 26 2023 Alfredo Moralejo <amoralej@gmail.com> 5.2.0-1
|
|
|
5f90e39 |
- Update to upstream version 5.2.0
|
|
|
5f90e39 |
|
|
|
af6c244 |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.1-4
|
|
|
af6c244 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
af6c244 |
|
|
|
c7d4886 |
* Fri Jul 14 2023 Python Maint <python-maint@redhat.com> - 5.1.1-3
|
|
|
c7d4886 |
- Rebuilt for Python 3.12
|
|
|
c7d4886 |
|
|
|
e0cbcb5 |
* Fri Apr 14 2023 Karolina Kula <kkula@redhat.com> 5.1.1-2
|
|
|
e0cbcb5 |
- Update to upstream version 5.1.1
|
|
|
e0cbcb5 |
|
|
|
9a7c935 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.1-2
|
|
|
9a7c935 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
9a7c935 |
|
|
|
bd06971 |
* Thu Nov 17 2022 Alfredo Moralejo <amoralej@redhat.com> 5.0.1-1
|
|
|
bd06971 |
- Update to upstream version 5.0.1
|
|
|
bd06971 |
|
|
|
62f6d0a |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.5.0-3
|
|
|
62f6d0a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
62f6d0a |
|
|
|
cebee8c |
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 4.5.0-2
|
|
|
cebee8c |
- Rebuilt for Python 3.11
|
|
|
cebee8c |
|
|
|
8057cdc |
* Wed May 18 2022 Joel Capitao <jcapitao@redhat.com> 4.5.0-1
|
|
|
8057cdc |
- Update to upstream version 4.5.0
|
|
|
8057cdc |
|
|
|
3bc81bb |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-4
|
|
|
3bc81bb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
3bc81bb |
|
|
|
8e900f7 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-3
|
|
|
8e900f7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
8e900f7 |
|
|
|
7e34877 |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 4.4.0-2
|
|
|
7e34877 |
- Rebuilt for Python 3.10
|
|
|
7e34877 |
|
|
|
c64f353 |
* Tue Mar 16 2021 Joel Capitao <jcapitao@redhat.com> 4.4.0-1
|
|
|
c64f353 |
- Update to upstream version 4.4.0
|
|
|
c64f353 |
|
|
|
9bd94a9 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0-3
|
|
|
9bd94a9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
9bd94a9 |
|
|
|
05465b4 |
* Wed Oct 21 2020 Joel Capitao <jcapitao@redhat.com> 4.3.0-2
|
|
|
05465b4 |
- Enable sources tarball validation using GPG signature.
|
|
|
05465b4 |
|
|
|
05465b4 |
* Thu Sep 17 2020 RDO <dev@lists.rdoproject.org> 4.3.0-1
|
|
|
05465b4 |
- Update to 4.3.0
|
|
|
05465b4 |
|
|
|
bdc5db3 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.2-2
|
|
|
bdc5db3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
bdc5db3 |
|
|
|
5be41c4 |
* Wed Jun 03 2020 Joel Capitao <jcapitao@redhat.com> 4.0.2-1
|
|
|
5be41c4 |
- Update to upstream version 4.0.2
|
|
|
5be41c4 |
|
|
|
3467099 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.30.0-4
|
|
|
3467099 |
- Rebuilt for Python 3.9
|
|
|
3467099 |
|
|
|
d4cfa2e |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.30.0-3
|
|
|
d4cfa2e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
d4cfa2e |
|
|
|
6719344 |
* Wed Nov 06 2019 Alfredo Moralejo <amoralej@redhat.com> 3.30.0-2
|
|
|
6719344 |
- Update to upstream version 3.30.0
|
|
|
6719344 |
|
|
|
6b350ad |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.29.1-4
|
|
|
6b350ad |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
6b350ad |
|
|
|
509c6f0 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.29.1-3
|
|
|
509c6f0 |
- Rebuilt for Python 3.8
|
|
|
509c6f0 |
|
|
|
c93663b |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.29.1-2
|
|
|
c93663b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
c93663b |
|
|
|
830c76e |
* Fri Mar 08 2019 RDO <dev@lists.rdoproject.org> 3.29.1-1
|
|
|
830c76e |
- Update to 3.29.1
|
|
|
53f6d59 |
|