4 %bcond_with doc # build doc
5 %bcond_with tests # do perform tests (pulls extra dependencies from network)
6 %bcond_without python3 # build CPython 3.x ACME module
8 Summary: Certbot - EFF's tool to obtain certs from Let's Encrypt
13 Group: Applications/Networking
14 Source0: https://github.com/certbot/certbot/archive/v%{version}/%{name}-%{version}.tar.gz
15 # Source0-md5: 23920103accbed8adc6e7e30b14581e2
16 URL: https://certbot.eff.org/
17 BuildRequires: python-setuptools
18 BuildRequires: rpm-pythonprov
19 BuildRequires: rpmbuild(macros) >= 1.713
21 BuildRequires: python-repoze.sphinx.autointerface
22 BuildRequires: sphinx-pdg
25 BuildRequires: Zope-Interface
26 BuildRequires: python-mock
27 BuildRequires: python-six
30 BuildRequires: python3-setuptools
32 Obsoletes: letsencrypt
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 Certbot is part of EFF's effort to encrypt the entire Internet. Secure
38 communication over the Web relies on HTTPS, which requires the use of
39 a digital certificate that lets browsers verify the identify of web
40 servers (e.g., is that really google.com?). Web servers obtain their
41 certificates from trusted third parties called certificate authorities
42 (CAs). Certbot is an easy-to-use client that fetches a certificate
43 from Let's Encrypt - an open certificate authority launched by the
44 EFF, Mozilla, and others - and deploys it to a web server.
46 %package -n python-acme
47 Summary: Python library for the ACME protocol
48 Group: Libraries/Python
49 Obsoletes: python-acme-doc < 0.9.3
51 %description -n python-acme
52 Python 2 library for use of the Automatic Certificate Management
53 Environment protocol as defined by the IETF. It's used by the Let's
56 %package -n python3-acme
57 Summary: Python library for the ACME protocol
58 Group: Libraries/Python
60 %description -n python3-acme
61 Python 3 library for use of the Automatic Certificate Management
62 Environment protocol as defined by the IETF. It's used by the Let's
69 %py_build %{?with_tests:test}
74 rm -r _build/html/_sources
78 %py_build %{?with_tests:test}
81 %py3_build %{?with_tests:test}
87 rm -rf _build/html/_sources
92 rm -rf $RPM_BUILD_ROOT
93 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/var/log,/var/lib}/letsencrypt
99 # python3 first, to have Python 2 /usr/bin/jws
111 rm -rf $RPM_BUILD_ROOT
114 %defattr(644,root,root,755)
115 %doc {CHANGES,README}.rst CONTRIBUTING.md docs/*.txt
117 %doc docs/_build/html/*
119 %doc docs/*.rst docs/api docs/man
121 %dir %{_sysconfdir}/letsencrypt
122 %dir /var/log/letsencrypt
123 %dir /var/lib/letsencrypt
124 %attr(755,root,root) %{_bindir}/certbot
125 %{py_sitescriptdir}/certbot
126 %{py_sitescriptdir}/certbot-%{version}*-py*.egg-info
128 %files -n python-acme
129 %defattr(644,root,root,755)
132 %doc acme/docs/_build/html/*
134 %doc acme/docs/*.rst acme/docs/api acme/docs/man
136 %attr(755,root,root) %{_bindir}/jws
137 %{py_sitescriptdir}/acme
138 %{py_sitescriptdir}/acme-%{version}*-py*.egg-info
140 %files -n python3-acme
141 %defattr(644,root,root,755)
144 %doc acme/docs/_build/html/*
146 %doc acme/docs/*.rst acme/docs/api acme/docs/man
148 %{py3_sitescriptdir}/acme
149 %{py3_sitescriptdir}/acme-%{version}*-py*.egg-info