Nick Bebout 5415abd
%global pypi_name certbot-dns-dnsmadeeasy
Nick Bebout 5415abd
Nick Bebout 5415abd
%if 0%{?rhel} && 0%{?rhel} <= 7
Nick Bebout 5415abd
%bcond_with python3
Nick Bebout 5415abd
%else
Nick Bebout 5415abd
%bcond_without python3
Nick Bebout 5415abd
%endif
Nick Bebout 5415abd
55d7d4d
%if 0%{?fedora} || (0%{?rhel} && 0%{?rhel} >= 8)
120cbab
%bcond_with python2
120cbab
%else
120cbab
%bcond_without python2
120cbab
%endif
120cbab
Nick Bebout 5415abd
Name:           python-%{pypi_name}
04a5f66
Version:        1.3.0
c066938
Release:        2%{?dist}
Nick Bebout 5415abd
Summary:        DNS Made Easy DNS Authenticator plugin for Certbot
Nick Bebout 5415abd
Nick Bebout 5415abd
License:        ASL 2.0
Nick Bebout 5415abd
URL:            https://github.com/certbot/certbot
8790957
Source0:        %{pypi_source}
8790957
Source1:        %{pypi_source}.asc
8790957
# Key mentioned in https://certbot.eff.org/docs/install.html#certbot-auto
8790957
# Keyring generation steps as follows:
8790957
#   gpg2 --keyserver pool.sks-keyservers.net --recv-key A2CFB51FA275A7286234E7B24D17C995CD9775F2
8790957
#   gpg2 --export --export-options export-minimal A2CFB51FA275A7286234E7B24D17C995CD9775F2 > gpg-A2CFB51FA275A7286234E7B24D17C995CD9775F2.gpg
8790957
Source2:        gpg-A2CFB51FA275A7286234E7B24D17C995CD9775F2.gpg
8790957
Nick Bebout 5415abd
BuildArch:      noarch
Nick Bebout 386b4f4
120cbab
%if %{with python2}
22e97e3
BuildRequires:  python2-acme >= 0.31.0
55d7d4d
BuildRequires:  python2-certbot >= 1.1.0
Nick Bebout 5415abd
BuildRequires:  python2-devel
9afd9be
BuildRequires:  python2-dns-lexicon >= 2.2.1
Nick Bebout 5415abd
BuildRequires:  python2-setuptools
Nick Bebout 9241b44
BuildRequires:  python2-zope-interface
6083eb8
6083eb8
%if 0%{?rhel} && 0%{?rhel} <= 7
6083eb8
# EL7 has unversioned names for these packages
6083eb8
BuildRequires:  pytest
6083eb8
%else
6083eb8
BuildRequires:  python2-pytest
6083eb8
%endif
120cbab
%endif
Nick Bebout 5415abd
Nick Bebout 5415abd
%if %{with python3}
120cbab
BuildRequires:  python3-sphinx
1f7c5bd
BuildRequires:  python3-sphinx_rtd_theme
22e97e3
BuildRequires:  python3-acme >= 0.31.0
55d7d4d
BuildRequires:  python3-certbot >= 1.1.0
Nick Bebout 5415abd
BuildRequires:  python3-devel
9afd9be
BuildRequires:  python3-dns-lexicon >= 2.2.1
6083eb8
BuildRequires:  python3-pytest
Nick Bebout 5415abd
BuildRequires:  python3-setuptools
Nick Bebout 5415abd
BuildRequires:  python3-zope-interface
Nick Bebout 5415abd
%endif
Nick Bebout 5415abd
8790957
# Used to verify OpenPGP signature
8790957
BuildRequires:  gnupg2
8790957
Nick Bebout 5415abd
%description
Nick Bebout 5415abd
DNS Made Easy DNS Authenticator plugin for Certbot
Nick Bebout 5415abd
120cbab
%if %{with python2}
Nick Bebout 5415abd
%package -n     python2-%{pypi_name}
Nick Bebout 5415abd
Summary:        %{summary}
Nick Bebout 5415abd
%{?python_provide:%python_provide python2-%{pypi_name}}
ebab5de
22e97e3
Requires:       python2-acme >= 0.31.0
55d7d4d
Requires:       python2-certbot >= 1.1.0
9afd9be
Requires:       python2-dns-lexicon >= 2.2.1
Nick Bebout 5415abd
Requires:       python2-mock
Nick Bebout 5415abd
Requires:       python2-setuptools
Nick Bebout 9241b44
Requires:       python2-zope-interface
Nick Bebout 5415abd
d0b78a9
# Provide the name users expect as a certbot plugin
d0b78a9
%if 0%{?rhel} && 0%{?rhel} <= 7
d0b78a9
Provides:      %{pypi_name} = %{version}-%{release}
d0b78a9
%endif
d0b78a9
Nick Bebout 5415abd
%description -n python2-%{pypi_name}
Nick Bebout 5415abd
DNS Made Easy DNS Authenticator plugin for Certbot
120cbab
%endif
Nick Bebout 5415abd
Nick Bebout 5415abd
%if %{with python3}
Nick Bebout 5415abd
%package -n     python3-%{pypi_name}
Nick Bebout 5415abd
Summary:        %{summary}
Nick Bebout 5415abd
%{?python_provide:%python_provide python3-%{pypi_name}}
ebab5de
22e97e3
Requires:       python3-acme >= 0.31.0
55d7d4d
Requires:       python3-certbot >= 1.1.0
9afd9be
Requires:       python3-dns-lexicon >= 2.2.1
Nick Bebout 5415abd
Requires:       python3-mock
Nick Bebout 5415abd
Requires:       python3-setuptools
Nick Bebout 9241b44
Requires:       python3-zope-interface
Nick Bebout 5415abd
d0b78a9
# Provide the name users expect as a certbot plugin
d0b78a9
%if 0%{?fedora}
d0b78a9
Provides:      %{pypi_name} = %{version}-%{release}
d0b78a9
%endif
d0b78a9
Nick Bebout 5415abd
%description -n python3-%{pypi_name}
Nick Bebout 5415abd
DNS Made Easy DNS Authenticator plugin for Certbot
Nick Bebout 5415abd
Nick Bebout 5415abd
%package -n python-%{pypi_name}-doc
Nick Bebout 5415abd
Summary:        certbot-dns-dnsmadeeasy documentation
Nick Bebout 5415abd
%description -n python-%{pypi_name}-doc
Nick Bebout 5415abd
Documentation for certbot-dns-dnsmadeeasy
Nick Bebout ddd8f5d
%endif
Nick Bebout 5415abd
Nick Bebout 5415abd
%prep
8790957
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
Nick Bebout 5415abd
%autosetup -n %{pypi_name}-%{version}
Nick Bebout 5415abd
# Remove bundled egg-info
Nick Bebout 5415abd
rm -rf %{pypi_name}.egg-info
Nick Bebout 5415abd
Nick Bebout 5415abd
%build
120cbab
%if %{with python2}
Nick Bebout 5415abd
%py2_build
120cbab
%endif
Nick Bebout 5415abd
Nick Bebout 5415abd
%if %{with python3}
Nick Bebout 5415abd
%py3_build
120cbab
# generate html docs
120cbab
sphinx-build-3 docs html
Nick Bebout 5415abd
# remove the sphinx-build leftovers
Nick Bebout 5415abd
rm -rf html/.{doctrees,buildinfo}
Nick Bebout ddd8f5d
%endif
Nick Bebout 5415abd
Nick Bebout 5415abd
%install
120cbab
%if %{with python2}
120cbab
%py2_install
120cbab
%endif
Nick Bebout 5415abd
Nick Bebout 5415abd
%if %{with python3}
Nick Bebout 5415abd
%py3_install
Nick Bebout 5415abd
%endif
Nick Bebout 5415abd
Nick Bebout 5415abd
Nick Bebout 5415abd
%check
120cbab
%if %{with python2}
Nick Bebout ddd8f5d
%{__python2} setup.py test
120cbab
%endif
Nick Bebout 386b4f4
Nick Bebout 386b4f4
%if %{with python3}
Nick Bebout 5415abd
%{__python3} setup.py test
Nick Bebout 5415abd
%endif
Nick Bebout 5415abd
120cbab
%if %{with python2}
Nick Bebout 5415abd
%files -n python2-%{pypi_name}
Nick Bebout 5415abd
%license LICENSE.txt
Nick Bebout 5415abd
%doc README.rst
Nick Bebout 5415abd
%{python2_sitelib}/certbot_dns_dnsmadeeasy
Nick Bebout 5415abd
%{python2_sitelib}/certbot_dns_dnsmadeeasy-%{version}-py?.?.egg-info
120cbab
%endif
Nick Bebout 5415abd
Nick Bebout 5415abd
%if %{with python3}
Nick Bebout 5415abd
%files -n python3-%{pypi_name}
Nick Bebout 5415abd
%license LICENSE.txt
Nick Bebout 5415abd
%doc README.rst
Nick Bebout 5415abd
%{python3_sitelib}/certbot_dns_dnsmadeeasy
Nick Bebout 5415abd
%{python3_sitelib}/certbot_dns_dnsmadeeasy-%{version}-py?.?.egg-info
Nick Bebout 5415abd
Nick Bebout 5415abd
%files -n python-%{pypi_name}-doc
120cbab
%doc html
Nick Bebout ddd8f5d
%endif
Nick Bebout 5415abd
Nick Bebout 5415abd
%changelog
c066938
* Thu Mar 05 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 1.3.0-2
c066938
- bump release to retry koji build
c066938
04a5f66
* Wed Mar 04 2020 Felix Schwarz <felix.schwarz@oss.schwarz.eu> - 1.3.0-1
04a5f66
- Update to 1.3.0 (#1809793)
04a5f66
24d6b8d
* Sat Feb 29 2020 Felix Schwarz <felix.schwarz@oss.schwarz.eu> - 1.2.0-1
24d6b8d
- Update to 1.2.0 (#1791084)
24d6b8d
c0d86c1
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
c0d86c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
c0d86c1
6083eb8
* Thu Dec 05 2019 Eli Young <elyscape@gmail.com> - 1.0.0-1
6083eb8
- Update to 1.0.0 (#1769108)
6083eb8
8790957
* Wed Dec 04 2019 Eli Young <elyscape@gmail.com> - 0.39.0-2
8790957
- Verify source OpenPGP signature
8790957
c20dba8
* Tue Oct 01 2019 Eli Young <elyscape@gmail.com> - 0.39.0-1
c20dba8
- Update to 0.39.0 (#1757581)
c20dba8
e3b3bb8
* Tue Sep 10 2019 Eli Young <elyscape@gmail.com> - 0.38.0-1
e3b3bb8
- Update to 0.38.0 (#1748620)
e3b3bb8
09d0905
* Mon Aug 26 2019 Eli Young <elyscape@gmail.com> - 0.37.2-1
09d0905
- Update to 0.37.2 (#1742582)
09d0905
89b99e6
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.36.0-3
89b99e6
- Rebuilt for Python 3.8
89b99e6
68539ca
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.36.0-2
68539ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
68539ca
099b0f2
* Fri Jul 19 2019 Eli Young <elyscape@gmail.com> - 0.36.0-1
099b0f2
- Update to 0.36.0
099b0f2
ddeeee0
* Fri Jun 21 2019 Eli Young <elyscape@gmail.com> - 0.35.1-1
ddeeee0
- Update to 0.35.1 (#1717683)
ddeeee0
1f7c5bd
* Tue May 28 2019 Eli Young <elyscape@gmail.com> - 0.34.2-1
1f7c5bd
- Update to 0.34.2 (#1686190)
1f7c5bd
22e97e3
* Fri Feb 08 2019 Eli Young <elyscape@gmail.com> - 0.31.0-1
22e97e3
- Update to 0.31.0 (#1673752)
22e97e3
63c1cd1
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.30.2-2
63c1cd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
63c1cd1
fb4b39f
* Mon Jan 28 2019 Eli Young <elyscape@gmail.com> - 0.30.2-1
fb4b39f
- Update to 0.30.2 (#1669319)
fb4b39f
de80dc3
* Tue Dec 11 2018 Eli Young <elyscape@gmail.com> - 0.29.1-1
de80dc3
- Update to 0.29.1
120cbab
- Remove Python 2 package in Fedora 30+ (#1654016)
de80dc3
389728f
* Wed Nov 14 2018 Eli Young <elyscape@gmail.com> - 0.28.0-1
389728f
- Update to 0.28.0
389728f
315cfd9
* Mon Sep 10 2018 Eli Young <elyscape@gmail.com> - 0.27.1-1
315cfd9
- Update to 0.27.1 (#1627575)
315cfd9
2aad9f7
* Tue Jul 17 2018 Eli Young <elyscape@gmail.com> - 0.26.1-1
2aad9f7
- Update to 0.26.1 (#1600298)
2aad9f7
823cd3a
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.25.1-3
823cd3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
823cd3a
bf88637
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.25.1-2
bf88637
- Rebuilt for Python 3.7
bf88637
e46606f
* Wed Jun 13 2018 Eli Young <elyscape@gmail.com> - 0.25.1-1
e46606f
- Update to 0.25.1 (#1591037)
e46606f
274de58
* Thu Jun 07 2018 Eli Young <elyscape@gmail.com> - 0.25.0-1
274de58
- Update to 0.25.0 (#1588225)
274de58
1322a5f
* Wed May 02 2018 Eli Young <elyscape@gmail.com> - 0.24.0-1
1322a5f
- Update to 0.24.0 (#1574144)
1322a5f
9afd9be
* Thu Apr 05 2018 Eli Young <elyscape@gmail.com> - 0.23.0-1
9afd9be
- Update to 0.23.0 (#1563905)
9afd9be
e9792c1
* Tue Mar 20 2018 Eli Young <elyscape@gmail.com> - 0.22.2-1
e9792c1
- Update to 0.22.2
e9792c1
ebab5de
* Sat Mar 10 2018 Eli Young <elyscape@gmail.com> - 0.22.0-1
ebab5de
- Update to 0.22.0
ebab5de
Nick Bebout 9241b44
* Mon Feb 26 2018 Nick Bebout <nb@usi.edu> - 0.21.1-3
Nick Bebout 9241b44
- Actually fix the setuptools dep
Nick Bebout 9241b44
Nick Bebout 9241b44
* Mon Feb 26 2018 Nick Bebout <nb@usi.edu> - 0.21.1-2
Nick Bebout 9fca552
- Add patch to remove no longer needed versioned dep in epel7
Nick Bebout 9fca552
Nick Bebout 9241b44
* Mon Feb 19 2018 Nick Bebout <nb@usi.edu> - 0.21.1-1
Nick Bebout 5415abd
- Initial package.