]> git.pld-linux.org Git - packages/certbot.git/blame - certbot.spec
- updated to 1.31.0
[packages/certbot.git] / certbot.spec
CommitLineData
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
6Summary: Certbot - EFF's tool to obtain certs from Let's Encrypt
7Name: certbot
c0f3d0a6 8Version: 1.31.0
fba14f08 9Release: 1
8db87f51 10License: Apache v2.0
8a8ce788
JK
11Group: Applications/Networking
12Source0: https://github.com/certbot/certbot/archive/v%{version}/%{name}-%{version}.tar.gz
c0f3d0a6 13# Source0-md5: 8e1da9cfc9441eebc96224c0a0c43982
8a8ce788 14URL: https://certbot.eff.org/
bf621c33 15BuildRequires: python3-setuptools
8a8ce788
JK
16BuildRequires: rpm-pythonprov
17BuildRequires: rpmbuild(macros) >= 1.713
18%if %{with doc}
bf621c33
JR
19BuildRequires: python3-sphinx_rtd_theme
20BuildRequires: sphinx-pdg >= 4.5.0
8a8ce788
JK
21%endif
22%if %{with tests}
23BuildRequires: Zope-Interface
bf621c33
JR
24BuildRequires: python3-mock
25BuildRequires: python3-six
8a8ce788 26%endif
8a8ce788 27BuildRequires: python3-setuptools
bf621c33 28Requires: python3-acme >= %{version}
547754b6 29Requires: python3-zope.component >= 4.4.1
30295a40 30Requires: python3-ndg-httpsclient
8a8ce788
JK
31Obsoletes: letsencrypt
32BuildArch: noarch
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35%description
36Certbot is part of EFF's effort to encrypt the entire Internet. Secure
37communication over the Web relies on HTTPS, which requires the use of
38a digital certificate that lets browsers verify the identify of web
39servers (e.g., is that really google.com?). Web servers obtain their
40certificates from trusted third parties called certificate authorities
41(CAs). Certbot is an easy-to-use client that fetches a certificate
d82cbddc
ER
42from Let's Encrypt - an open certificate authority launched by the
43EFF, Mozilla, and others - and deploys it to a web server.
8a8ce788 44
8a8ce788
JK
45%prep
46%setup -q
47
48%build
bf621c33 49cd 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
58rm -rf $RPM_BUILD_ROOT
8a8ce788
JK
59install -d $RPM_BUILD_ROOT{%{_sysconfdir},/var/log,/var/lib}/letsencrypt
60
bf621c33 61cd certbot
8a8ce788 62%py3_install
8a8ce788
JK
63
64%clean
65rm -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
This page took 0.190598 seconds and 4 git commands to generate.