15
0
Files
python-cloudflare/python-cloudflare.spec

83 lines
2.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-cloudflare
#
- update to 2.8.15: * added cursor example * zones/rulesets added * Removing excess trailing parenthesis * first pass at adding travis CI * zones/waiting_rooms, accounts/diagnostics, and more * configparser added it haste, but not needed - oops! * /zones/:id/access/... * configparser missing - oops! * cleaner and easier way to find missing api calls - this changes --dump/--api for the better * /zones/:id/access/apps/policies - fixed along with a bunch more similar typos * added more profile info * revoke-tokens -> revoke_tokens * updated and included AMP RealURL/Signed Exchange API * now with curl style debug - i.e. matches api information page * now with curl style debug - i.e. matches api information page * now with access_requests as underscore * make sure verbose, etc is always used * dashes vs underscores - finally tamed! * /zones/:id/access/apps/:id/revoke-tokens - added * improve deprecated code - add dates, check expire, improve parse of api webpage * added support for dashes/underscores in commands and python calls - kinda overdue * cleanup of logic around uuid match. added support for dashes/underscores in commands * /zones/:id/access/apps/revoke-tokens - removed as depricated * removed deprecated /organizations and /user/virtual_dns api * Added base_url to config and env variables * accounts/:id/rules/lists/bulk_operations/:operation_id - syntax fixed * Added working GraphQL examples * improved debug for jSON based data/params * rules,access/logs,access/apps,etc added OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cloudflare?expand=0&rev=15
2022-01-23 16:45:58 +00:00
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-cloudflare
- update to 2.8.15: * added cursor example * zones/rulesets added * Removing excess trailing parenthesis * first pass at adding travis CI * zones/waiting_rooms, accounts/diagnostics, and more * configparser added it haste, but not needed - oops! * /zones/:id/access/... * configparser missing - oops! * cleaner and easier way to find missing api calls - this changes --dump/--api for the better * /zones/:id/access/apps/policies - fixed along with a bunch more similar typos * added more profile info * revoke-tokens -> revoke_tokens * updated and included AMP RealURL/Signed Exchange API * now with curl style debug - i.e. matches api information page * now with curl style debug - i.e. matches api information page * now with access_requests as underscore * make sure verbose, etc is always used * dashes vs underscores - finally tamed! * /zones/:id/access/apps/:id/revoke-tokens - added * improve deprecated code - add dates, check expire, improve parse of api webpage * added support for dashes/underscores in commands and python calls - kinda overdue * cleanup of logic around uuid match. added support for dashes/underscores in commands * /zones/:id/access/apps/revoke-tokens - removed as depricated * removed deprecated /organizations and /user/virtual_dns api * Added base_url to config and env variables * accounts/:id/rules/lists/bulk_operations/:operation_id - syntax fixed * Added working GraphQL examples * improved debug for jSON based data/params * rules,access/logs,access/apps,etc added OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cloudflare?expand=0&rev=15
2022-01-23 16:45:58 +00:00
Version: 2.8.15
Release: 0
Summary: Python wrapper for the Cloudflare v4 API
License: MIT
Group: Development/Languages/Python
URL: https://github.com/cloudflare/python-cloudflare
Source: https://files.pythonhosted.org/packages/source/c/cloudflare/cloudflare-%{version}.tar.gz
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module beautifulsoup4}
BuildRequires: %{python_module future}
BuildRequires: %{python_module jsonlines}
BuildRequires: %{python_module requests >= 2.4.2}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyYAML
Requires: python-beautifulsoup4
Requires: python-future
Requires: python-jsonlines
Requires: python-requests >= 2.4.2
Requires(post): update-alternatives
- update to 2.8.15: * added cursor example * zones/rulesets added * Removing excess trailing parenthesis * first pass at adding travis CI * zones/waiting_rooms, accounts/diagnostics, and more * configparser added it haste, but not needed - oops! * /zones/:id/access/... * configparser missing - oops! * cleaner and easier way to find missing api calls - this changes --dump/--api for the better * /zones/:id/access/apps/policies - fixed along with a bunch more similar typos * added more profile info * revoke-tokens -> revoke_tokens * updated and included AMP RealURL/Signed Exchange API * now with curl style debug - i.e. matches api information page * now with curl style debug - i.e. matches api information page * now with access_requests as underscore * make sure verbose, etc is always used * dashes vs underscores - finally tamed! * /zones/:id/access/apps/:id/revoke-tokens - added * improve deprecated code - add dates, check expire, improve parse of api webpage * added support for dashes/underscores in commands and python calls - kinda overdue * cleanup of logic around uuid match. added support for dashes/underscores in commands * /zones/:id/access/apps/revoke-tokens - removed as depricated * removed deprecated /organizations and /user/virtual_dns api * Added base_url to config and env variables * accounts/:id/rules/lists/bulk_operations/:operation_id - syntax fixed * Added working GraphQL examples * improved debug for jSON based data/params * rules,access/logs,access/apps,etc added OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cloudflare?expand=0&rev=15
2022-01-23 16:45:58 +00:00
Requires(postun):update-alternatives
BuildArch: noarch
%python_subpackages
%description
Python wrapper for the Cloudflare Client API v4.
%prep
%setup -q -n cloudflare-%{version}
%build
%python_build
%install
%python_install
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}/usr/man/man1/cli4.man %{buildroot}%{_mandir}/man1/cli4.1
rm -rf %{buildroot}/usr/man
%python_clone -a %{buildroot}%{_bindir}/cli4
%python_clone -a %{buildroot}%{_mandir}/man1/cli4.1
# remove examples from sitelib
%python_expand rm -rf %{buildroot}%{$python_sitelib}/examples
%python_expand %fdupes %{buildroot}%{$python_sitelib}
#%%check
# there is one test, but even upstream does not launch it
%post
%python_install_alternative cli4 cli4.1
%postun
%python_uninstall_alternative cli4 cli4.1
%files %{python_files}
%doc README.rst
%license LICENSE
%python_alternative %{_bindir}/cli4
%python_alternative %{_mandir}/man1/cli4.1%{?ext_man}
%{python_sitelib}/*
%changelog