Nick Bebout a57819f
# Created by pyp2rpm-3.2.2
Nick Bebout a57819f
%global pypi_name certbot-dns-cloudflare
Nick Bebout a57819f
Nick Bebout a57819f
%if 0%{?rhel} && 0%{?rhel} <= 7
Nick Bebout a57819f
%bcond_with python3
Nick Bebout a57819f
%else
Nick Bebout a57819f
%bcond_without python3
Nick Bebout a57819f
%endif
Nick Bebout a57819f
Nick Bebout a57819f
Name:           python-%{pypi_name}
5a4c440
Version:        0.25.0
0a06912
Release:        1%{?dist}
Nick Bebout a57819f
Summary:        Cloudflare DNS Authenticator plugin for Certbot
Nick Bebout a57819f
Nick Bebout a57819f
License:        ASL 2.0
Nick Bebout a57819f
URL:            https://github.com/certbot/certbot
Nick Bebout a57819f
Source0:        https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Nick Bebout a57819f
BuildArch:      noarch
Nick Bebout eb55439
0a06912
BuildRequires:  python2-certbot >= 0.21.1
Nick Bebout a57819f
BuildRequires:  python2-cloudflare >= 1.5.1
Nick Bebout a57819f
BuildRequires:  python2-devel
Nick Bebout a57819f
BuildRequires:  python2-setuptools
Nick Bebout b1a3225
BuildRequires:  python2-zope-interface
Nick Bebout a57819f
Nick Bebout a57819f
%if %{with python3}
Nick Bebout a57819f
BuildRequires:  python2-sphinx
0a06912
BuildRequires:  python3-certbot >= 0.21.1
Nick Bebout a57819f
BuildRequires:  python3-cloudflare >= 1.5.1
Nick Bebout a57819f
BuildRequires:  python3-devel
Nick Bebout a57819f
BuildRequires:  python3-setuptools
Nick Bebout a57819f
BuildRequires:  python3-zope-interface
Nick Bebout a57819f
BuildRequires:  python3-PyYAML
Nick Bebout a57819f
%endif
Nick Bebout a57819f
Nick Bebout a57819f
%description
Nick Bebout a57819f
Cloudflare DNS Authenticator plugin for Certbot
Nick Bebout a57819f
Nick Bebout a57819f
%package -n     python2-%{pypi_name}
Nick Bebout a57819f
Summary:        %{summary}
Nick Bebout a57819f
%{?python_provide:%python_provide python2-%{pypi_name}}
0a06912
0a06912
Requires:       python2-acme >= 0.21.1
0a06912
Requires:       python2-certbot >= 0.21.1
Nick Bebout b1a3225
Requires:       python2-cloudflare >= 1.5.1
Nick Bebout b1a3225
Requires:       python2-mock
Nick Bebout b1a3225
Requires:       python2-setuptools
Nick Bebout b1a3225
Requires:       python2-zope-interface
Nick Bebout a57819f
Nick Bebout a57819f
%description -n python2-%{pypi_name}
Nick Bebout a57819f
Cloudflare DNS Authenticator plugin for Certbot
Nick Bebout a57819f
Nick Bebout a57819f
%if %{with python3}
Nick Bebout a57819f
%package -n     python3-%{pypi_name}
Nick Bebout a57819f
Summary:        %{summary}
Nick Bebout a57819f
%{?python_provide:%python_provide python3-%{pypi_name}}
0a06912
0a06912
Requires:       python3-acme >= 0.21.1
0a06912
Requires:       python3-certbot >= 0.21.1
Nick Bebout a57819f
Requires:       python3-cloudflare >= 1.5.1
Nick Bebout a57819f
Requires:       python3-mock
Nick Bebout b1a3225
Requires:       python3-setuptools
Nick Bebout a57819f
Requires:       python3-zope-interface
Nick Bebout a57819f
Requires:       python3-setuptools
Nick Bebout a57819f
%description -n python3-%{pypi_name}
Nick Bebout a57819f
Cloudflare DNS Authenticator plugin for Certbot
Nick Bebout a57819f
Nick Bebout a57819f
%package -n python-%{pypi_name}-doc
Nick Bebout a57819f
Summary:        certbot-dns-cloudflare documentation
Nick Bebout a57819f
%description -n python-%{pypi_name}-doc
Nick Bebout a57819f
Documentation for certbot-dns-cloudflare
Nick Bebout a57819f
%endif
Nick Bebout a57819f
Nick Bebout a57819f
%prep
Nick Bebout a57819f
%autosetup -n %{pypi_name}-%{version}
Nick Bebout a57819f
# Remove bundled egg-info
Nick Bebout a57819f
rm -rf %{pypi_name}.egg-info
Nick Bebout a57819f
Nick Bebout a57819f
%build
Nick Bebout a57819f
%py2_build
Nick Bebout a57819f
Nick Bebout a57819f
%if %{with python3}
Nick Bebout a57819f
%py3_build
Nick Bebout a57819f
# generate html docs 
Nick Bebout a57819f
sphinx-build docs html
Nick Bebout a57819f
# remove the sphinx-build leftovers
Nick Bebout a57819f
rm -rf html/.{doctrees,buildinfo}
Nick Bebout a57819f
%endif
Nick Bebout a57819f
Nick Bebout a57819f
%install
Nick Bebout a57819f
# Must do the subpackages' install first because the scripts in /usr/bin are
Nick Bebout a57819f
# overwritten with every setup.py install.
Nick Bebout a57819f
Nick Bebout a57819f
%if %{with python3}
Nick Bebout a57819f
%py3_install
Nick Bebout a57819f
%endif
Nick Bebout a57819f
Nick Bebout a57819f
%py2_install
Nick Bebout a57819f
Nick Bebout a57819f
Nick Bebout a57819f
%check
Nick Bebout a57819f
%{__python2} setup.py test
Nick Bebout eb55439
Nick Bebout eb55439
%if %{with python3}
Nick Bebout a57819f
%{__python3} setup.py test
Nick Bebout a57819f
%endif
Nick Bebout a57819f
Nick Bebout a57819f
%files -n python2-%{pypi_name}
Nick Bebout a57819f
%license LICENSE.txt
Nick Bebout a57819f
%doc README.rst
Nick Bebout a57819f
%{python2_sitelib}/certbot_dns_cloudflare
Nick Bebout a57819f
%{python2_sitelib}/certbot_dns_cloudflare-%{version}-py?.?.egg-info
Nick Bebout a57819f
Nick Bebout a57819f
%if %{with python3}
Nick Bebout a57819f
%files -n python3-%{pypi_name}
Nick Bebout a57819f
%license LICENSE.txt
Nick Bebout a57819f
%doc README.rst
Nick Bebout a57819f
%{python3_sitelib}/certbot_dns_cloudflare
Nick Bebout a57819f
%{python3_sitelib}/certbot_dns_cloudflare-%{version}-py?.?.egg-info
Nick Bebout a57819f
Nick Bebout a57819f
%files -n python-%{pypi_name}-doc
Nick Bebout a57819f
%doc html 
Nick Bebout a57819f
%endif
Nick Bebout a57819f
Nick Bebout a57819f
%changelog
5a4c440
* Thu Jun 07 2018 Eli Young <elyscape@gmail.com> - 0.25.0-1
5a4c440
- Update to 0.25.0 (#1588221)
5a4c440
0c77692
* Wed May 02 2018 Eli Young <elyscape@gmail.com> - 0.24.0-1
0c77692
- Update to 0.24.0 (#1574139)
0c77692
70d8de2
* Thu Apr 05 2018 Eli Young <elyscape@gmail.com> - 0.23.0-1
70d8de2
- Update to 0.23.0 (#1563901)
70d8de2
1de4237
* Tue Mar 20 2018 Eli Young <elyscape@gmail.com> - 0.22.2-1
1de4237
- Update to 0.22.2
1de4237
0a06912
* Sat Mar 10 2018 Eli Young <elyscape@gmail.com> - 0.22.0-1
0a06912
- Update to 0.22.0
0a06912
Nick Bebout b1a3225
* Mon Feb 26 2018 Nick Bebout <nb@usi.edu> - 0.21.1-3
Nick Bebout b1a3225
- Actually fix the setuptools dep
Nick Bebout b1a3225
Nick Bebout eb55439
* Mon Feb 26 2018 Nick Bebout <nb@usi.edu> - 0.21.1-2
Nick Bebout eb55439
- Add patch to remove no longer needed versioned dep in epel7
Nick Bebout eb55439
Nick Bebout a57819f
* Wed Feb 21 2018 Nick Bebout <nb@usi.edu> - 0.21.1-1
Nick Bebout a57819f
- Initial package.