15
0

Accepting request 809581 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/809581
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cloudflare?expand=0&rev=9
This commit is contained in:
Tomáš Chvátal
2020-05-28 07:34:59 +00:00
committed by Git OBS Bridge
parent da75f7a44c
commit 35a26744b1
2 changed files with 15 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 27 09:36:45 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Fri Mar 20 01:13:51 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -36,6 +36,8 @@ Requires: python-PyYAML
Requires: python-future
Requires: python-jsonlines
Requires: python-requests
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
@@ -50,14 +52,21 @@ Python wrapper for the Cloudflare Client API v4.
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/cli4
# remove examples from sitelib
%python_expand rm -rf %{buildroot}%{$python_sitelib}/examples
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative cli4
%postun
%python_uninstall_alternative cli4
%files %{python_files}
%doc README.rst
%license LICENSE
%python3_only %{_bindir}/cli4
%python_alternative %{_bindir}/cli4
%{python_sitelib}/*
%changelog