From ecfa22e58481430aed92a2c754f92ddf57a6a0c1 Mon Sep 17 00:00:00 2001 From: Eli Young Date: Apr 04 2018 22:35:22 +0000 Subject: Add cli4 man page --- diff --git a/.gitignore b/.gitignore index 2ca72ad..745c599 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /cloudflare-2.0.4.tar.gz /cloudflare-2.1.0.tar.gz +/2.1.0.tar.gz diff --git a/python-cloudflare.spec b/python-cloudflare.spec index 1e7c606..adf440b 100644 --- a/python-cloudflare.spec +++ b/python-cloudflare.spec @@ -1,4 +1,5 @@ -%global pyname cloudflare +%global pyname python-cloudflare +%global pkgname cloudflare %if 0%{?rhel} && 0%{?rhel} <= 7 %bcond_with python3 @@ -6,14 +7,14 @@ %bcond_without python3 %endif -Name: python-%{pyname} +Name: python-%{pkgname} Version: 2.1.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Python wrapper for the Cloudflare Client API v4 License: MIT -URL: https://pypi.python.org/pypi/cloudflare -Source0: https://files.pythonhosted.org/packages/source/c/%{pyname}/%{pyname}-%{version}.tar.gz +URL: https://pypi.python.org/pypi/%{pkgname} +Source0: https://github.com/cloudflare/%{pyname}/archive/%{version}.tar.gz # TODO: Remove this once jsonlines is packaged Patch0: remove-jsonlines.patch @@ -44,7 +45,7 @@ BuildRequires: sed %description Python wrapper library for the Cloudflare Client API v4. -%package -n python2-%{pyname} +%package -n python2-%{pkgname} Requires: python2-future Requires: python2-requests @@ -55,23 +56,23 @@ Requires: PyYAML %endif Summary: %{summary} -%{?python_provide:%python_provide python2-%{pyname}} +%{?python_provide:%python_provide python2-%{pkgname}} -%description -n python2-%{pyname} +%description -n python2-%{pkgname} Python wrapper library for the Cloudflare Client API v4. This is the Python 2 version of the package. %if %{with python3} -%package -n python3-%{pyname} +%package -n python3-%{pkgname} Requires: python3-future Requires: python3-PyYAML Requires: python3-requests Summary: %{summary} -%{?python_provide:%python_provide python3-%{pyname}} +%{?python_provide:%python_provide python3-%{pkgname}} -%description -n python3-%{pyname} +%description -n python3-%{pkgname} Python wrapper library for the Cloudflare Client API v4. This is the Python 3 version of the package. @@ -106,27 +107,34 @@ rm -rf %{buildroot}%{python3_sitelib}/examples sed -i '/^examples/d' %{buildroot}%{python3_sitelib}/cloudflare-%{version}*.egg-info/{SOURCES,top_level}.txt %endif -%files -n python2-%{pyname} +install -pD cli4/cli4.man %{buildroot}%{_mandir}/man1/cli4.1 + +%files -n python2-%{pkgname} %license LICENSE %doc README.rst %if ! %{with python3} %{_bindir}/cli4 +%doc %{_mandir}/man1/cli4.1* %endif %{python2_sitelib}/cli4 %{python2_sitelib}/CloudFlare %{python2_sitelib}/cloudflare-%{version}*.egg-info %if %{with python3} -%files -n python3-%{pyname} +%files -n python3-%{pkgname} %license LICENSE %doc README.rst %{_bindir}/cli4 +%doc %{_mandir}/man1/cli4.1* %{python3_sitelib}/cli4 %{python3_sitelib}/CloudFlare %{python3_sitelib}/cloudflare-%{version}*.egg-info %endif %changelog +* Wed Apr 04 2018 Eli Young - 2.1.0-4 +- Add cli4 man page + * Wed Apr 04 2018 Eli Young - 2.1.0-3 - Remove example scripts from egg info - Remove unnecessary shebangs diff --git a/sources b/sources index cca2069..e686933 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (cloudflare-2.1.0.tar.gz) = 80ecd7da82398bd3dc4533f0ff1b36d899f7d75a68c56dbd036ada99909791a7dbd77b92d0682745d7c5dd2593ec79ad62876d38bd08012d02955d20e0fa6ccf +SHA512 (2.1.0.tar.gz) = e9e55a0fa4debde3a050bc6b1c8dfe4721021e5467dfc0a3f7c3c20d5f97ac713cfbef0626ed747eeb30947c74c881cc34e7fac5257e5b874fb9eaf6af56c568