]>
Commit | Line | Data |
---|---|---|
8a8ce788 JK |
1 | # |
2 | # Conditional build: | |
bf621c33 | 3 | %bcond_without doc # build doc |
8a8ce788 | 4 | %bcond_with tests # do perform tests (pulls extra dependencies from network) |
8a8ce788 JK |
5 | |
6 | Summary: Certbot - EFF's tool to obtain certs from Let's Encrypt | |
7 | Name: certbot | |
c0f3d0a6 | 8 | Version: 1.31.0 |
fba14f08 | 9 | Release: 1 |
8db87f51 | 10 | License: Apache v2.0 |
8a8ce788 JK |
11 | Group: Applications/Networking |
12 | Source0: https://github.com/certbot/certbot/archive/v%{version}/%{name}-%{version}.tar.gz | |
c0f3d0a6 | 13 | # Source0-md5: 8e1da9cfc9441eebc96224c0a0c43982 |
8a8ce788 | 14 | URL: https://certbot.eff.org/ |
bf621c33 | 15 | BuildRequires: python3-setuptools |
8a8ce788 JK |
16 | BuildRequires: rpm-pythonprov |
17 | BuildRequires: rpmbuild(macros) >= 1.713 | |
18 | %if %{with doc} | |
bf621c33 JR |
19 | BuildRequires: python3-sphinx_rtd_theme |
20 | BuildRequires: sphinx-pdg >= 4.5.0 | |
8a8ce788 JK |
21 | %endif |
22 | %if %{with tests} | |
23 | BuildRequires: Zope-Interface | |
bf621c33 JR |
24 | BuildRequires: python3-mock |
25 | BuildRequires: python3-six | |
8a8ce788 | 26 | %endif |
8a8ce788 | 27 | BuildRequires: python3-setuptools |
bf621c33 | 28 | Requires: python3-acme >= %{version} |
547754b6 | 29 | Requires: python3-zope.component >= 4.4.1 |
30295a40 | 30 | Requires: python3-ndg-httpsclient |
8a8ce788 JK |
31 | Obsoletes: letsencrypt |
32 | BuildArch: noarch | |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %description | |
36 | Certbot is part of EFF's effort to encrypt the entire Internet. Secure | |
37 | communication over the Web relies on HTTPS, which requires the use of | |
38 | a digital certificate that lets browsers verify the identify of web | |
39 | servers (e.g., is that really google.com?). Web servers obtain their | |
40 | certificates from trusted third parties called certificate authorities | |
41 | (CAs). Certbot is an easy-to-use client that fetches a certificate | |
d82cbddc ER |
42 | from Let's Encrypt - an open certificate authority launched by the |
43 | EFF, Mozilla, and others - and deploys it to a web server. | |
8a8ce788 | 44 | |
8a8ce788 JK |
45 | %prep |
46 | %setup -q | |
47 | ||
48 | %build | |
bf621c33 | 49 | cd certbot |
8a8ce788 | 50 | %py3_build %{?with_tests:test} |
8a8ce788 JK |
51 | |
52 | %if %{with doc} | |
bf621c33 JR |
53 | %{__make} -C docs html |
54 | %{__rm} -r docs/_build/html/_sources | |
8a8ce788 | 55 | %endif |
8a8ce788 JK |
56 | |
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
8a8ce788 JK |
59 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},/var/log,/var/lib}/letsencrypt |
60 | ||
bf621c33 | 61 | cd certbot |
8a8ce788 | 62 | %py3_install |
8a8ce788 JK |
63 | |
64 | %clean | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %files | |
68 | %defattr(644,root,root,755) | |
bf621c33 | 69 | %doc README.rst CHANGELOG.md CONTRIBUTING.md certbot/docs/*.txt |
8a8ce788 | 70 | %if %{with doc} |
bf621c33 | 71 | %doc certbot/docs/_build/html/* |
8a8ce788 | 72 | %else |
bf621c33 | 73 | %doc certbot/docs/*.rst certbot/docs/api certbot/docs/man |
8a8ce788 | 74 | %endif |
3f310c0c ER |
75 | %dir %{_sysconfdir}/letsencrypt |
76 | %dir /var/log/letsencrypt | |
77 | %dir /var/lib/letsencrypt | |
8a8ce788 | 78 | %attr(755,root,root) %{_bindir}/certbot |
547754b6 JK |
79 | %{py3_sitescriptdir}/certbot |
80 | %{py3_sitescriptdir}/certbot-%{version}*-py*.egg-info |