4 %bcond_without doc # don't build doc
5 %bcond_without tests # do not perform "make test"
7 Summary: Let's Encrypt client
12 Group: Applications/Networking
13 Source0: https://github.com/letsencrypt/letsencrypt/archive/v%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5: eb1208bcf5c33a6f030da9419718bf6b
15 URL: https://letsencrypt.org/
16 BuildRequires: python-modules
17 BuildRequires: python-setuptools
18 BuildRequires: rpm-pythonprov
19 BuildRequires: rpmbuild(macros) >= 1.612
21 BuildRequires: python-mock
22 BuildRequires: python-pythondialog
23 BuildRequires: python-zope.component
24 BuildRequires: python-zope.interface
27 BuildRequires: python-repoze.sphinx.autointerfac
28 BuildRequires: sphinx-pdg
30 Requires: python-cryptography
31 Requires: python-modules
32 Requires: python-pyOpenSSL
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 The Let's Encrypt Client is a tool to automatically receive and
39 install X.509 certificates to enable TLS on servers. The client will
40 interoperate with the Let's Encrypt CA which will be issuing
41 browser-trusted certificates for free.
47 %{__python} setup.py build %{?with_tests:test}
52 rm -r _build/html/_sources
56 rm -rf $RPM_BUILD_ROOT
57 %{__python} setup.py \
59 install --skip-build \
61 --root=$RPM_BUILD_ROOT
66 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/letsencrypt/tests
67 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/letsencrypt/plugins/*_test.py*
70 rm -rf $RPM_BUILD_ROOT
73 %defattr(644,root,root,755)
74 %doc {CHANGES,README}.rst CONTRIBUTING.md %{?with_doc:docs/_build/html/*}
75 %attr(755,root,root) %{_bindir}/letsencrypt
76 %attr(755,root,root) %{_bindir}/letsencrypt-renewer
77 %{py_sitescriptdir}/letsencrypt
78 %{py_sitescriptdir}/letsencrypt-%{version}*-py*.egg-info