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: 62717533ca2def2577a7b64954d775fd
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
32 Requires: python-zope.component >= 4.4.1
34 Obsoletes: letsencrypt
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 Certbot is part of EFF's effort to encrypt the entire Internet. Secure
40 communication over the Web relies on HTTPS, which requires the use of
41 a digital certificate that lets browsers verify the identify of web
42 servers (e.g., is that really google.com?). Web servers obtain their
43 certificates from trusted third parties called certificate authorities
44 (CAs). Certbot is an easy-to-use client that fetches a certificate
45 from Let's Encrypt - an open certificate authority launched by the
46 EFF, Mozilla, and others - and deploys it to a web server.
48 %package -n python-acme
49 Summary: Python library for the ACME protocol
50 Group: Libraries/Python
51 Obsoletes: python-acme-doc < 0.9.3
53 %description -n python-acme
54 Python 2 library for use of the Automatic Certificate Management
55 Environment protocol as defined by the IETF. It's used by the Let's
58 %package -n python3-acme
59 Summary: Python library for the ACME protocol
60 Group: Libraries/Python
62 %description -n python3-acme
63 Python 3 library for use of the Automatic Certificate Management
64 Environment protocol as defined by the IETF. It's used by the Let's
71 %py_build %{?with_tests:test}
76 rm -r _build/html/_sources
80 %py_build %{?with_tests:test}
83 %py3_build %{?with_tests:test}
89 rm -rf _build/html/_sources
94 rm -rf $RPM_BUILD_ROOT
95 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/var/log,/var/lib}/letsencrypt
115 rm -rf $RPM_BUILD_ROOT
118 %defattr(644,root,root,755)
119 %doc {CHANGES,README}.rst CONTRIBUTING.md docs/*.txt docs/*.rst
121 %doc docs/_build/html/*
123 %doc docs/*.rst docs/api docs/man
125 %dir %{_sysconfdir}/letsencrypt
126 %dir /var/log/letsencrypt
127 %dir /var/lib/letsencrypt
128 %attr(755,root,root) %{_bindir}/certbot
130 %{py3_sitescriptdir}/certbot
131 %{py3_sitescriptdir}/certbot-%{version}*-py*.egg-info
133 %{py_sitescriptdir}/certbot
134 %{py_sitescriptdir}/certbot-%{version}*-py*.egg-info
137 %files -n python-acme
138 %defattr(644,root,root,755)
141 %doc acme/docs/_build/html/*
143 %doc acme/docs/*.rst acme/docs/api acme/docs/man
145 %{py_sitescriptdir}/acme
146 %{py_sitescriptdir}/acme-%{version}*-py*.egg-info
148 %files -n python3-acme
149 %defattr(644,root,root,755)
152 %doc acme/docs/_build/html/*
154 %doc acme/docs/*.rst acme/docs/api acme/docs/man
156 %{py3_sitescriptdir}/acme
157 %{py3_sitescriptdir}/acme-%{version}*-py*.egg-info