diff --git a/README.md b/README.md index fd88075..150531b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # certbot +The Let's Encrypt Client is a fully-featured, extensible client for the Let's Encrypt CA (or any other CA that speaks the ACME protocol) that can automate the tasks of obtaining certificates and configuring webservers to use them. + diff --git a/certbot.spec b/certbot.spec new file mode 100644 index 0000000..1f6e3a0 --- /dev/null +++ b/certbot.spec @@ -0,0 +1,124 @@ +Name: certbot +Version: 0.9.3 +Release: 2mamba +Summary: A fully-featured, extensible client for the Let's Encrypt CA +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://letsencrypt.org +## GITSOURCE https://github.com/letsencrypt/letsencrypt.git v0.1.0 +Source: https://github.com/certbot/certbot.git/v%{version}/certbot-%{version}.tar.bz2 +#Source: https://github.com/letsencrypt/letsencrypt.git/v%{version}/letsencrypt-%{version}.tar.bz2 +Patch0: python-letsencrypt-0.1.0-use-configargparse.patch +Patch1: letsencrypt-0.1.1-acme-0.1.1.patch +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython-devel +## AUTOBUILDREQ-END +Requires: python >= %python_version +Requires: python-mock +Requires: python-zope-component +Requires: python-zope-interface +Requires: python-requests +Requires: python-six +Requires: python-pythondialog +Requires: python-pyrfc3339 +Requires: python-pyOpenSSL +Requires: python-parsedatetime +Requires: python-cryptography +Requires: python-configargparse +Requires: python-acme == %{version} +Requires: python-tz +Requires: python-psutil +Requires: python-configobj +Requires: python-setuptools +Requires: python-funcsigs >= 1.0 +Provides: letsencrypt +Obsoletes: letsencrypt +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +The Let's Encrypt Client is a fully-featured, extensible client for the Let's Encrypt CA (or any other CA that speaks the ACME protocol) that can automate the tasks of obtaining certificates and configuring webservers to use them. + +%prep +%setup -q +#% patch0 -p1 +#%patch1 -p1 + +%build +CFLAGS="%{optflags}" %{__python} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{_includedir}/python \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist + +#sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist + +install -d -m0755 %{buildroot}%{_sysconfdir}/letsencrypt +install -d -m0755 %{buildroot}%{_localstatedir}/log/letsencrypt + +install -d -m0755 %{buildroot}%{_sysconfdir}/cron.weekly +cat > %{buildroot}%{_sysconfdir}/cron.weekly/certbot << _EOF +#!/bin/bash +certbot renew +systemctl reload httpd +_EOF + +%files -f %{name}.filelist +%defattr(-,root,root) +%dir %{_sysconfdir}/letsencrypt +%attr(0755,root,root) %{_sysconfdir}/cron.weekly/certbot +%dir %{_localstatedir}/log/letsencrypt +#%{python_sitearch}/letsencrypt-%{version}-py*.egg-info/* + +%changelog +* Mon Oct 17 2016 Silvan Calarco 0.9.3-2mamba +- remove %{_bindir}/letsencrypt symlink + +* Mon Oct 17 2016 Silvan Calarco 0.9.3-1mamba +- update to 0.9.3 + +* Mon Aug 08 2016 Silvan Calarco 0.8.1-1mamba +- update to 0.8.1 + +* Wed Apr 06 2016 Automatic Build System 0.5.0-1mamba +- automatic version update by autodist + +* Fri Mar 04 2016 Automatic Build System 0.4.2-1mamba +- automatic version update by autodist + +* Tue Mar 01 2016 Automatic Build System 0.4.1-1mamba +- automatic version update by autodist + +* Sun Feb 14 2016 Automatic Build System 0.4.0-1mamba +- automatic version update by autodist + +* Thu Jan 28 2016 Automatic Build System 0.3.0-1mamba +- automatic version update by autodist + +* Sat Jan 16 2016 Silvan Calarco 0.2.0-1mamba +- update to 0.2.0 + +* Sat Dec 26 2015 Silvan Calarco 0.1.1-2mamba +- upstream patch to fix version check for python-acme + +* Wed Dec 16 2015 Automatic Build System 0.1.1-1mamba +- automatic version update by autodist + +* Sun Dec 13 2015 Silvan Calarco 0.1.0-4mamba +- require python-setuptools, not python-setuptool + +* Tue Dec 08 2015 Silvan Calarco 0.1.0-3mamba +- require python-setuptool + +* Sat Dec 05 2015 Silvan Calarco 0.1.0-2mamba +- added some missing python requires + +* Sat Dec 05 2015 Silvan Calarco 0.1.0-1mamba +- package created using the webbuild interface diff --git a/letsencrypt-0.1.1-acme-0.1.1.patch b/letsencrypt-0.1.1-acme-0.1.1.patch new file mode 100644 index 0000000..adf5f38 --- /dev/null +++ b/letsencrypt-0.1.1-acme-0.1.1.patch @@ -0,0 +1,22 @@ +From edd20a8b8d97c6b374bb30089d1b3e9103c0876b Mon Sep 17 00:00:00 2001 +From: Peter Eckersley +Date: Fri, 25 Dec 2015 11:11:03 -0800 +Subject: [PATCH] The actual 0.1.1 release + +Due to bug #1966, the previous v0.1.1 tag was missing a version change to +letsencrypt/__init__.py this commit and the v0.1.1-corrected tag are the code +that was signed and uploaded to PyPI. +--- + letsencrypt/__init__.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/letsencrypt/__init__.py b/letsencrypt/__init__.py +index 1c7815f..e011c3f 100644 +--- a/letsencrypt/__init__.py ++++ b/letsencrypt/__init__.py +@@ -1,4 +1,4 @@ + """Let's Encrypt client.""" + + # version number like 1.2.3a0, must have at least 2 parts, like 1.2 +-__version__ = '0.2.0.dev0' ++__version__ = '0.1.1' diff --git a/python-letsencrypt-0.1.0-use-configargparse.patch b/python-letsencrypt-0.1.0-use-configargparse.patch new file mode 100644 index 0000000..1a8f33d --- /dev/null +++ b/python-letsencrypt-0.1.0-use-configargparse.patch @@ -0,0 +1,12 @@ +diff -Nru letsencrypt-0.1.0.orig/letsencrypt/cli.py letsencrypt-0.1.0/letsencrypt/cli.py +--- letsencrypt-0.1.0.orig/letsencrypt/cli.py 2015-12-05 12:40:17.000000000 +0100 ++++ letsencrypt-0.1.0/letsencrypt/cli.py 2015-12-05 14:45:01.689634411 +0100 +@@ -13,7 +13,7 @@ + import time + import traceback + +-import configargparse ++from configargparse import configargparse + import OpenSSL + import zope.component + import zope.interface.exceptions