476c331
%global pypi_name certbot-dns-ovh
476c331
476c331
%if 0%{?rhel} && 0%{?rhel} <= 7
476c331
%bcond_with python3
476c331
# EL7 has problems building the documentation due to #1492884
476c331
%bcond_with docs
476c331
%else
476c331
%bcond_without python3
476c331
%bcond_without docs
476c331
%endif
476c331
b565a40
%if 0%{?fedora} && 0%{?fedora} >= 30
b565a40
%bcond_with python2
b565a40
%else
b565a40
%bcond_without python2
b565a40
%endif
b565a40
476c331
Name:           python-%{pypi_name}
2a5eaff
Version:        0.39.0
fde440a
Release:        1%{?dist}
476c331
Summary:        OVH DNS Authenticator plugin for Certbot
476c331
476c331
License:        ASL 2.0
476c331
URL:            https://github.com/certbot/certbot
476c331
Source0:        https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
476c331
BuildArch:      noarch
476c331
b565a40
%if %{with python2}
1bcd6be
BuildRequires:  python2-acme >= 0.31.0
2a5eaff
BuildRequires:  python2-certbot >= 0.39.0
476c331
BuildRequires:  python2-devel
a19d21f
BuildRequires:  python2-dns-lexicon >= 2.7.14
476c331
BuildRequires:  python2-setuptools
476c331
BuildRequires:  python2-zope-interface
b565a40
%endif
476c331
476c331
%if %{with python3}
1bcd6be
BuildRequires:  python3-acme >= 0.31.0
2a5eaff
BuildRequires:  python3-certbot >= 0.39.0
476c331
BuildRequires:  python3-devel
a19d21f
BuildRequires:  python3-dns-lexicon >= 2.7.14
476c331
BuildRequires:  python3-setuptools
476c331
%endif
476c331
476c331
%if %{with docs}
b565a40
BuildRequires:  python3-sphinx
b565a40
BuildRequires:  python3-sphinx_rtd_theme
476c331
%endif
476c331
476c331
%description
476c331
OVH DNS Authenticator plugin for Certbot
476c331
b565a40
%if %{with python2}
476c331
%package -n     python2-%{pypi_name}
476c331
Summary:        %{summary}
476c331
%{?python_provide:%python_provide python2-%{pypi_name}}
476c331
1bcd6be
Requires:       python2-acme >= 0.31.0
2a5eaff
Requires:       python2-certbot >= 0.39.0
a19d21f
Requires:       python2-dns-lexicon >= 2.7.14
476c331
Requires:       python2-mock
476c331
Requires:       python2-setuptools
476c331
Requires:       python2-zope-interface
476c331
ccbf5ff
# Provide the name users expect as a certbot plugin
ccbf5ff
%if 0%{?rhel} && 0%{?rhel} <= 7
ccbf5ff
Provides:      %{pypi_name} = %{version}-%{release}
ccbf5ff
%endif
ccbf5ff
476c331
%description -n python2-%{pypi_name}
476c331
OVH DNS Authenticator plugin for Certbot
476c331
476c331
This is the Python 2 version of the package.
b565a40
%endif
476c331
476c331
%if %{with python3}
476c331
%package -n     python3-%{pypi_name}
476c331
Summary:        %{summary}
476c331
%{?python_provide:%python_provide python3-%{pypi_name}}
476c331
1bcd6be
Requires:       python3-acme >= 0.31.0
2a5eaff
Requires:       python3-certbot >= 0.39.0
a19d21f
Requires:       python3-dns-lexicon >= 2.7.14
476c331
Requires:       python3-mock
476c331
Requires:       python3-setuptools
476c331
Requires:       python3-zope-interface
476c331
ccbf5ff
# Provide the name users expect as a certbot plugin
ccbf5ff
%if 0%{?fedora}
ccbf5ff
Provides:      %{pypi_name} = %{version}-%{release}
ccbf5ff
%endif
ccbf5ff
476c331
%description -n python3-%{pypi_name}
476c331
OVH DNS Authenticator plugin for Certbot
476c331
476c331
This is the Python 3 version of the package.
476c331
%endif
476c331
476c331
%if %{with docs}
476c331
%package -n python-%{pypi_name}-doc
476c331
Summary:        Documentation for python-certbot-dns-ovh
476c331
%description -n python-%{pypi_name}-doc
476c331
Documentation for python-certbot-dns-ovh
476c331
%endif
476c331
476c331
%prep
476c331
%autosetup -n %{pypi_name}-%{version}
476c331
# Remove bundled egg-info
476c331
rm -rf %{pypi_name}.egg-info
476c331
476c331
%build
b565a40
%if %{with python2}
476c331
%py2_build
b565a40
%endif
476c331
476c331
%if %{with python3}
476c331
%py3_build
476c331
%endif
476c331
476c331
%if %{with docs}
b565a40
sphinx-build-3 docs html
476c331
rm -rf html/.{doctrees,buildinfo}
476c331
%endif
476c331
476c331
%install
b565a40
%if %{with python2}
476c331
%py2_install
b565a40
%endif
476c331
476c331
%if %{with python3}
476c331
%py3_install
476c331
%endif
476c331
476c331
%check
b565a40
%if %{with python2}
a19d21f
%{__python2} setup.py test
b565a40
%endif
476c331
a19d21f
%if %{with python3}
a19d21f
%{__python3} setup.py test
a19d21f
%endif
476c331
b565a40
%if %{with python2}
476c331
%files -n python2-%{pypi_name}
476c331
%license LICENSE.txt
476c331
%doc README.rst
476c331
%{python2_sitelib}/certbot_dns_ovh
476c331
%{python2_sitelib}/certbot_dns_ovh-%{version}-py?.?.egg-info
b565a40
%endif
476c331
476c331
%if %{with python3}
476c331
%files -n python3-%{pypi_name}
476c331
%license LICENSE.txt
476c331
%doc README.rst
476c331
%{python3_sitelib}/certbot_dns_ovh
476c331
%{python3_sitelib}/certbot_dns_ovh-%{version}-py?.?.egg-info
476c331
%endif
476c331
476c331
%if %{with docs}
476c331
%files doc
476c331
%license LICENSE.txt
476c331
%doc README.rst
476c331
%doc html
476c331
%endif
476c331
476c331
%changelog
2a5eaff
* Tue Oct 01 2019 Eli Young <elyscape@gmail.com> - 0.39.0-1
2a5eaff
- Update to 0.39.0 (#1757586)
2a5eaff
561aca8
* Tue Sep 10 2019 Eli Young <elyscape@gmail.com> - 0.38.0-1
561aca8
- Update to 0.38.0 (#1748625)
561aca8
fde440a
* Mon Aug 26 2019 Eli Young <elyscape@gmail.com> - 0.37.2-1
fde440a
- Update to 0.37.2 (#1742588)
fde440a
948a5da
* Mon Aug 19 2019 Miro HronĨok <mhroncok@redhat.com> - 0.36.0-3
948a5da
- Rebuilt for Python 3.8
948a5da
9007622
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.36.0-2
9007622
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9007622
7ceedc6
* Fri Jul 19 2019 Eli Young <elyscape@gmail.com> - 0.36.0-1
7ceedc6
- Update to 0.36.0
7ceedc6
90f97b4
* Fri Jun 21 2019 Eli Young <elyscape@gmail.com> - 0.35.1-1
90f97b4
- Update to 0.35.1 (#1717689)
90f97b4
c539695
* Tue May 28 2019 Eli Young <elyscape@gmail.com> - 0.34.2-1
c539695
- Update to 0.34.2 (#1686196)
c539695
1bcd6be
* Fri Feb 08 2019 Eli Young <elyscape@gmail.com> - 0.31.0-1
1bcd6be
- Update to 0.31.0 (#1673758)
1bcd6be
15e1ba2
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.30.2-2
15e1ba2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
15e1ba2
1c64ab5
* Mon Jan 28 2019 Eli Young <elyscape@gmail.com> - 0.30.2-1
1c64ab5
- Update to 0.30.2 (#1669325)
1c64ab5
f8752df
* Tue Dec 11 2018 Eli Young <elyscape@gmail.com> - 0.29.1-1
f8752df
- Update to 0.29.1
b565a40
- Remove Python 2 package in Fedora 30+ (#1654016)
f8752df
a19d21f
* Wed Nov 14 2018 Eli Young <elyscape@gmail.com> - 0.28.0-1
a19d21f
- Update to 0.28.0
a19d21f
682782a
* Mon Sep 10 2018 Eli Young <elyscape@gmail.com> - 0.27.1-1
682782a
- Update to 0.27.1 (#1627581)
682782a
6c1eafe
* Thu Jul 19 2018 Eli Young <elyscape@gmail.com> - 0.26.1-1
6c1eafe
- Update to 0.26.1
6c1eafe
476c331
* Tue Jul 17 2018 Eli Young <elyscape@gmail.com> - 0.26.0-1
476c331
- Initial import (#1602109)