Nick Bebout b1df34d
%global pypi_name certbot-dns-cloudxns
Nick Bebout b1df34d
Nick Bebout b1df34d
%if 0%{?rhel} && 0%{?rhel} <= 7
Nick Bebout b1df34d
%bcond_with python3
Nick Bebout b1df34d
%else
Nick Bebout b1df34d
%bcond_without python3
Nick Bebout b1df34d
%endif
Nick Bebout b1df34d
6758979
%if 0%{?fedora} || (0%{?rhel} && 0%{?rhel} >= 8)
c453bf0
%bcond_with python2
c453bf0
%else
c453bf0
%bcond_without python2
c453bf0
%endif
c453bf0
Nick Bebout b1df34d
Name:           python-%{pypi_name}
3908dc0
Version:        1.11.0
8baa038
Release:        1%{?dist}
Nick Bebout b1df34d
Summary:        CloudXNS DNS Authenticator plugin for Certbot
Nick Bebout b1df34d
Nick Bebout b1df34d
License:        ASL 2.0
Nick Bebout b1df34d
URL:            https://github.com/certbot/certbot
3aa977f
Source0:        %{pypi_source}
3aa977f
Source1:        %{pypi_source}.asc
3aa977f
# Key mentioned in https://certbot.eff.org/docs/install.html#certbot-auto
3aa977f
# Keyring generation steps as follows:
3aa977f
#   gpg2 --keyserver pool.sks-keyservers.net --recv-key A2CFB51FA275A7286234E7B24D17C995CD9775F2
3aa977f
#   gpg2 --export --export-options export-minimal A2CFB51FA275A7286234E7B24D17C995CD9775F2 > gpg-A2CFB51FA275A7286234E7B24D17C995CD9775F2.gpg
3aa977f
Source2:        gpg-A2CFB51FA275A7286234E7B24D17C995CD9775F2.gpg
3aa977f
Nick Bebout b1df34d
BuildArch:      noarch
Nick Bebout cd2e810
c453bf0
%if %{with python2}
ff9c73b
BuildRequires:  python2-acme >= 0.31.0
2ab0307
BuildRequires:  python2-certbot >= 1.1.0
Nick Bebout b1df34d
BuildRequires:  python2-devel
50d8e9b
BuildRequires:  python2-dns-lexicon >= 2.2.1
Nick Bebout b1df34d
BuildRequires:  python2-setuptools
Nick Bebout 6334077
BuildRequires:  python2-zope-interface
1ab6cca
1ab6cca
%if 0%{?rhel} && 0%{?rhel} <= 7
1ab6cca
# EL7 has unversioned names for these packages
1ab6cca
BuildRequires:  pytest
1ab6cca
%else
1ab6cca
BuildRequires:  python2-pytest
1ab6cca
%endif
c453bf0
%endif
Nick Bebout b1df34d
Nick Bebout b1df34d
%if %{with python3}
c453bf0
BuildRequires:  python3-sphinx
52df42b
BuildRequires:  python3-sphinx_rtd_theme
ff9c73b
BuildRequires:  python3-acme >= 0.31.0
2ab0307
BuildRequires:  python3-certbot >= 1.1.0
Nick Bebout b1df34d
BuildRequires:  python3-devel
50d8e9b
BuildRequires:  python3-dns-lexicon >= 2.2.1
1ab6cca
BuildRequires:  python3-pytest
Nick Bebout b1df34d
BuildRequires:  python3-setuptools
2ab0307
BuildRequires:  python3-zope-interface
Nick Bebout b1df34d
%endif
Nick Bebout b1df34d
3aa977f
# Used to verify OpenPGP signature
3aa977f
BuildRequires:  gnupg2
3aa977f
Nick Bebout b1df34d
%description
Nick Bebout b1df34d
CloudXNS DNS Authenticator plugin for Certbot
Nick Bebout b1df34d
c453bf0
%if %{with python2}
Nick Bebout b1df34d
%package -n     python2-%{pypi_name}
Nick Bebout b1df34d
Summary:        %{summary}
Nick Bebout b1df34d
%{?python_provide:%python_provide python2-%{pypi_name}}
84f0fb8
ff9c73b
Requires:       python2-acme >= 0.31.0
2ab0307
Requires:       python2-certbot >= 1.1.0
50d8e9b
Requires:       python2-dns-lexicon >= 2.2.1
Nick Bebout 6334077
Requires:       python2-mock
Nick Bebout 6334077
Requires:       python2-setuptools
Nick Bebout 6334077
Requires:       python2-zope-interface
Nick Bebout b1df34d
a32ded1
# Provide the name users expect as a certbot plugin
a32ded1
%if 0%{?rhel} && 0%{?rhel} <= 7
a32ded1
Provides:      %{pypi_name} = %{version}-%{release}
a32ded1
%endif
a32ded1
Nick Bebout b1df34d
%description -n python2-%{pypi_name}
Nick Bebout b1df34d
CloudXNS DNS Authenticator plugin for Certbot
c453bf0
%endif
Nick Bebout b1df34d
Nick Bebout b1df34d
%if %{with python3}
Nick Bebout b1df34d
%package -n     python3-%{pypi_name}
Nick Bebout b1df34d
Summary:        %{summary}
Nick Bebout b1df34d
%{?python_provide:%python_provide python3-%{pypi_name}}
84f0fb8
ff9c73b
Requires:       python3-acme >= 0.31.0
2ab0307
Requires:       python3-certbot >= 1.1.0
50d8e9b
Requires:       python3-dns-lexicon >= 2.2.1
Nick Bebout b1df34d
Requires:       python3-mock
Nick Bebout b1df34d
Requires:       python3-setuptools
Nick Bebout 6334077
Requires:       python3-zope-interface
Nick Bebout b1df34d
a32ded1
# Provide the name users expect as a certbot plugin
a32ded1
%if 0%{?fedora}
a32ded1
Provides:      %{pypi_name} = %{version}-%{release}
a32ded1
%endif
a32ded1
Nick Bebout b1df34d
%description -n python3-%{pypi_name}
Nick Bebout b1df34d
CloudXNS DNS Authenticator plugin for Certbot
Nick Bebout b1df34d
Nick Bebout b1df34d
%package -n python-%{pypi_name}-doc
Nick Bebout b1df34d
Summary:        certbot-dns-cloudxns documentation
Nick Bebout b1df34d
%description -n python-%{pypi_name}-doc
Nick Bebout b1df34d
Documentation for certbot-dns-cloudxns
Nick Bebout b1df34d
%endif
Nick Bebout b1df34d
Nick Bebout b1df34d
%prep
3aa977f
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
Nick Bebout b1df34d
%autosetup -n %{pypi_name}-%{version}
Nick Bebout b1df34d
# Remove bundled egg-info
Nick Bebout b1df34d
rm -rf %{pypi_name}.egg-info
Nick Bebout b1df34d
Nick Bebout b1df34d
%build
c453bf0
%if %{with python2}
Nick Bebout b1df34d
%py2_build
c453bf0
%endif
Nick Bebout b1df34d
Nick Bebout b1df34d
%if %{with python3}
Nick Bebout b1df34d
%py3_build
Nick Bebout b1df34d
# generate html docs 
c453bf0
sphinx-build-3 docs html
Nick Bebout b1df34d
# remove the sphinx-build leftovers
Nick Bebout b1df34d
rm -rf html/.{doctrees,buildinfo}
Nick Bebout b1df34d
%endif
Nick Bebout b1df34d
Nick Bebout b1df34d
%install
c453bf0
%if %{with python2}
c453bf0
%py2_install
c453bf0
%endif
Nick Bebout b1df34d
Nick Bebout b1df34d
%if %{with python3}
Nick Bebout b1df34d
%py3_install
Nick Bebout b1df34d
%endif
Nick Bebout b1df34d
Nick Bebout b1df34d
Nick Bebout b1df34d
%check
c453bf0
%if %{with python2}
Nick Bebout b24006d
%{__python2} -m pytest
c453bf0
%endif
Nick Bebout cd2e810
Nick Bebout cd2e810
%if %{with python3}
Nick Bebout b24006d
%{__python3} -m pytest
Nick Bebout b1df34d
%endif
Nick Bebout b1df34d
c453bf0
%if %{with python2}
Nick Bebout b1df34d
%files -n python2-%{pypi_name}
Nick Bebout b1df34d
%license LICENSE.txt
Nick Bebout b1df34d
%doc README.rst
Nick Bebout b1df34d
%{python2_sitelib}/certbot_dns_cloudxns
Nick Bebout b1df34d
%{python2_sitelib}/certbot_dns_cloudxns-%{version}-py?.?.egg-info
c453bf0
%endif
Nick Bebout b1df34d
Nick Bebout b1df34d
%if %{with python3}
Nick Bebout b1df34d
%files -n python3-%{pypi_name}
Nick Bebout b1df34d
%license LICENSE.txt
Nick Bebout b1df34d
%doc README.rst
Nick Bebout b1df34d
%{python3_sitelib}/certbot_dns_cloudxns
b3fe001
%{python3_sitelib}/certbot_dns_cloudxns-%{version}-py%{python3_version}.egg-info
Nick Bebout b1df34d
Nick Bebout b1df34d
%files -n python-%{pypi_name}-doc
c453bf0
%doc html
Nick Bebout b1df34d
%endif
Nick Bebout b1df34d
Nick Bebout b1df34d
%changelog
3908dc0
* Tue Jan  5 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 1.11.0-1
3908dc0
- Update to 1.11.0 (#1913022)
3908dc0
1367b58
* Thu Dec  3 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 1.10.1-1
1367b58
- Update to 1.10.1 (#1904188)
1367b58
fe4cfa9
* Thu Dec  3 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 1.10.0-1
fe4cfa9
- Update to 1.10.0 (#1903315)
fe4cfa9
Nick Bebout b24006d
* Thu Oct 08 2020 Nick Bebout <nb@fedoraproject.org> - 1.9.0-1
Nick Bebout b24006d
- Update to 1.9.0
Nick Bebout b24006d
Nick Bebout 751400c
* Tue Oct 06 2020 Nick Bebout <nb@fedoraproject.org> - 1.8.0-1
Nick Bebout 751400c
- Update to 1.8.0
Nick Bebout 751400c
8baa038
* Sun Aug 16 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 1.7.0-1
8baa038
- Update to 1.7.0 (#1866065)
8baa038
85559c8
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-2
85559c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
85559c8
f46c6c5
* Tue Jul 07 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 1.6.0-1
f46c6c5
- Update to 1.6.0 (#1854618)
f46c6c5
72fdfd6
* Sat Jun 06 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 1.5.0-1
72fdfd6
- Update to 1.5.0 (#1843205)
72fdfd6
cba68be
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.4.0-2
cba68be
- Rebuilt for Python 3.9
cba68be
b2f743d
* Sat May 09 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 1.4.0-1
b2f743d
- Update to 1.4.0 (#1831917)
b2f743d
f920fe8
* Thu Mar 05 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 1.3.0-2
f920fe8
- bump release to retry koji build
f920fe8
5ad1cc9
* Wed Mar 04 2020 Felix Schwarz <felix.schwarz@oss.schwarz.eu> - 1.3.0-1
5ad1cc9
- Update to 1.3.0 (#1809790)
5ad1cc9
e7a82a5
* Sat Feb 29 2020 Felix Schwarz <felix.schwarz@oss.schwarz.eu> - 1.2.0-1
e7a82a5
- Update to 1.2.0 (#1791089)
e7a82a5
c1efb24
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
c1efb24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c1efb24
1ab6cca
* Thu Dec 05 2019 Eli Young <elyscape@gmail.com> - 1.0.0-1
1ab6cca
- Update to 1.0.0 (#1769109)
1ab6cca
3aa977f
* Wed Dec 04 2019 Eli Young <elyscape@gmail.com> - 0.39.0-2
3aa977f
- Verify source OpenPGP signature
3aa977f
e48f7cf
* Tue Oct 01 2019 Eli Young <elyscape@gmail.com> - 0.39.0-1
e48f7cf
- Update to 0.39.0 (#1757579)
e48f7cf
cfc1040
* Tue Sep 10 2019 Eli Young <elyscape@gmail.com> - 0.38.0-1
cfc1040
- Update to 0.38.0 (#1748613)
cfc1040
a8252f9
* Mon Aug 26 2019 Eli Young <elyscape@gmail.com> - 0.37.2-1
a8252f9
- Update to 0.37.2 (#1742581)
a8252f9
b3321b0
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.36.0-3
b3321b0
- Rebuilt for Python 3.8
b3321b0
de781c3
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.36.0-2
de781c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
de781c3
467de5b
* Fri Jul 19 2019 Eli Young <elyscape@gmail.com> - 0.36.0-1
467de5b
- Update to 0.36.0
467de5b
8838ebf
* Fri Jun 21 2019 Eli Young <elyscape@gmail.com> - 0.35.1-1
8838ebf
- Update to 0.35.1 (#1717680)
8838ebf
52df42b
* Tue May 28 2019 Eli Young <elyscape@gmail.com> - 0.34.2-1
52df42b
- Update to 0.34.2 (#1686187)
52df42b
ff9c73b
* Fri Feb 08 2019 Eli Young <elyscape@gmail.com> - 0.31.0-1
ff9c73b
- Update to 0.31.0 (#1673772)
ff9c73b
d04d68e
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.30.2-2
d04d68e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d04d68e
bc6a86c
* Mon Jan 28 2019 Eli Young <elyscape@gmail.com> - 0.30.2-1
bc6a86c
- Update to 0.30.2 (#1669316)
bc6a86c
3ecefdb
* Tue Dec 11 2018 Eli Young <elyscape@gmail.com> - 0.29.1-1
3ecefdb
- Update to 0.29.1
c453bf0
- Remove Python 2 package in Fedora 30+ (#1654016)
3ecefdb
ea29332
* Wed Nov 14 2018 Eli Young <elyscape@gmail.com> - 0.28.0-1
ea29332
- Update to 0.28.0
ea29332
9a36cff
* Mon Sep 10 2018 Eli Young <elyscape@gmail.com> - 0.27.1-1
9a36cff
- Update to 0.27.1 (#1627572)
9a36cff
6e5593e
* Tue Jul 17 2018 Eli Young <elyscape@gmail.com> - 0.26.1-1
6e5593e
- Update to 0.26.1 (#1600295)
6e5593e
cd99881
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.25.1-3
cd99881
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
cd99881
458ce98
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.25.1-2
458ce98
- Rebuilt for Python 3.7
458ce98
7f886af
* Wed Jun 13 2018 Eli Young <elyscape@gmail.com> - 0.25.1-1
7f886af
- Update to 0.25.1 (#1591034)
7f886af
04b01ac
* Thu Jun 07 2018 Eli Young <elyscape@gmail.com> - 0.25.0-1
04b01ac
- Update to 0.25.0 (#1588222)
04b01ac
068e7e2
* Wed May 02 2018 Eli Young <elyscape@gmail.com> - 0.24.0-1
068e7e2
- Update to 0.24.0 (#1574142)
068e7e2
50d8e9b
* Thu Apr 05 2018 Eli Young <elyscape@gmail.com> - 0.23.0-1
50d8e9b
- Update to 0.23.0 (#1563902)
50d8e9b
7f00818
* Tue Mar 20 2018 Eli Young <elyscape@gmail.com> - 0.22.2-1
7f00818
- Update to 0.22.2
7f00818
84f0fb8
* Sat Mar 10 2018 Eli Young <elyscape@gmail.com> - 0.22.0-1
84f0fb8
- Update to 0.22.0
84f0fb8
Nick Bebout 6334077
* Mon Feb 26 2018 Nick Bebout <nb@usi.edu> - 0.21.1-3
Nick Bebout 6334077
- Actually fix the setuptools dep
Nick Bebout 6334077
Nick Bebout cd2e810
* Mon Feb 26 2018 Nick Bebout <nb@usi.edu> - 0.21.1-2
Nick Bebout cd2e810
- Add patch to remove no longer needed versioned dep in epel7
Nick Bebout cd2e810
Nick Bebout b1df34d
* Wed Feb 21 2018 Nick Bebout <nb@usi.edu> - 0.21.1-1
Nick Bebout b1df34d
- Initial package.