3 %bcond_with doc # build doc
4 %bcond_with tests # do perform tests (pulls extra dependencies from network)
5 %bcond_without python3 # build CPython 3.x ACME module
7 Summary: Certbot - EFF's tool to obtain certs from Let's Encrypt
12 Group: Applications/Networking
13 Source0: https://github.com/certbot/certbot/archive/v%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5: 6b187c9b843c715b5486ac4b212316cd
15 URL: https://certbot.eff.org/
16 BuildRequires: python-setuptools
17 BuildRequires: rpm-pythonprov
18 BuildRequires: rpmbuild(macros) >= 1.713
20 BuildRequires: python-repoze.sphinx.autointerface
21 BuildRequires: sphinx-pdg
24 BuildRequires: Zope-Interface
25 BuildRequires: python-mock
26 BuildRequires: python-six
29 BuildRequires: python3-setuptools
30 Requires: python3-zope.component >= 4.4.1
31 Requires: python3-ndg-httpsclient
33 Requires: python-zope.component >= 4.4.1
34 Requires: python-ndg-httpsclient
36 Obsoletes: letsencrypt
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 Certbot is part of EFF's effort to encrypt the entire Internet. Secure
42 communication over the Web relies on HTTPS, which requires the use of
43 a digital certificate that lets browsers verify the identify of web
44 servers (e.g., is that really google.com?). Web servers obtain their
45 certificates from trusted third parties called certificate authorities
46 (CAs). Certbot is an easy-to-use client that fetches a certificate
47 from Let's Encrypt - an open certificate authority launched by the
48 EFF, Mozilla, and others - and deploys it to a web server.
50 %package -n python-acme
51 Summary: Python library for the ACME protocol
52 Group: Libraries/Python
53 Obsoletes: python-acme-doc < 0.9.3
55 %description -n python-acme
56 Python 2 library for use of the Automatic Certificate Management
57 Environment protocol as defined by the IETF. It's used by the Let's
60 %package -n python3-acme
61 Summary: Python library for the ACME protocol
62 Group: Libraries/Python
64 %description -n python3-acme
65 Python 3 library for use of the Automatic Certificate Management
66 Environment protocol as defined by the IETF. It's used by the Let's
73 %py_build %{?with_tests:test}
78 rm -r _build/html/_sources
82 %py_build %{?with_tests:test}
85 %py3_build %{?with_tests:test}
91 rm -rf _build/html/_sources
96 rm -rf $RPM_BUILD_ROOT
97 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/var/log,/var/lib}/letsencrypt
117 rm -rf $RPM_BUILD_ROOT
120 %defattr(644,root,root,755)
121 %doc README.rst CHANGELOG.md CONTRIBUTING.md docs/*.txt docs/*.rst
123 %doc docs/_build/html/*
125 %doc docs/*.rst docs/api docs/man
127 %dir %{_sysconfdir}/letsencrypt
128 %dir /var/log/letsencrypt
129 %dir /var/lib/letsencrypt
130 %attr(755,root,root) %{_bindir}/certbot
132 %{py3_sitescriptdir}/certbot
133 %{py3_sitescriptdir}/certbot-%{version}*-py*.egg-info
135 %{py_sitescriptdir}/certbot
136 %{py_sitescriptdir}/certbot-%{version}*-py*.egg-info
139 %files -n python-acme
140 %defattr(644,root,root,755)
143 %doc acme/docs/_build/html/*
145 %doc acme/docs/*.rst acme/docs/api acme/docs/man
147 %{py_sitescriptdir}/acme
148 %{py_sitescriptdir}/acme-%{version}*-py*.egg-info
150 %files -n python3-acme
151 %defattr(644,root,root,755)
154 %doc acme/docs/_build/html/*
156 %doc acme/docs/*.rst acme/docs/api acme/docs/man
158 %{py3_sitescriptdir}/acme
159 %{py3_sitescriptdir}/acme-%{version}*-py*.egg-info