|
|
af5eaf9 |
%{!?sources_gpg: %{!?dlrn:%global sources_gpg 1} }
|
|
|
1d9f984 |
%global sources_gpg_sign 0x815afec729392386480e076dcc0dfe2d21c023c9
|
|
|
36204b2 |
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
|
|
|
1d9f984 |
# we are excluding some BRs from automatic generator
|
|
|
1d9f984 |
%global excluded_brs doc8 bandit pre-commit hacking flake8-import-order
|
|
|
1d9f984 |
# Exclude sphinx from BRs if docs are disabled
|
|
|
1d9f984 |
%if ! 0%{?with_doc}
|
|
|
1d9f984 |
%global excluded_brs %{excluded_brs} sphinx openstackdocstheme
|
|
|
1d9f984 |
%endif
|
|
|
36204b2 |
|
|
|
d89a064 |
%global with_doc 1
|
|
|
c095252 |
|
|
|
d89a064 |
%global sname swiftclient
|
|
|
c095252 |
|
|
|
ba52448 |
%global common_desc \
|
|
|
ba52448 |
Client library and command line utility for interacting with Openstack \
|
|
|
ba52448 |
Object Storage API.
|
|
|
ba52448 |
|
|
|
f126333 |
Name: python-swiftclient
|
|
|
1d9f984 |
Version: 4.4.0
|
|
|
ebaae0c |
Release: 3%{?dist}
|
|
|
2d2e93c |
Summary: Client Library for OpenStack Object Storage API
|
|
|
1d9f984 |
License: Apache-2.0
|
|
|
c095252 |
URL: http://launchpad.net/python-swiftclient/
|
|
|
af5eaf9 |
Source0: https://tarballs.openstack.org/%{name}/%{name}-%{version}.tar.gz
|
|
|
af5eaf9 |
# Required for tarball sources verification
|
|
|
af5eaf9 |
%if 0%{?sources_gpg} == 1
|
|
|
af5eaf9 |
Source101: https://tarballs.openstack.org/%{name}/%{name}-%{version}.tar.gz.asc
|
|
|
af5eaf9 |
Source102: https://releases.openstack.org/_static/%{sources_gpg_sign}.txt
|
|
|
af5eaf9 |
%endif
|
|
|
f126333 |
|
|
|
2d2e93c |
BuildArch: noarch
|
|
|
c095252 |
|
|
|
af5eaf9 |
# Required for tarball sources verification
|
|
|
af5eaf9 |
%if 0%{?sources_gpg} == 1
|
|
|
af5eaf9 |
BuildRequires: /usr/bin/gpgv2
|
|
|
af5eaf9 |
%endif
|
|
|
af5eaf9 |
|
|
|
7d3d8dd |
BuildRequires: git-core
|
|
|
af5eaf9 |
|
|
|
c095252 |
%description
|
|
|
ba52448 |
%{common_desc}
|
|
|
c095252 |
|
|
|
b57b7ab |
%package -n python3-%{sname}
|
|
|
c095252 |
Summary: Client Library for OpenStack Object Storage API
|
|
|
1d9f984 |
Requires: python3-%{sname}+keystone = %{version}-%{release}
|
|
|
d89a064 |
|
|
|
b57b7ab |
BuildRequires: python3-devel
|
|
|
1d9f984 |
BuildRequires: pyproject-rpm-macros
|
|
|
d89a064 |
|
|
|
b57b7ab |
%description -n python3-%{sname}
|
|
|
ba52448 |
%{common_desc}
|
|
|
c095252 |
|
|
|
d89a064 |
%if 0%{?with_doc}
|
|
|
f126333 |
%package doc
|
|
|
2d2e93c |
Summary: Documentation for OpenStack Object Storage API Client
|
|
|
d89a064 |
Group: Documentation
|
|
|
f126333 |
|
|
|
f126333 |
%description doc
|
|
|
f126333 |
Documentation for the client library for interacting with Openstack
|
|
|
2d2e93c |
Object Storage API.
|
|
|
d89a064 |
%endif
|
|
|
f126333 |
|
|
|
f126333 |
%prep
|
|
|
af5eaf9 |
# Required for tarball sources verification
|
|
|
af5eaf9 |
%if 0%{?sources_gpg} == 1
|
|
|
af5eaf9 |
%{gpgverify} --keyring=%{SOURCE102} --signature=%{SOURCE101} --data=%{SOURCE0}
|
|
|
af5eaf9 |
%endif
|
|
|
af5eaf9 |
%autosetup -n %{name}-%{upstream_version} -S git
|
|
Jakub Ruzicka |
702870d |
|
|
|
1d9f984 |
sed -i /^[[:space:]]*-c{env:.*_CONSTRAINTS_FILE.*/d tox.ini
|
|
|
1d9f984 |
sed -i "s/^deps = -c{env:.*_CONSTRAINTS_FILE.*/deps =/" tox.ini
|
|
|
1d9f984 |
sed -i /^minversion.*/d tox.ini
|
|
|
1d9f984 |
sed -i /^requires.*virtualenv.*/d tox.ini
|
|
|
1d9f984 |
sed -i /.*keystone]/d tox.ini
|
|
|
1d9f984 |
|
|
|
1d9f984 |
# Exclude some bad-known BRs
|
|
|
1d9f984 |
for pkg in %{excluded_brs}; do
|
|
|
1d9f984 |
for reqfile in doc/requirements.txt test-requirements.txt; do
|
|
|
1d9f984 |
if [ -f $reqfile ]; then
|
|
|
1d9f984 |
sed -i /^${pkg}.*/d $reqfile
|
|
|
1d9f984 |
fi
|
|
|
1d9f984 |
done
|
|
|
1d9f984 |
done
|
|
|
1d9f984 |
|
|
|
1d9f984 |
# Automatic BR generation
|
|
|
1d9f984 |
%generate_buildrequires
|
|
|
1d9f984 |
%if 0%{?with_doc}
|
|
|
1d9f984 |
%pyproject_buildrequires -t -e %{default_toxenv},docs
|
|
|
1d9f984 |
%else
|
|
|
1d9f984 |
%pyproject_buildrequires -t -e %{default_toxenv}
|
|
|
1d9f984 |
%endif
|
|
Jakub Ruzicka |
702870d |
|
|
|
f126333 |
%build
|
|
|
1d9f984 |
%pyproject_wheel
|
|
|
f126333 |
|
|
|
f126333 |
%install
|
|
|
1d9f984 |
%pyproject_install
|
|
|
d89a064 |
# Create a versioned binary for backwards compatibility until everything is pure py3
|
|
|
b57b7ab |
ln -s swift %{buildroot}%{_bindir}/swift-3
|
|
|
c095252 |
|
|
|
c095252 |
# Delete tests
|
|
|
b57b7ab |
rm -fr %{buildroot}%{python3_sitelib}/swiftclient/tests
|
|
|
c095252 |
|
|
|
d89a064 |
%if 0%{?with_doc}
|
|
|
1d9f984 |
export LANG=en_US.utf-8
|
|
|
1d9f984 |
export LC_ALL=C
|
|
|
1d9f984 |
export LANGUAGE=en_US:en
|
|
|
1d9f984 |
%tox -e docs
|
|
|
af5eaf9 |
rm -rf doc/build/html/.{doctrees,buildinfo}
|
|
|
f126333 |
|
|
|
af5eaf9 |
sphinx-build -W -b man doc/source doc/build/man
|
|
|
af5eaf9 |
install -p -D -m 644 doc/build/man/*.1 %{buildroot}%{_mandir}/man1/
|
|
|
d89a064 |
%endif
|
|
Jakub Ruzicka |
74b6ff3 |
|
|
|
1d9f984 |
%pyproject_extras_subpkg -n python3-%{sname} keystone
|
|
|
1d9f984 |
|
|
|
b57b7ab |
%files -n python3-%{sname}
|
|
|
c095252 |
%doc README.rst
|
|
|
d89a064 |
%license LICENSE
|
|
|
b57b7ab |
%{python3_sitelib}/swiftclient
|
|
|
1d9f984 |
%{python3_sitelib}/*.dist-info
|
|
|
6f9a6a4 |
%{_bindir}/swift
|
|
|
b57b7ab |
%{_bindir}/swift-3
|
|
|
6f9a6a4 |
%{_mandir}/man1/*
|
|
|
f126333 |
|
|
|
d89a064 |
%if 0%{?with_doc}
|
|
|
f126333 |
%files doc
|
|
|
af5eaf9 |
%doc doc/build/html
|
|
|
c095252 |
%license LICENSE
|
|
|
d89a064 |
%endif
|
|
|
f126333 |
%changelog
|
|
|
ebaae0c |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-3
|
|
|
ebaae0c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
ebaae0c |
|
|
|
15f0235 |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-2
|
|
|
15f0235 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
15f0235 |
|
|
|
1d9f984 |
* Wed Oct 25 2023 Alfredo Moralejo <amoralej@gmail.com> 4.4.0-1
|
|
|
1d9f984 |
- Update to upstream version 4.4.0
|
|
|
1d9f984 |
|
|
|
b878b59 |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-3
|
|
|
b878b59 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
b878b59 |
|
|
|
00b5dfe |
* Mon Jul 03 2023 Python Maint <python-maint@redhat.com> - 4.2.0-2
|
|
|
00b5dfe |
- Rebuilt for Python 3.12
|
|
|
00b5dfe |
|
|
|
6444c74 |
* Fri Apr 14 2023 Karolina Kula <kkula@redhat.com> 4.2.0-1
|
|
|
6444c74 |
- Update to upstream version 4.2.0
|
|
|
6444c74 |
|
|
|
e48e21d |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-2
|
|
|
e48e21d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
e48e21d |
|
|
|
7b414e2 |
* Thu Nov 17 2022 Alfredo Moralejo <amoralej@redhat.com> 4.1.0-1
|
|
|
7b414e2 |
- Update to upstream version 4.1.0
|
|
|
7b414e2 |
|
|
|
20a5767 |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.13.1-3
|
|
|
20a5767 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
20a5767 |
|
|
|
98bfd43 |
* Thu Jun 16 2022 Python Maint <python-maint@redhat.com> - 3.13.1-2
|
|
|
98bfd43 |
- Rebuilt for Python 3.11
|
|
|
98bfd43 |
|
|
|
c1e3ced |
* Wed May 18 2022 Joel Capitao <jcapitao@redhat.com> 3.13.1-1
|
|
|
c1e3ced |
- Update to upstream version 3.13.1
|
|
|
c1e3ced |
|
|
|
ea2a5e4 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.11.1-4
|
|
|
ea2a5e4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
ea2a5e4 |
|
|
|
305f152 |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.11.1-3
|
|
|
305f152 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
305f152 |
|
|
|
d7486eb |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.11.1-2
|
|
|
d7486eb |
- Rebuilt for Python 3.10
|
|
|
d7486eb |
|
|
|
7d3d8dd |
* Tue Mar 16 2021 Joel Capitao <jcapitao@redhat.com> 3.11.1-1
|
|
|
7d3d8dd |
- Update to upstream version 3.11.1
|
|
|
7d3d8dd |
|
|
|
56dcacc |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.1-3
|
|
|
56dcacc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
56dcacc |
|
|
|
af5eaf9 |
* Wed Oct 28 2020 Alfredo Moralejo <amoralej@redhat.com> 3.10.1-2
|
|
|
af5eaf9 |
- Update to upstream version 3.10.1
|
|
|
af5eaf9 |
|
|
Pete Zaitcev |
3c91766 |
* Thu Sep 17 2020 Pete Zaitcev <zaitcev@redhat.com> - 3.10.1-1
|
|
Pete Zaitcev |
3c91766 |
- Update to upstream version 3.10.1, fixes bz#1876999
|
|
Pete Zaitcev |
3c91766 |
|
|
|
026b52f |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.0-2
|
|
|
026b52f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
026b52f |
|
|
|
b57b7ab |
* Wed Jun 03 2020 Joel Capitao <jcapitao@redhat.com> 3.9.0-1
|
|
|
b57b7ab |
- Update to upstream version 3.9.0
|
|
|
b57b7ab |
|
|
|
472197d |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.8.1-3
|
|
|
472197d |
- Rebuilt for Python 3.9
|
|
|
472197d |
|
|
|
e758d3c |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.1-2
|
|
|
e758d3c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
e758d3c |
|
|
|
06ff60b |
* Tue Nov 05 2019 Alfredo Moralejo <amoralej@redhat.com> 3.8.1-1
|
|
|
06ff60b |
- Update to upstream version 3.8.1
|
|
|
06ff60b |
|
|
|
a86c964 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.0-4
|
|
|
a86c964 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
a86c964 |
|
|
|
35f5d9f |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.7.0-3
|
|
|
35f5d9f |
- Rebuilt for Python 3.8
|
|
|
35f5d9f |
|
|
|
fd104d7 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.0-2
|
|
|
fd104d7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
fd104d7 |
|
|
|
d89a064 |
* Mon Mar 11 2019 RDO <dev@lists.rdoproject.org> 3.7.0-1
|
|
|
d89a064 |
- Update to 3.7.0
|
|
|
4d91028 |
|