15af7d4
%global pypi_name certbot-dns-rfc2136
15af7d4
70a7144
%if 0%{?rhel} && 0%{?rhel} <= 7
70a7144
%bcond_with python3
70a7144
%else
70a7144
%bcond_without python3
70a7144
%endif
70a7144
a623246
%if 0%{?fedora} || (0%{?rhel} && 0%{?rhel} >= 8)
b8de537
%bcond_with python2
b8de537
%else
b8de537
%bcond_without python2
b8de537
%endif
b8de537
15af7d4
# This plugin is pinned to the version of certbot it was released to work
15af7d4
# with (per upstream), so we specify a version dependency in both Requires
15af7d4
# and BuildRequires to reflect that.
15af7d4
15af7d4
Name:           python-%{pypi_name}
Nick Bebout 1f99810
Version:        1.9.0
812151e
Release:        1%{?dist}
15af7d4
Summary:        RFC 2136 DNS Authenticator plugin for Certbot
15af7d4
15af7d4
License:        ASL 2.0
15af7d4
URL:            https://github.com/certbot/certbot
ba0d5c2
Source0:        %{pypi_source}
ba0d5c2
Source1:        %{pypi_source}.asc
ba0d5c2
# Key mentioned in https://certbot.eff.org/docs/install.html#certbot-auto
ba0d5c2
# Keyring generation steps as follows:
ba0d5c2
#   gpg2 --keyserver pool.sks-keyservers.net --recv-key A2CFB51FA275A7286234E7B24D17C995CD9775F2
ba0d5c2
#   gpg2 --export --export-options export-minimal A2CFB51FA275A7286234E7B24D17C995CD9775F2 > gpg-A2CFB51FA275A7286234E7B24D17C995CD9775F2.gpg
ba0d5c2
Source2:        gpg-A2CFB51FA275A7286234E7B24D17C995CD9775F2.gpg
ba0d5c2
15af7d4
BuildArch:      noarch
15af7d4
ba0d5c2
# Used to verify OpenPGP signature
ba0d5c2
BuildRequires:  gnupg2
ba0d5c2
b8de537
%if %{with python2}
15af7d4
BuildRequires:  python2-devel
cbadc02
BuildRequires:  python2-setuptools
b8de537
%endif
15af7d4
70a7144
%if %{with python3}
15af7d4
BuildRequires:  python3-devel
15af7d4
BuildRequires:  python3-setuptools
70a7144
%endif
15af7d4
15af7d4
%description
15af7d4
The certbot-dns-rfc2136 plugin automates the process of completing an ACME
15af7d4
dns-01 challenge by creating, and subsequently removing, TXT records using
15af7d4
RFC 2136 Dynamic Updates.
15af7d4
b8de537
%if %{with python2}
15af7d4
%package -n     python2-%{pypi_name}
15af7d4
Summary:        %{summary}
15af7d4
%{?python_provide:%python_provide python2-%{pypi_name}}
15af7d4
15af7d4
# Provide the name users expect as a certbot plugin
b8de537
%if 0%{?rhel} && 0%{?rhel} <= 7
15af7d4
Provides:      %{pypi_name} = %{version}-%{release}
15af7d4
%endif
15af7d4
03acf03
Requires:       python2-acme >= 0.29.0
a623246
Requires:       python2-certbot >= 1.1.0
Nick Bebout 2ebe45f
Requires:       python2-setuptools
Nick Bebout 2ebe45f
Requires:       python2-zope-interface
70a7144
%if 0%{?rhel} && 0%{?rhel} <= 7
70a7144
Requires:       python-dns
70a7144
%else
15af7d4
Requires:       python2-dns
70a7144
%endif
03acf03
BuildRequires:  python2-acme >= 0.29.0
a623246
BuildRequires:  python2-certbot >= 1.1.0
70a7144
%if 0%{?rhel} && 0%{?rhel} <= 7
70a7144
BuildRequires:  python-dns
70a7144
%else
15af7d4
BuildRequires:  python2-dns
70a7144
%endif
15af7d4
BuildRequires:  python2-mock
70a7144
BuildRequires:  python2-setuptools
15af7d4
BuildRequires:  python2-zope-interface
15af7d4
cb0e017
%if 0%{?rhel} && 0%{?rhel} <= 7
cb0e017
# EL7 has unversioned names for these packages
cb0e017
BuildRequires:  pytest
cb0e017
%else
cb0e017
BuildRequires:  python2-pytest
cb0e017
%endif
cb0e017
15af7d4
%description -n python2-%{pypi_name}
15af7d4
The certbot-dns-rfc2136 plugin automates the process of completing an ACME
15af7d4
dns-01 challenge by creating, and subsequently removing, TXT records using
15af7d4
RFC 2136 Dynamic Updates.
15af7d4
15af7d4
This is the Python 2 version of the package.
b8de537
%endif
15af7d4
70a7144
%if %{with python3}
15af7d4
%package -n     python3-%{pypi_name}
15af7d4
Summary:        %{summary}
15af7d4
%{?python_provide:%python_provide python3-%{pypi_name}}
15af7d4
15af7d4
# Provide the name users expect as a certbot plugin
b8de537
%if 0%{?fedora}
15af7d4
Provides:      %{pypi_name} = %{version}-%{release}
15af7d4
%endif
15af7d4
03acf03
Requires:       python3-acme >= 0.29.0
a623246
Requires:       python3-certbot >= 1.1.0
15af7d4
Requires:       python3-dns
Nick Bebout d39c538
Requires:       python3-setuptools
15af7d4
Requires:       python3-zope-interface
03acf03
BuildRequires:  python3-acme >= 0.29.0
a623246
BuildRequires:  python3-certbot >= 1.1.0
15af7d4
BuildRequires:  python3-dns
cb0e017
BuildRequires:  python3-pytest
Nick Bebout d39c538
BuildRequires:  python3-setuptools
15af7d4
BuildRequires:  python3-zope-interface
15af7d4
15af7d4
%description -n python3-%{pypi_name}
15af7d4
The certbot-dns-rfc2136 plugin automates the process of completing an ACME
15af7d4
dns-01 challenge by creating, and subsequently removing, TXT records using
15af7d4
RFC 2136 Dynamic Updates.
15af7d4
15af7d4
This is the Python 3 version of the package.
70a7144
%endif
15af7d4
15af7d4
%prep
ba0d5c2
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
15af7d4
%autosetup -n %{pypi_name}-%{version}
15af7d4
# Remove bundled egg-info
15af7d4
rm -rf %{pypi_name}.egg-info
15af7d4
15af7d4
%build
b8de537
%if %{with python2}
15af7d4
%py2_build
b8de537
%endif
b8de537
70a7144
%if %{with python3}
15af7d4
%py3_build
70a7144
%endif
15af7d4
15af7d4
%install
b8de537
%if %{with python2}
15af7d4
%py2_install
b8de537
%endif
b8de537
70a7144
%if %{with python3}
70a7144
%py3_install
70a7144
%endif
15af7d4
15af7d4
%check
b8de537
%if %{with python2}
Nick Bebout 1f99810
%{__python2} -m pytest
b8de537
%endif
b8de537
70a7144
%if %{with python3}
Nick Bebout 1f99810
%{__python3} -m pytest
70a7144
%endif
15af7d4
b8de537
%if %{with python2}
15af7d4
%files -n python2-%{pypi_name}
15af7d4
%license LICENSE.txt
15af7d4
%doc README.rst
15af7d4
%{python2_sitelib}/certbot_dns_rfc2136
15af7d4
%{python2_sitelib}/certbot_dns_rfc2136-%{version}-py?.?.egg-info
b8de537
%endif
15af7d4
70a7144
%if %{with python3}
15af7d4
%files -n python3-%{pypi_name}
15af7d4
%license LICENSE.txt
15af7d4
%doc README.rst
15af7d4
%{python3_sitelib}/certbot_dns_rfc2136
3a707ea
%{python3_sitelib}/certbot_dns_rfc2136-%{version}-py%{python3_version}.egg-info
70a7144
%endif
15af7d4
15af7d4
%changelog
Nick Bebout 1f99810
* Thu Oct 08 2020 Nick Bebout <nb@fedoraproject.org> - 1.9.0-1
Nick Bebout 1f99810
- Update to 1.9.0
Nick Bebout 1f99810
Nick Bebout 9f8bbb9
* Tue Oct 06 2020 Nick Bebout <nb@fedoraproject.org> - 1.8.0-1
Nick Bebout 9f8bbb9
- Update to 1.8.0
Nick Bebout 9f8bbb9
812151e
* Sun Aug 16 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 1.7.0-1
812151e
- Update to 1.7.0 (#1866094)
812151e
d2e33a7
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-2
d2e33a7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d2e33a7
6c7085f
* Tue Jul 07 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 1.6.0-1
6c7085f
- Update to 1.6.0 (#1854605)
6c7085f
da3080c
* Sat Jun 06 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 1.5.0-1
da3080c
- Update to 1.5.0 (#1843215)
da3080c
1e3891f
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.4.0-3
1e3891f
- Rebuilt for Python 3.9
1e3891f
09fad9a
* Wed May 13 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 1.4.0-2
09fad9a
- need to rebuild package on EPEL8 due to koji bug
09fad9a
558c403
* Sat May 09 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 1.4.0-1
558c403
- Update to 1.4.0 (#1831927)
558c403
7abd4f3
* Wed Mar 04 2020 Felix Schwarz <felix.schwarz@oss.schwarz.eu> - 1.3.0-1
7abd4f3
- Update to 1.3.0 (#1809809)
7abd4f3
d56a8c9
* Sun Mar 01 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 1.2.0-1
d56a8c9
- Update to 1.2.0 (#1791097)
d56a8c9
f0bc475
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
f0bc475
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f0bc475
cb0e017
* Thu Dec 05 2019 Eli Young <elyscape@gmail.com> - 1.0.0-1
cb0e017
- Update to 1.0.0 (#1769118)
cb0e017
ba0d5c2
* Wed Dec 04 2019 Eli Young <elyscape@gmail.com> - 0.39.0-2
ba0d5c2
- Verify source OpenPGP signature
ba0d5c2
3808a21
* Tue Oct 01 2019 Eli Young <elyscape@gmail.com> - 0.39.0-1
3808a21
- Update to 0.39.0 (#1757591)
3808a21
cd779b8
* Tue Sep 10 2019 Eli Young <elyscape@gmail.com> - 0.38.0-1
cd779b8
- Update to 0.38.0 (#1748624)
cd779b8
97a543e
* Mon Aug 26 2019 Eli Young <elyscape@gmail.com> - 0.37.2-1
97a543e
- Update to 0.37.2 (#1742590)
97a543e
19cd66f
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.36.0-3
19cd66f
- Rebuilt for Python 3.8
19cd66f
80f824e
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.36.0-2
80f824e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
80f824e
3ab23cc
* Fri Jul 19 2019 Eli Young <elyscape@gmail.com> - 0.36.0-1
3ab23cc
- Update to 0.36.0
3ab23cc
cb95d1a
* Fri Jun 21 2019 Eli Young <elyscape@gmail.com> - 0.35.1-1
cb95d1a
- Update to 0.35.1 (#1717690)
cb95d1a
03acf03
* Tue May 28 2019 Eli Young <elyscape@gmail.com> - 0.34.2-1
03acf03
- Update to 0.34.2 (#1686197)
03acf03
9fee577
* Fri Feb 08 2019 Eli Young <elyscape@gmail.com> - 0.31.0-1
9fee577
- Update to 0.31.0 (#1673759)
9fee577
e7ad355
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.30.2-2
e7ad355
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e7ad355
698e5ab
* Mon Jan 28 2019 Eli Young <elyscape@gmail.com> - 0.30.2-1
698e5ab
- Update to 0.30.2 (#1669326)
698e5ab
ec6bb76
* Tue Dec 11 2018 Eli Young <elyscape@gmail.com> - 0.29.1-1
ec6bb76
- Update to 0.29.1
b8de537
- Remove Python 2 package in Fedora 30+ (#1654016)
ec6bb76
92c8450
* Wed Nov 14 2018 Eli Young <elyscape@gmail.com> - 0.28.0-1
92c8450
- Update to 0.28.0
92c8450
2a3e9a3
* Mon Sep 10 2018 Eli Young <elyscape@gmail.com> - 0.27.1-1
2a3e9a3
- Update to 0.27.1 (#1627582)
2a3e9a3
38665cf
* Tue Jul 17 2018 Eli Young <elyscape@gmail.com> - 0.26.1-1
38665cf
- Update to 0.26.1 (#1600302)
38665cf
af2de62
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.25.1-3
af2de62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
af2de62
fb9e402
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.25.1-2
fb9e402
- Rebuilt for Python 3.7
fb9e402
42d6066
* Wed Jun 13 2018 Eli Young <elyscape@gmail.com> - 0.25.1-1
42d6066
- Update to 0.25.1 (#1591041)
42d6066
d10cd19
* Thu Jun 07 2018 Eli Young <elyscape@gmail.com> - 0.25.0-1
d10cd19
- Update to 0.25.0 (#1588229)
d10cd19
d1100bd
* Wed May 02 2018 Eli Young <elyscape@gmail.com> - 0.24.0-1
d1100bd
- Update to 0.24.0 (#1574146)
d1100bd
c1fad1a
* Thu Apr 05 2018 Eli Young <elyscape@gmail.com> - 0.23.0-1
c1fad1a
- Update to 0.23.0 (#1563909)
c1fad1a
124dd90
* Tue Mar 20 2018 Eli Young <elyscape@gmail.com> - 0.22.2-1
124dd90
- Update to 0.22.2 (#1558282)
124dd90
3b9e3cc
* Sat Mar 10 2018 Eli Young <elyscape@gmail.com> - 0.22.0-1
3b9e3cc
- Update to 0.22.0 (#1552955)
3b9e3cc
Nick Bebout d39c538
* Mon Feb 26 2018 Nick Bebout <nb@usi.edu> - 0.21.1-5
Nick Bebout d39c538
- Remove min version of setuptools dep
Nick Bebout d39c538
Nick Bebout d9e7398
* Mon Feb 26 2018 Nick Bebout <nb@usi.edu> - 0.21.1-4
Nick Bebout d9e7398
- Simplify deps, add python2- prefix where available
Nick Bebout d9e7398
cbadc02
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.21.1-3
cbadc02
- Update Python 2 dependency declarations to new packaging standards
cbadc02
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
cbadc02
835a7d7
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.1-2
835a7d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
835a7d7
b317249
* Fri Feb 02 2018 Eli Young <elyscape@gmail.com> - 0.21.1-1
b317249
- Update to 0.21.1 (#1535997)
b317249
68994eb
* Fri Dec 22 2017 Eli Young <elyscape@gmail.com> - 0.20.0-1
68994eb
- Update to 0.20.0
70a7144
- Fix build on EPEL7, which has an old version of setuptools and no Python 3
70a7144
  Certbot packages
68994eb
15af7d4
* Mon Nov 20 2017 Ed Marshall <esm@logic.net> - 0.19.0-1
15af7d4
- Initial package.