1344646
%global pypi_name certbot-dns-route53
713ca0b
713ca0b
%if 0%{?rhel} && 0%{?rhel} <= 7
713ca0b
%bcond_with python3
713ca0b
%else
713ca0b
%bcond_without python3
713ca0b
%endif
713ca0b
ffca79f
%if 0%{?fedora} || (0%{?rhel} && 0%{?rhel} >= 8)
7d3fadc
%bcond_with python2
7d3fadc
%else
7d3fadc
%bcond_without python2
7d3fadc
%endif
7d3fadc
1344646
Name:           python-%{pypi_name}
653bd0a
Version:        1.11.0
4b06ac7
Release:        1%{?dist}
713ca0b
Summary:        Route53 DNS Authenticator plugin for Certbot
713ca0b
713ca0b
License:        ASL 2.0
713ca0b
URL:            https://pypi.python.org/pypi/certbot-dns-route53
1344646
Source0:        %{pypi_source}
1344646
Source1:        %{pypi_source}.asc
1344646
# Key mentioned in https://certbot.eff.org/docs/install.html#certbot-auto
1344646
# Keyring generation steps as follows:
1344646
#   gpg2 --keyserver pool.sks-keyservers.net --recv-key A2CFB51FA275A7286234E7B24D17C995CD9775F2
1344646
#   gpg2 --export --export-options export-minimal A2CFB51FA275A7286234E7B24D17C995CD9775F2 > gpg-A2CFB51FA275A7286234E7B24D17C995CD9775F2.gpg
1344646
Source2:        gpg-A2CFB51FA275A7286234E7B24D17C995CD9775F2.gpg
713ca0b
713ca0b
BuildArch:      noarch
713ca0b
7d3fadc
%if %{with python2}
3f656ba
BuildRequires:  python2-acme >= 0.29.0
d9f94df
# python-certbot-dns-route53 contains "from botocore.exceptions import …" but
d9f94df
# does not declare this in setup.py
d9f94df
BuildRequires:  python-botocore
ffca79f
BuildRequires:  python2-certbot >= 1.1.0
713ca0b
BuildRequires:  python2-devel
713ca0b
BuildRequires:  python2-mock
713ca0b
BuildRequires:  python2-setuptools
713ca0b
BuildRequires:  python2-zope-interface
92be2d8
92be2d8
%if 0%{?rhel} && 0%{?rhel} <= 7
f010c59
# EL7 has unversioned names for these packages
f010c59
BuildRequires:  pytest
92be2d8
BuildRequires:  python-boto3
92be2d8
%else
92be2d8
BuildRequires:  python2-boto3
f010c59
BuildRequires:  python2-pytest
92be2d8
%endif
7d3fadc
%endif
713ca0b
713ca0b
%if %{with python3}
3f656ba
BuildRequires:  python3-acme >= 0.29.0
713ca0b
BuildRequires:  python3-boto3
d9f94df
# python-certbot-dns-route53 contains "from botocore.exceptions import …" but
d9f94df
# does not declare this in setup.py
d9f94df
BuildRequires:  python3-botocore
ffca79f
BuildRequires:  python3-certbot >= 1.1.0
713ca0b
BuildRequires:  python3-devel
f010c59
BuildRequires:  python3-pytest
713ca0b
BuildRequires:  python3-setuptools
713ca0b
BuildRequires:  python3-zope-interface
713ca0b
%endif
713ca0b
1344646
# Used to verify OpenPGP signature
1344646
BuildRequires:  gnupg2
1344646
713ca0b
%description
713ca0b
This certbot plugin automates the process of completing an ACME
713ca0b
dns-01 challenge by creating, and subsequently removing, TXT
713ca0b
records using AWS Route53.
713ca0b
7d3fadc
%if %{with python2}
1344646
%package -n python2-%{pypi_name}
713ca0b
# Provide the name users expect as a certbot plugin
713ca0b
%if 0%{?rhel} && 0%{?rhel} <= 7
1344646
Provides:       %{pypi_name} = %{version}-%{release}
713ca0b
%endif
713ca0b
# Although a plugin for the certbot command it's technically
713ca0b
# an extension to the certbot python libraries
3f656ba
Requires:       python2-acme >= 0.29.0
ffca79f
Requires:       python2-certbot >= 1.1.0
713ca0b
Requires:       python2-mock
d9f94df
# python-certbot-dns-route53 contains "from botocore.exceptions import …" but
d9f94df
# does not declare this in setup.py
d9f94df
Requires:       python2-botocore
713ca0b
Requires:       python2-zope-interface
713ca0b
92be2d8
%if 0%{?rhel} && 0%{?rhel} <= 7
92be2d8
# EL7 has an unversioned name for this package
cb18cbf
Requires:       python-boto3
92be2d8
%else
cb18cbf
Requires:       python2-boto3
92be2d8
%endif
92be2d8
713ca0b
%if 0%{?fedora}
713ca0b
#Recommend the CLI as that will be the interface most use
8282e29
Recommends:     certbot >= 0.39.0
713ca0b
%else
8282e29
Requires:       certbot >= 0.39.0
713ca0b
%endif
713ca0b
Summary:        %{summary}
1344646
%{?python_provide:%python_provide python2-%{pypi_name}}
713ca0b
1344646
%description -n python2-%{pypi_name}
713ca0b
This certbot plugin automates the process of completing an ACME
713ca0b
dns-01 challenge by creating, and subsequently removing, TXT
713ca0b
records using AWS Route53.
713ca0b
713ca0b
This is the Python 2 version of the package.
7d3fadc
%endif
713ca0b
713ca0b
%if %{with python3}
1344646
%package -n python3-%{pypi_name}
713ca0b
# Provide the name users expect as a certbot plugin
713ca0b
%if 0%{?fedora}
1344646
Provides:       %{pypi_name} = %{version}-%{release}
713ca0b
%endif
713ca0b
# Although a plugin for the certbot command it's technically
713ca0b
# an extension to the certbot python libraries
3f656ba
Requires:       python3-acme >= 0.29.0
713ca0b
Requires:       python3-boto3
d9f94df
# python-certbot-dns-route53 contains "from botocore.exceptions import …" but
d9f94df
# does not declare this in setup.py
d9f94df
Requires:       python3-botocore
ffca79f
Requires:       python3-certbot >= 1.1.0
713ca0b
Requires:       python3-zope-interface
713ca0b
713ca0b
%if 0%{?fedora}
713ca0b
#Recommend the CLI as that will be the interface most use
8282e29
Recommends:     certbot >= 0.39.0
713ca0b
%else
8282e29
Requires:       certbot >= 0.39.0
713ca0b
%endif
713ca0b
Summary:        %{summary}
1344646
%{?python_provide:%python_provide python3-%{pypi_name}}
713ca0b
1344646
%description -n python3-%{pypi_name}
713ca0b
This certbot plugin automates the process of completing an ACME
713ca0b
dns-01 challenge by creating, and subsequently removing, TXT
713ca0b
records using AWS Route53.
713ca0b
713ca0b
This is the Python 3 version of the package.
713ca0b
%endif
713ca0b
713ca0b
%prep
1344646
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
1344646
%autosetup -p1 -n %{pypi_name}-%{version}
f010c59
# Remove bundled egg-info
f010c59
rm -rf %{pypi_name}.egg-info
713ca0b
713ca0b
%build
7d3fadc
%if %{with python2}
713ca0b
%py2_build
7d3fadc
%endif
7d3fadc
713ca0b
%if %{with python3}
713ca0b
%py3_build
713ca0b
%endif
713ca0b
713ca0b
%check
7d3fadc
%if %{with python2}
79353c8
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test
7d3fadc
%endif
7d3fadc
713ca0b
%if %{with python3}
79353c8
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version}
713ca0b
%endif
713ca0b
713ca0b
%install
7d3fadc
%if %{with python2}
713ca0b
%py2_install
7d3fadc
%endif
7d3fadc
713ca0b
%if %{with python3}
713ca0b
%py3_install
713ca0b
%endif
713ca0b
7d3fadc
%if %{with python2}
1344646
%files -n python2-%{pypi_name}
cb3f27a
%license LICENSE.txt
713ca0b
%doc README.md
713ca0b
%{python2_sitelib}/certbot_dns_route53
713ca0b
%{python2_sitelib}/certbot_dns_route53-%{version}*.egg-info
7d3fadc
%endif
713ca0b
713ca0b
%if %{with python3}
1344646
%files -n python3-%{pypi_name}
cb3f27a
%license LICENSE.txt
713ca0b
%doc README.md
713ca0b
%{python3_sitelib}/certbot_dns_route53
713ca0b
%{python3_sitelib}/certbot_dns_route53-%{version}*.egg-info
713ca0b
%endif
713ca0b
713ca0b
%changelog
653bd0a
* Tue Jan  5 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 1.11.0-1
653bd0a
- Update to 1.11.0 (#1913031)
653bd0a
1e67892
* Thu Dec  3 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 1.10.1-1
1e67892
- Update to 1.10.1 (#1904195)
1e67892
bd39b12
* Thu Dec  3 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 1.10.0-1
bd39b12
- Update to 1.10.0 (#1903326)
bd39b12
Nick Bebout 5156d10
* Thu Oct 08 2020 Nick Bebout <nb@fedoraproject.org> - 1.9.0-1
Nick Bebout 5156d10
- Update to 1.9.0
Nick Bebout 5156d10
Nick Bebout 00568d2
* Tue Oct 06 2020 Nick Bebout <nb@fedoraproject.org> - 1.8.0-1
Nick Bebout 00568d2
- Update to 1.8.0
Nick Bebout 00568d2
4b06ac7
* Sun Aug 16 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 1.7.0-1
4b06ac7
- Update to 1.7.0 (#1866093)
4b06ac7
cab2818
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-2
cab2818
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
cab2818
a7ad896
* Tue Jul 07 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 1.6.0-1
a7ad896
- Update to 1.6.0 (#1854586)
a7ad896
1b62c9d
* Sat Jun 06 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 1.5.0-1
1b62c9d
- Update to 1.5.0 (#1843216)
1b62c9d
74172f4
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.4.0-3
74172f4
- Rebuilt for Python 3.9
74172f4
79353c8
* Tue May 12 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 1.4.0-2
79353c8
- run tests with pytest to fix tests on EPEL 7 (workaround for rhbz #1834529)
79353c8
6b2d83b
* Sat May 09 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 1.4.0-1
6b2d83b
- Update to 1.4.0 (#1831928)
6b2d83b
621168f
* Wed Mar 04 2020 Felix Schwarz <felix.schwarz@oss.schwarz.eu> - 1.3.0-1
621168f
- Update to 1.3.0 (#1809786)
621168f
3e2cb2f
* Sat Feb 29 2020 Felix Schwarz <felix.schwarz@oss.schwarz.eu> - 1.2.0-1
3e2cb2f
- Update to 1.2.0 (#1791076)
3e2cb2f
7e47c4b
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
7e47c4b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7e47c4b
f010c59
* Thu Dec 05 2019 Eli Young <elyscape@gmail.com> - 1.0.0-1
f010c59
- Update to 1.0.0 (#1769119)
f010c59
1344646
* Wed Dec 04 2019 Eli Young <elyscape@gmail.com> - 0.39.0-2
1344646
- Verify source OpenPGP signature
1344646
8282e29
* Tue Oct 01 2019 Eli Young <elyscape@gmail.com> - 0.39.0-1
8282e29
- Update to 0.39.0 (#1757589)
8282e29
f41543e
* Tue Sep 10 2019 Eli Young <elyscape@gmail.com> - 0.38.0-1
f41543e
- Update to 0.38.0 (#1748626)
f41543e
cb3f27a
* Mon Aug 26 2019 Eli Young <elyscape@gmail.com> - 0.37.2-1
cb3f27a
- Update to 0.37.2 (#1742592)
cb3f27a
658011f
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.36.0-3
658011f
- Rebuilt for Python 3.8
658011f
59d1487
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.36.0-2
59d1487
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
59d1487
54ba1be
* Fri Jul 19 2019 Eli Young <elyscape@gmail.com> - 0.36.0-1
54ba1be
- Update to 0.36.0
54ba1be
a6e9e43
* Fri Jun 21 2019 Eli Young <elyscape@gmail.com> - 0.35.1-1
a6e9e43
- Update to 0.35.1 (#1717691)
a6e9e43
3f656ba
* Tue May 28 2019 Eli Young <elyscape@gmail.com> - 0.34.2-1
3f656ba
- Update to 0.34.2 (#1686198)
3f656ba
2bfc8cf
* Fri Feb 08 2019 Eli Young <elyscape@gmail.com> - 0.31.0-1
2bfc8cf
- Update to 0.31.0 (#1673760)
2bfc8cf
cb18cbf
* Thu Jan 31 2019 Eli Young <elyscape@gmail.com> - 0.30.2-2
cb18cbf
- Fix boto3 dependency
cb18cbf
943a350
* Mon Jan 28 2019 Eli Young <elyscape@gmail.com> - 0.30.2-1
943a350
- Update to 0.30.2 (#1669327)
943a350
92be2d8
* Thu Dec 27 2018 Eli Young <elyscape@gmail.com> - 0.29.1-2
92be2d8
- Fix dependency issues in EPEL7
92be2d8
b8abd8b
* Tue Dec 11 2018 Eli Young <elyscape@gmail.com> - 0.29.1-1
b8abd8b
- Update to 0.29.1
7d3fadc
- Remove Python 2 package in Fedora 30+ (#1654016)
b8abd8b
b0929c2
* Wed Nov 14 2018 Eli Young <elyscape@gmail.com> - 0.28.0-1
b0929c2
- Update to 0.28.0
b0929c2
ae210ec
* Mon Sep 10 2018 Eli Young <elyscape@gmail.com> - 0.27.1-1
ae210ec
- Update to 0.27.1 (#1627583)
ae210ec
970c3ae
* Tue Jul 17 2018 Eli Young <elyscape@gmail.com> - 0.26.1-1
970c3ae
- Update to 0.26.1 (#1600303)
970c3ae
4d6c865
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.25.1-3
4d6c865
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4d6c865
b780c54
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.25.1-2
b780c54
- Rebuilt for Python 3.7
b780c54
49d057f
* Wed Jun 13 2018 Eli Young <elyscape@gmail.com> - 0.25.1-1
49d057f
- Update to 0.25.1 (#1591042)
49d057f
7a6f33e
* Thu Jun 07 2018 Eli Young <elyscape@gmail.com> - 0.25.0-1
7a6f33e
- Update to 0.25.0 (#1588230)
7a6f33e
ed69e6b
* Wed May 02 2018 Eli Young <elyscape@gmail.com> - 0.24.0-1
ed69e6b
- Update to 0.24.0 (#1574149)
ed69e6b
c281cf0
* Thu Apr 05 2018 Eli Young <elyscape@gmail.com> - 0.23.0-1
c281cf0
- Update to 0.23.0 (#1563910)
c281cf0
69e869d
* Tue Mar 20 2018 Eli Young <elyscape@gmail.com> - 0.22.2-1
69e869d
- Update to 0.22.2
69e869d
1968ff6
* Sat Mar 10 2018 Eli Young <elyscape@gmail.com> - 0.22.0-1
1968ff6
- Update to 0.22.0
1968ff6
Nick Bebout 7fe7344
* Mon Feb 26 2018 Nick Bebout <nb@usi.edu> - 0.21.1-2
Nick Bebout 7fe7344
- Simplify deps, add python2- prefix where available
Nick Bebout 7fe7344
713ca0b
* Wed Feb 14 2018 Eli Young <elyscape@gmail.com> - 0.21.1-1
713ca0b
- Initial package (#1544562)