4206550
%global pypi_name certbot-nginx
eb3853b
eb3853b
%if 0%{?fedora}
eb3853b
%bcond_without python3
eb3853b
%else
eb3853b
%bcond_with python3
eb3853b
%endif
eb3853b
4ecfbf6
%if 0%{?fedora} && 0%{?fedora} >= 30
4ecfbf6
%bcond_with python2
4ecfbf6
%else
4ecfbf6
%bcond_without python2
4ecfbf6
%endif
4ecfbf6
4206550
Name:       python-%{pypi_name}
657a8c7
Version:    1.2.0
657a8c7
Release:    1%{?dist}
eb3853b
Summary:    The nginx plugin for certbot
eb3853b
eb3853b
License:    ASL 2.0
eb3853b
URL:        https://pypi.python.org/pypi/certbot-nginx
4206550
Source0:        %{pypi_source}
4206550
Source1:        %{pypi_source}.asc
4206550
# Key mentioned in https://certbot.eff.org/docs/install.html#certbot-auto
4206550
# Keyring generation steps as follows:
4206550
#   gpg2 --keyserver pool.sks-keyservers.net --recv-key A2CFB51FA275A7286234E7B24D17C995CD9775F2
4206550
#   gpg2 --export --export-options export-minimal A2CFB51FA275A7286234E7B24D17C995CD9775F2 > gpg-A2CFB51FA275A7286234E7B24D17C995CD9775F2.gpg
4206550
Source2:        gpg-A2CFB51FA275A7286234E7B24D17C995CD9775F2.gpg
eb3853b
eb3853b
BuildArch:      noarch
eb3853b
4ecfbf6
%if %{with python2}
eb3853b
BuildRequires: python2-devel
4ecfbf6
%endif
eb3853b
eb3853b
%if %{with python3}
eb3853b
BuildRequires:  python3-devel
eb3853b
%endif
eb3853b
4ecfbf6
%if %{with python2}
eb3853b
#For running tests
ed16ae1
BuildRequires: python2-acme >= 1.0.0
ed16ae1
BuildRequires: python2-certbot >= 1.0.0
eb3853b
%if 0%{?rhel}
5ee93bd
# EL7 has unversioned names for these packages
eb3853b
BuildRequires: pyparsing
5ee93bd
BuildRequires: pytest
eb3853b
%else
eb3853b
BuildRequires: python2-pyparsing
5ee93bd
BuildRequires: python2-pytest
eb3853b
%endif
4ecfbf6
%endif
eb3853b
eb3853b
%if %{with python3}
ed16ae1
BuildRequires: python3-acme >= 1.0.0
ed16ae1
BuildRequires: python3-certbot >= 1.0.0
eb3853b
BuildRequires: python3-pyparsing
5ee93bd
BuildRequires: python3-pytest
eb3853b
%endif
eb3853b
4206550
# Used to verify OpenPGP signature
4206550
BuildRequires:  gnupg2
4206550
eb3853b
%description
eb3853b
Plugin for certbot that allows for automatic configuration of ngnix
eb3853b
4ecfbf6
%if %{with python2}
4206550
%package -n python2-%{pypi_name}
eb3853b
# Provide the name users expect as a certbot plugin
58fb4a8
%if ( 0%{?rhel} && 0%{?rhel} <= 7 ) || ( 0%{?fedora} && 0%{?fedora} <= 25 )
4206550
Provides:      %{pypi_name} = %{version}-%{release}
58fb4a8
%endif
eb3853b
# Although a plugin for the certbot command it's technically
eb3853b
# an extension to the certbot python libraries
ed16ae1
Requires:      python2-acme >= 1.0.0
ed16ae1
Requires:      python2-certbot >= 1.0.0
eb3853b
%if 0%{?rhel}
eb3853b
Requires: pyparsing
eb3853b
%else
eb3853b
Requires: python2-pyparsing
eb3853b
%endif
eb3853b
%if 0%{?fedora}
eb3853b
#Recommend the CLI as that will be the interface most use
ed16ae1
Recommends:    certbot >= 1.0.0
eb3853b
%else
ed16ae1
Requires:      certbot >= 1.0.0
eb3853b
%endif
eb3853b
Summary:     The nginx plugin for certbot
4206550
%{?python_provide:%python_provide python2-%{pypi_name}}
eb3853b
4206550
%description -n python2-%{pypi_name}
eb3853b
Plugin for certbot that allows for automatic configuration of nginx
4ecfbf6
%endif
eb3853b
eb3853b
%if %{with python3}
4206550
%package -n python3-%{pypi_name}
eb3853b
# Provide the name users expect as a certbot plugin
58fb4a8
%if 0%{?fedora} >= 26
4206550
Provides:      %{pypi_name} = %{version}-%{release}
58fb4a8
%endif
eb3853b
# Although a plugin for the certbot command it's technically
eb3853b
# an extension to the certbot python libraries
ed16ae1
Requires:      python3-acme >= 1.0.0
ed16ae1
Requires:      python3-certbot >= 1.0.0
eb3853b
Requires:      python3-pyparsing
eb3853b
%if 0%{?fedora}
eb3853b
#Recommend the CLI as that will be the interface most use
ed16ae1
Recommends:    certbot >= 1.0.0
eb3853b
%else
ed16ae1
Requires:      certbot >= 1.0.0
eb3853b
%endif
eb3853b
Summary:     The nginx plugin for certbot
4206550
%{?python_provide:%python_provide python3-%{pypi_name}}
eb3853b
4206550
%description -n python3-%{pypi_name}
eb3853b
Plugin for certbot that allows for automatic configuration of nginx
eb3853b
%endif
eb3853b
eb3853b
%prep
4206550
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
4206550
%autosetup -p1 -n %{pypi_name}-%{version}
ed16ae1
# Remove bundled egg-info
ed16ae1
rm -rf %{pypi_name}.egg-info
eb3853b
eb3853b
%build
4ecfbf6
%if %{with python2}
eb3853b
%{py2_build}
4ecfbf6
%endif
eb3853b
%if %{with python3}
eb3853b
%py3_build
eb3853b
%endif
eb3853b
eb3853b
%check
4ecfbf6
%if %{with python2}
5ee93bd
(cd build/lib && %{__python2} ../../setup.py test)
4ecfbf6
%endif
eb3853b
%if %{with python3}
eb3853b
%{__python3} setup.py test
eb3853b
%endif
eb3853b
eb3853b
eb3853b
%install
4ecfbf6
%if %{with python2}
eb3853b
%{py2_install}
4ecfbf6
%endif
eb3853b
%if %{with python3}
eb3853b
%py3_install
eb3853b
%endif
eb3853b
4ecfbf6
%if %{with python2}
4206550
%files -n python2-%{pypi_name}
eb3853b
%license LICENSE.txt
eb3853b
%doc README.rst
eb3853b
%{python2_sitelib}/certbot_nginx
eb3853b
%exclude %{python2_sitelib}/certbot_nginx/tests
eb3853b
%{python2_sitelib}/certbot_nginx-%{version}*.egg-info
4ecfbf6
%endif
eb3853b
eb3853b
%if %{with python3}
4206550
%files -n python3-%{pypi_name}
eb3853b
%license LICENSE.txt
eb3853b
%doc README.rst
eb3853b
%{python3_sitelib}/certbot_nginx
eb3853b
%exclude %{python3_sitelib}/certbot_nginx/tests
eb3853b
%{python3_sitelib}/certbot_nginx-%{version}*.egg-info
eb3853b
%endif
eb3853b
eb3853b
%changelog
657a8c7
* Fri Feb 07 2020 Felix Schwarz <fschwarz@fedoraproject.org> - 1.2.0-1
657a8c7
- Update to 1.2.0 (#1791086)
657a8c7
abcf7ef
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
abcf7ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
abcf7ef
ed16ae1
* Thu Dec 05 2019 Eli Young <elyscape@gmail.com> - 1.0.0-1
ed16ae1
- Update to 1.0.0 (#1769120)
ed16ae1
4206550
* Wed Dec 04 2019 Eli Young <elyscape@gmail.com> - 0.39.0-2
4206550
- Verify source OpenPGP signature
4206550
211b363
* Tue Oct 01 2019 Eli Young <elyscape@gmail.com> - 0.39.0-1
211b363
- Update to 0.39.0 (#1757588)
211b363
fb4a0a0
* Tue Sep 10 2019 Eli Young <elyscape@gmail.com> - 0.38.0-1
fb4a0a0
- Update to 0.38.0 (#1748627)
fb4a0a0
6b4c930
* Mon Aug 26 2019 Eli Young <elyscape@gmail.com> - 0.37.2-1
6b4c930
- Update to 0.37.2 (#1742593)
6b4c930
8938ff1
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.36.0-3
8938ff1
- Rebuilt for Python 3.8
8938ff1
9500c51
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.36.0-2
9500c51
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9500c51
357b61b
* Fri Jul 19 2019 Eli Young <elyscape@gmail.com> - 0.36.0-1
357b61b
- Update to 0.36.0
357b61b
82149e1
* Fri Jun 21 2019 Eli Young <elyscape@gmail.com> - 0.35.1-1
82149e1
- Update to 0.35.1 (#1717693)
82149e1
5ee93bd
* Tue May 28 2019 Eli Young <elyscape@gmail.com> - 0.34.2-1
5ee93bd
- Update to 0.34.2 (#1686200)
5ee93bd
27b96b0
* Fri Feb 08 2019 Eli Young <elyscape@gmail.com> - 0.31.0-1
27b96b0
- Update to 0.31.0 (#1673775)
27b96b0
75ad2c9
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.30.2-2
75ad2c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
75ad2c9
034a32b
* Mon Jan 28 2019 Eli Young <elyscape@gmail.com> - 0.30.2-1
034a32b
- Update to 0.30.2 (#1669329)
034a32b
a366c2d
* Tue Dec 11 2018 Eli Young <elyscape@gmail.com> - 0.29.1-1
a366c2d
- Update to 0.29.1
4ecfbf6
- Remove Python 2 package in Fedora 30+ (#1654016)
a366c2d
86d3c55
* Wed Nov 14 2018 Eli Young <elyscape@gmail.com> - 0.28.0-1
86d3c55
- Update to 0.28.0
86d3c55
7d6c53e
* Mon Sep 10 2018 Eli Young <elyscape@gmail.com> - 0.27.1-1
7d6c53e
- Update to 0.27.1 (#1627585)
7d6c53e
becd468
* Tue Jul 17 2018 Eli Young <elyscape@gmail.com> - 0.26.1-1
becd468
- Update to 0.26.1 (#1600304)
becd468
cc9ecd2
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.25.1-3
cc9ecd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
cc9ecd2
a9328f1
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.25.1-2
a9328f1
- Rebuilt for Python 3.7
a9328f1
8198f54
* Wed Jun 13 2018 Eli Young <elyscape@gmail.com> - 0.25.1-1
8198f54
- Update to 0.25.1 (#1591043)
8198f54
22aa3bc
* Tue Jun 12 2018 Eli Young <elyscape@gmail.com> - 0.25.0-2
22aa3bc
- Add requirement on python-acme >= 0.25.0 (upstream #6096)
22aa3bc
e187264
* Thu Jun 07 2018 Eli Young <elyscape@gmail.com> - 0.25.0-1
e187264
- Update to 0.25.0 (#1588231)
e187264
3a28103
* Wed May 02 2018 Eli Young <elyscape@gmail.com> - 0.24.0-1
3a28103
- Update to 0.24.0 (#1574150)
3a28103
c4e2202
* Thu Apr 05 2018 Eli Young <elyscape@gmail.com> - 0.23.0-1
c4e2202
- Update to 0.23.0 (#1563911)
c4e2202
436e6fd
* Tue Mar 20 2018 Eli Young <elyscape@gmail.com> - 0.22.2-1
436e6fd
- Update to 0.22.2 (#1558283)
436e6fd
9d67505
* Sat Mar 10 2018 Eli Young <elyscape@gmail.com> - 0.22.0-1
9d67505
- Update to 0.22.0 (#1552956)
9d67505
8afa3eb
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.21.1-2
8afa3eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
8afa3eb
bfabe2a
* Fri Feb 02 2018 Eli Young <elyscape@gmail.com> - 0.21.1-1
bfabe2a
- Update to 0.21.1 (#1535998)
bfabe2a
ddcf60e
* Wed Dec 20 2017 Eli Young <elyscape@gmail.com> - 0.20.0-1
ddcf60e
- Update to 0.20.0
ddcf60e
36915b1
* Fri Oct 06 2017 Eli Young <elyscape@gmail.com> - 0.19.0-1
36915b1
- Update to 0.19.0 (bz#1499370)
36915b1
58fb4a8
* Fri Oct 06 2017 Eli Young <elyscape@gmail.com> - 0.18.2-2
58fb4a8
- Fix provides (bz#1497315)
58fb4a8
d364ccc
* Fri Sep 22 2017 Nick Bebout <nb@fedoraproject.org> - 0.18.2-1
d364ccc
- Update to 0.18.2
d364ccc
39c1e9c
* Mon Sep 11 2017 Nick Bebout <nb@fedoraproject.org> - 0.18.1-1
39c1e9c
- Update to 0.18.1
39c1e9c
07aebb3
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.1-2
07aebb3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
07aebb3
eb3853b
* Wed May 17 2017 James Hogarth <james.hogarth@gmail.com> - 0.14.1-1
eb3853b
- Update to 0.14.1
eb3853b
eb3853b
* Fri May 12 2017 James Hogarth <james.hogarth@gmail.com> - 0.13.0-1
eb3853b
- Update to 0.14.0
eb3853b
- Remove the tests directory from binary rpm
eb3853b
eb3853b
* Fri Apr 21 2017 James Hogarth <james.hogarth@gmail.com> - 0.13.0-1
eb3853b
- Initial packaging of the plugin