Nick Bebout 2987f44
%global pypi_name certbot-dns-luadns
Nick Bebout 2987f44
Nick Bebout 2987f44
%if 0%{?rhel} && 0%{?rhel} <= 7
Nick Bebout 2987f44
%bcond_with python3
Nick Bebout 2987f44
%else
Nick Bebout 2987f44
%bcond_without python3
Nick Bebout 2987f44
%endif
Nick Bebout 2987f44
794a1e6
%if 0%{?fedora} && 0%{?fedora} >= 30
794a1e6
%bcond_with python2
794a1e6
%else
794a1e6
%bcond_without python2
794a1e6
%endif
794a1e6
Nick Bebout 2987f44
Name:           python-%{pypi_name}
e3306e3
Version:        1.0.0
e1d763c
Release:        2%{?dist}
Nick Bebout 2987f44
Summary:        LuaDNS Authenticator plugin for Certbot
Nick Bebout 2987f44
Nick Bebout 2987f44
License:        ASL 2.0
Nick Bebout 2987f44
URL:            https://github.com/certbot/certbot
6c6d861
Source0:        %{pypi_source}
6c6d861
Source1:        %{pypi_source}.asc
6c6d861
# Key mentioned in https://certbot.eff.org/docs/install.html#certbot-auto
6c6d861
# Keyring generation steps as follows:
6c6d861
#   gpg2 --keyserver pool.sks-keyservers.net --recv-key A2CFB51FA275A7286234E7B24D17C995CD9775F2
6c6d861
#   gpg2 --export --export-options export-minimal A2CFB51FA275A7286234E7B24D17C995CD9775F2 > gpg-A2CFB51FA275A7286234E7B24D17C995CD9775F2.gpg
6c6d861
Source2:        gpg-A2CFB51FA275A7286234E7B24D17C995CD9775F2.gpg
6c6d861
Nick Bebout 2987f44
BuildArch:      noarch
Nick Bebout b251cf7
794a1e6
%if %{with python2}
6714008
BuildRequires:  python2-acme >= 0.31.0
48f4d36
BuildRequires:  python2-certbot >= 0.39.0
Nick Bebout 2987f44
BuildRequires:  python2-devel
1a45cc2
BuildRequires:  python2-dns-lexicon >= 2.2.1
Nick Bebout 2987f44
BuildRequires:  python2-setuptools
Nick Bebout b251cf7
BuildRequires:  python2-zope-interface
e3306e3
e3306e3
%if 0%{?rhel} && 0%{?rhel} <= 7
e3306e3
# EL7 has unversioned names for these packages
e3306e3
BuildRequires:  pytest
e3306e3
%else
e3306e3
BuildRequires:  python2-pytest
e3306e3
%endif
794a1e6
%endif
Nick Bebout 2987f44
Nick Bebout 2987f44
%if %{with python3}
794a1e6
BuildRequires:  python3-sphinx
e88a923
BuildRequires:  python3-sphinx_rtd_theme
6714008
BuildRequires:  python3-acme >= 0.31.0
48f4d36
BuildRequires:  python3-certbot >= 0.39.0
Nick Bebout 2987f44
BuildRequires:  python3-devel
1a45cc2
BuildRequires:  python3-dns-lexicon >= 2.2.1
Nick Bebout 2987f44
BuildRequires:  python3-mock
e3306e3
BuildRequires:  python3-pytest
Nick Bebout 2987f44
BuildRequires:  python3-setuptools
Nick Bebout 2987f44
BuildRequires:  python3-zope-interface
Nick Bebout 2987f44
%endif
Nick Bebout 2987f44
6c6d861
# Used to verify OpenPGP signature
6c6d861
BuildRequires:  gnupg2
6c6d861
Nick Bebout 2987f44
%description
Nick Bebout 2987f44
LuaDNS Authenticator plugin for Certbot
Nick Bebout 2987f44
794a1e6
%if %{with python2}
Nick Bebout 2987f44
%package -n     python2-%{pypi_name}
Nick Bebout 2987f44
Summary:        %{summary}
Nick Bebout 2987f44
%{?python_provide:%python_provide python2-%{pypi_name}}
1cf89af
6714008
Requires:       python2-acme >= 0.31.0
48f4d36
Requires:       python2-certbot >= 0.39.0
1a45cc2
Requires:       python2-dns-lexicon >= 2.2.1
Nick Bebout 2987f44
Requires:       python2-mock
Nick Bebout 2987f44
Requires:       python2-setuptools
Nick Bebout cb948e6
Requires:       python2-zope-interface
Nick Bebout 2987f44
7c25607
# Provide the name users expect as a certbot plugin
7c25607
%if 0%{?rhel} && 0%{?rhel} <= 7
7c25607
Provides:      %{pypi_name} = %{version}-%{release}
7c25607
%endif
7c25607
Nick Bebout 2987f44
%description -n python2-%{pypi_name}
Nick Bebout 2987f44
LuaDNS Authenticator plugin for Certbot
794a1e6
%endif
Nick Bebout 2987f44
Nick Bebout 2987f44
%if %{with python3}
Nick Bebout 2987f44
%package -n     python3-%{pypi_name}
Nick Bebout 2987f44
Summary:        %{summary}
Nick Bebout 2987f44
%{?python_provide:%python_provide python3-%{pypi_name}}
1cf89af
6714008
Requires:       python3-acme >= 0.31.0
48f4d36
Requires:       python3-certbot >= 0.39.0
1a45cc2
Requires:       python3-dns-lexicon >= 2.2.1
Nick Bebout 2987f44
Requires:       python3-mock
Nick Bebout cb948e6
Requires:       python3-setuptools
Nick Bebout 2987f44
Requires:       python3-zope-interface
Nick Bebout 2987f44
Requires:       python3-setuptools
Nick Bebout 2987f44
7c25607
# Provide the name users expect as a certbot plugin
7c25607
%if 0%{?fedora}
7c25607
Provides:      %{pypi_name} = %{version}-%{release}
7c25607
%endif
7c25607
Nick Bebout 2987f44
%description -n python3-%{pypi_name}
Nick Bebout 2987f44
LuaDNS Authenticator plugin for Certbot
Nick Bebout 2987f44
Nick Bebout 2987f44
%package -n python-%{pypi_name}-doc
Nick Bebout 2987f44
Summary:        certbot-dns-luadns documentation
Nick Bebout 2987f44
%description -n python-%{pypi_name}-doc
Nick Bebout 2987f44
Documentation for certbot-dns-luadns
Nick Bebout 2987f44
%endif
Nick Bebout 2987f44
Nick Bebout 2987f44
%prep
6c6d861
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
Nick Bebout 2987f44
%autosetup -n %{pypi_name}-%{version}
Nick Bebout 2987f44
# Remove bundled egg-info
Nick Bebout 2987f44
rm -rf %{pypi_name}.egg-info
Nick Bebout 2987f44
Nick Bebout 2987f44
%build
794a1e6
%if %{with python2}
Nick Bebout 2987f44
%py2_build
794a1e6
%endif
Nick Bebout 2987f44
Nick Bebout 2987f44
%if %{with python3}
Nick Bebout 2987f44
%py3_build
794a1e6
# generate html docs
794a1e6
sphinx-build-3 docs html
Nick Bebout 2987f44
# remove the sphinx-build leftovers
Nick Bebout 2987f44
rm -rf html/.{doctrees,buildinfo}
Nick Bebout 2987f44
%endif
Nick Bebout 2987f44
Nick Bebout 2987f44
%install
794a1e6
%if %{with python2}
794a1e6
%py2_install
794a1e6
%endif
Nick Bebout 2987f44
Nick Bebout 2987f44
%if %{with python3}
Nick Bebout 2987f44
%py3_install
Nick Bebout 2987f44
%endif
Nick Bebout 2987f44
Nick Bebout 2987f44
Nick Bebout 2987f44
%check
794a1e6
%if %{with python2}
Nick Bebout 2987f44
%{__python2} setup.py test
794a1e6
%endif
Nick Bebout b251cf7
Nick Bebout b251cf7
%if %{with python3}
Nick Bebout 2987f44
%{__python3} setup.py test
Nick Bebout 2987f44
%endif
Nick Bebout 2987f44
794a1e6
%if %{with python2}
Nick Bebout 2987f44
%files -n python2-%{pypi_name}
Nick Bebout 2987f44
%license LICENSE.txt
Nick Bebout 2987f44
%doc README.rst
Nick Bebout 2987f44
%{python2_sitelib}/certbot_dns_luadns
Nick Bebout 2987f44
%{python2_sitelib}/certbot_dns_luadns-%{version}-py?.?.egg-info
794a1e6
%endif
Nick Bebout 2987f44
Nick Bebout 2987f44
%if %{with python3}
Nick Bebout 2987f44
%files -n python3-%{pypi_name}
Nick Bebout 2987f44
%license LICENSE.txt
Nick Bebout 2987f44
%doc README.rst
Nick Bebout 2987f44
%{python3_sitelib}/certbot_dns_luadns
Nick Bebout 2987f44
%{python3_sitelib}/certbot_dns_luadns-%{version}-py?.?.egg-info
Nick Bebout 2987f44
Nick Bebout 2987f44
%files -n python-%{pypi_name}-doc
794a1e6
%doc html
Nick Bebout 2987f44
%endif
Nick Bebout 2987f44
Nick Bebout 2987f44
%changelog
e1d763c
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
e1d763c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e1d763c
e3306e3
* Thu Dec 05 2019 Eli Young <elyscape@gmail.com> - 1.0.0-1
e3306e3
- Update to 1.0.0 (#1769099)
e3306e3
6c6d861
* Wed Dec 04 2019 Eli Young <elyscape@gmail.com> - 0.39.0-2
6c6d861
- Verify source OpenPGP signature
6c6d861
48f4d36
* Tue Oct 01 2019 Eli Young <elyscape@gmail.com> - 0.39.0-1
48f4d36
- Update to 0.39.0 (#1757583)
48f4d36
59b68d4
* Tue Sep 10 2019 Eli Young <elyscape@gmail.com> - 0.38.0-1
59b68d4
- Update to 0.38.0 (#1748623)
59b68d4
e856994
* Mon Aug 26 2019 Eli Young <elyscape@gmail.com> - 0.37.2-1
e856994
- Update to 0.37.2 (#1742587)
e856994
ad9460f
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.36.0-3
ad9460f
- Rebuilt for Python 3.8
ad9460f
9f154d4
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.36.0-2
9f154d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9f154d4
4817df7
* Fri Jul 19 2019 Eli Young <elyscape@gmail.com> - 0.36.0-1
4817df7
- Update to 0.36.0
4817df7
190c9cc
* Fri Jun 21 2019 Eli Young <elyscape@gmail.com> - 0.35.1-1
190c9cc
- Update to 0.35.1 (#1717687)
190c9cc
e88a923
* Tue May 28 2019 Eli Young <elyscape@gmail.com> - 0.34.2-1
e88a923
- Update to 0.34.2 (#1686194)
e88a923
6714008
* Fri Feb 08 2019 Eli Young <elyscape@gmail.com> - 0.31.0-1
6714008
- Update to 0.31.0 (#1673756)
6714008
08d6704
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.30.2-2
08d6704
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
08d6704
a9505c5
* Mon Jan 28 2019 Eli Young <elyscape@gmail.com> - 0.30.2-1
a9505c5
- Update to 0.30.2 (#1669323)
a9505c5
945cf32
* Tue Dec 11 2018 Eli Young <elyscape@gmail.com> - 0.29.1-1
945cf32
- Update to 0.29.1
794a1e6
- Remove Python 2 package in Fedora 30+ (#1654016)
945cf32
2854828
* Wed Nov 14 2018 Eli Young <elyscape@gmail.com> - 0.28.0-1
2854828
- Update to 0.28.0
2854828
d758387
* Mon Sep 10 2018 Eli Young <elyscape@gmail.com> - 0.27.1-1
d758387
- Update to 0.27.1 (#1627579)
d758387
cc86b60
* Tue Jul 17 2018 Eli Young <elyscape@gmail.com> - 0.26.1-1
cc86b60
- Update to 0.26.1 (#1600300)
cc86b60
fca365f
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.25.1-3
fca365f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
fca365f
5ace57a
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.25.1-2
5ace57a
- Rebuilt for Python 3.7
5ace57a
cf9fccd
* Wed Jun 13 2018 Eli Young <elyscape@gmail.com> - 0.25.1-1
cf9fccd
- Update to 0.25.1 (#1591039)
cf9fccd
99cb7a1
* Thu Jun 07 2018 Eli Young <elyscape@gmail.com> - 0.25.0-1
99cb7a1
- Update to 0.25.0 (#1588227)
99cb7a1
3c9fb2c
* Wed May 02 2018 Eli Young <elyscape@gmail.com> - 0.24.0-1
3c9fb2c
- Update to 0.24.0 (#1574148)
3c9fb2c
1a45cc2
* Thu Apr 05 2018 Eli Young <elyscape@gmail.com> - 0.23.0-1
1a45cc2
- Update to 0.23.0 (#1563907)
1a45cc2
8aa030a
* Tue Mar 20 2018 Eli Young <elyscape@gmail.com> - 0.22.2-1
8aa030a
- Update to 0.22.2
8aa030a
1cf89af
* Sat Mar 10 2018 Eli Young <elyscape@gmail.com> - 0.22.0-1
1cf89af
- Update to 0.22.0
1cf89af
Nick Bebout cb948e6
* Mon Feb 26 2018 Nick Bebout <nb@usi.edu> - 0.21.1-3
Nick Bebout cb948e6
- Actually fix the setuptools dep
Nick Bebout cb948e6
Nick Bebout b251cf7
* Mon Feb 26 2018 Nick Bebout <nb@usi.edu> - 0.21.1-2
Nick Bebout b251cf7
- Add patch to remove no longer needed versioned dep in epel7
Nick Bebout b251cf7
Nick Bebout b251cf7
* Wed Feb 21 2018 Nick Bebout <nb@usi.edu> - 0.21.1-1
Nick Bebout 2987f44
- Initial package.