|
|
ecfa22e |
%global pyname python-cloudflare
|
|
|
391b8d5 |
%global pypi_name cloudflare
|
|
|
1f94776 |
|
|
|
391b8d5 |
Name: python-%{pypi_name}
|
|
|
e50c4df |
Version: 2.8.15
|
|
|
2fdbea1 |
Release: 1%{?dist}
|
|
|
1f94776 |
Summary: Python wrapper for the Cloudflare Client API v4
|
|
|
1f94776 |
|
|
|
1f94776 |
License: MIT
|
|
|
391b8d5 |
URL: https://pypi.python.org/pypi/%{pypi_name}
|
|
|
391b8d5 |
Source0: %{pypi_source}
|
|
|
391b8d5 |
Source1: %{pypi_source}.asc
|
|
|
cf452ac |
# upstream confirmed release signing key via github:
|
|
|
cf452ac |
# https://github.com/cloudflare/python-cloudflare/issues/93
|
|
|
cf452ac |
# gpg2 --recv-keys "D093 0FD2 2220 3ABF 557C A485 6112 9109 56F6 F8B8"
|
|
|
cf452ac |
# gpg2 --export --export-options export-minimal "D093 0FD2 2220 3ABF 557C A485 6112 9109 56F6 F8B8" > gpgkey-D093_0FD2_2220_3ABF_557C__A485_6112_9109_56F6_F8B8.gpg
|
|
|
cf452ac |
Source2: gpgkey-D093_0FD2_2220_3ABF_557C__A485_6112_9109_56F6_F8B8.gpg
|
|
|
1f94776 |
|
|
|
edbe972 |
# TODO: Remove this once jsonlines is packaged
|
|
|
edbe972 |
Patch0: remove-jsonlines.patch
|
|
|
c53affe |
Patch1: remove-shebangs.patch
|
|
|
53d162e |
Patch2: remove-examples.patch
|
|
|
edbe972 |
|
|
|
1f94776 |
BuildArch: noarch
|
|
|
1f94776 |
|
|
|
1f94776 |
BuildRequires: python3-devel
|
|
|
1f94776 |
BuildRequires: python3-PyYAML
|
|
|
35e621d |
# version restriction in requirements.txt (see upstream commit fd6464e1)
|
|
|
35e621d |
BuildRequires: python3-requests >= 2.4.2
|
|
|
1f94776 |
BuildRequires: python3-setuptools
|
|
|
1f94776 |
|
|
|
391b8d5 |
# Used to verify OpenPGP signature
|
|
|
391b8d5 |
BuildRequires: gnupg2
|
|
|
0400909 |
BuildRequires: sed
|
|
|
0400909 |
|
|
|
1f94776 |
%description
|
|
|
1f94776 |
Python wrapper library for the Cloudflare Client API v4.
|
|
|
1f94776 |
|
|
|
391b8d5 |
%package -n python3-%{pypi_name}
|
|
|
35e621d |
Requires: python3-beautifulsoup4
|
|
|
050715a |
Requires: python3-PyYAML
|
|
|
35e621d |
Requires: python3-requests >= 2.4.2
|
|
|
1f94776 |
|
|
|
1f94776 |
Summary: %{summary}
|
|
|
391b8d5 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
1f94776 |
|
|
|
391b8d5 |
%description -n python3-%{pypi_name}
|
|
|
1f94776 |
Python wrapper library for the Cloudflare Client API v4.
|
|
|
1f94776 |
|
|
|
1f94776 |
This is the Python 3 version of the package.
|
|
|
1f94776 |
|
|
|
1f94776 |
%prep
|
|
|
391b8d5 |
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
|
|
391b8d5 |
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
|
3560433 |
rm -rf *.egg-info
|
|
|
ff873b6 |
# Remove shebangs
|
|
|
ff873b6 |
sed -i -e '1!b' -e '\~^#!/usr/bin/env python~d' cli4/*.py
|
|
|
1f94776 |
|
|
|
1f94776 |
%build
|
|
|
1f94776 |
%py3_build
|
|
|
1f94776 |
|
|
|
1f94776 |
%install
|
|
|
0400909 |
# Remove examples
|
|
|
53d162e |
rm -rf build/lib/examples
|
|
|
1f94776 |
%py3_install
|
|
|
1f94776 |
|
|
|
cf452ac |
# setuptools installs the man page into /usr/man/ instead of /usr/share/man/
|
|
|
cf452ac |
mkdir --parents %{buildroot}%{_mandir}/man1/
|
|
|
cf452ac |
mv %{buildroot}%{_prefix}/man/man1/cli4* %{buildroot}%{_mandir}/man1/cli4.1
|
|
|
ecfa22e |
|
|
|
391b8d5 |
%files -n python3-%{pypi_name}
|
|
|
1f94776 |
%license LICENSE
|
|
|
1f94776 |
%doc README.rst
|
|
|
1f94776 |
%{_bindir}/cli4
|
|
|
c6798d7 |
%doc %attr(0644,root,root) %{_mandir}/man1/cli4.1*
|
|
|
1f94776 |
%{python3_sitelib}/cli4
|
|
|
1f94776 |
%{python3_sitelib}/CloudFlare
|
|
|
1f94776 |
%{python3_sitelib}/cloudflare-%{version}*.egg-info
|
|
|
1f94776 |
|
|
|
1f94776 |
%changelog
|
|
|
e50c4df |
* Tue Jan 5 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 2.8.15-1
|
|
|
e50c4df |
- update to 2.8.15
|
|
|
e50c4df |
|
|
|
2fdbea1 |
* Tue Aug 18 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 2.8.13-1
|
|
|
2fdbea1 |
- update to 2.8.13
|
|
|
2fdbea1 |
|
|
|
e816c9d |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.3-2
|
|
|
e816c9d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
e816c9d |
|
|
|
35e621d |
* Fri Jun 26 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 2.8.3-1
|
|
|
35e621d |
- update to 2.8.3 (#1849241)
|
|
|
35e621d |
|
|
|
7cac721 |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.7.1-2
|
|
|
7cac721 |
- Rebuilt for Python 3.9
|
|
|
7cac721 |
|
|
|
cf452ac |
* Wed May 13 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 2.7.1-1
|
|
|
cf452ac |
- update to 2.7.1
|
|
|
cf452ac |
|
|
|
aedf5ea |
* Wed May 06 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 2.6.5-3
|
|
|
aedf5ea |
- fix man page
|
|
|
aedf5ea |
|
|
|
3cc7e74 |
* Tue Apr 28 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 2.6.5-2
|
|
|
3cc7e74 |
- add missing sources
|
|
|
3cc7e74 |
|
|
|
f0f8441 |
* Tue Apr 28 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 2.6.5-1
|
|
|
f0f8441 |
- update to 2.6.5
|
|
|
f0f8441 |
|
|
|
391b8d5 |
* Tue Apr 28 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 2.6.0-2
|
|
|
391b8d5 |
- enable GPG verification of sources
|
|
|
391b8d5 |
|
|
|
24baad5 |
* Fri Jan 31 2020 Felix Schwarz <felix.schwarz@oss.schwarz.eu> - 2.6.0-1
|
|
|
24baad5 |
- Update to 2.6.0
|
|
|
24baad5 |
|
|
|
a9e39cb |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-6
|
|
|
a9e39cb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
a9e39cb |
|
|
|
28a14c2 |
* Mon Oct 07 2019 Eli Young <elyscape@gmail.com> - 2.3.0-5
|
|
|
28a14c2 |
- Support EPEL8 builds
|
|
|
28a14c2 |
|
|
|
122b719 |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-4
|
|
|
122b719 |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
122b719 |
|
|
|
20c54f8 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-3
|
|
|
20c54f8 |
- Rebuilt for Python 3.8
|
|
|
20c54f8 |
|
|
|
9c7348a |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
|
|
|
9c7348a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
9c7348a |
|
|
|
1d02180 |
* Mon Jul 01 2019 Eli Young <elyscape@gmail.com> - 2.3.0-1
|
|
|
1d02180 |
- Update to 2.3.0 (#1712059)
|
|
|
1d02180 |
|
|
|
504501f |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-12
|
|
|
504501f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
504501f |
|
|
|
1816765 |
* Thu Dec 13 2018 Eli Young <elyscape@gmail.com> - 2.1.0-11
|
|
|
1816765 |
- Remove Python 2 package in Fedora 30+ (#1658535)
|
|
|
1816765 |
|
|
|
12a09ce |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-10
|
|
|
12a09ce |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
12a09ce |
|
|
|
53d162e |
* Fri Jul 06 2018 Eli Young <elyscape@gmail.com> - 2.1.0-9
|
|
|
53d162e |
- Simplify example removal
|
|
|
53d162e |
|
|
|
c53affe |
* Fri Jun 29 2018 Eli Young <elyscape@gmail.com> - 2.1.0-8
|
|
|
c53affe |
- Remove unnecessary shebangs
|
|
|
c53affe |
|
|
|
4d21bb5 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-7
|
|
|
4d21bb5 |
- Rebuilt for Python 3.7
|
|
|
4d21bb5 |
|
|
|
5924d9f |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1.0-6
|
|
|
5924d9f |
- Rebuilt for Python 3.7
|
|
|
5924d9f |
|
|
|
c6798d7 |
* Wed Apr 04 2018 Eli Young <elyscape@gmail.com> - 2.1.0-5
|
|
|
c6798d7 |
- Fix man page permissions
|
|
|
c6798d7 |
|
|
|
ecfa22e |
* Wed Apr 04 2018 Eli Young <elyscape@gmail.com> - 2.1.0-4
|
|
|
ecfa22e |
- Add cli4 man page
|
|
|
ecfa22e |
|
|
|
0400909 |
* Wed Apr 04 2018 Eli Young <elyscape@gmail.com> - 2.1.0-3
|
|
|
0400909 |
- Remove example scripts from egg info
|
|
|
bbe0886 |
- Remove unnecessary shebangs
|
|
|
0400909 |
|
|
|
050715a |
* Wed Apr 04 2018 Eli Young <elyscape@gmail.com> - 2.1.0-2
|
|
|
050715a |
- Fix python3 package dependencies (#1563427)
|
|
|
050715a |
|
|
|
edbe972 |
* Tue Mar 27 2018 Eli Young <elyscape@gmail.com> - 2.1.0-1
|
|
|
edbe972 |
- Update to 2.1.0 (#1560758)
|
|
|
edbe972 |
|
|
Nick Bebout |
1ce4cdc |
* Mon Feb 26 2018 Nick Bebout <nb@usi.edu> - 2.0.4-2
|
|
Nick Bebout |
1ce4cdc |
- Add python2- prefix where available
|
|
Nick Bebout |
1ce4cdc |
|
|
|
1f94776 |
* Fri Feb 16 2018 Eli Young <elyscape@gmail.com> - 2.0.4-1
|
|
|
1f94776 |
- Initial package (#1546297)
|