blob: 3b9b1e67b88fd6b742b997ea33d2cf612710bf6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
|
Name: python-certbot
Version: 3.1.0
Release: 1
Summary: ACME client
License: MIT and Apache-2.0
URL: https://github.com/certbot/certbot
Source0: https://github.com/certbot/certbot/archive/refs/tags/v%{version}.tar.gz
Source10: certbot-renew-systemd.service
Source11: certbot-renew-systemd.timer
Source12: certbot-sysconfig-certbot
Source13: certbot-cli.ini
Source15: certbot.logrotate
BuildArch: noarch
%description
The python3 libraries to interface with certbot.
%package -n certbot
Summary: A free, automated certificate authority client
Requires: python3-certbot = %{version}-%{release}
%{?systemd_requires}
%description -n certbot
certbot is a free, automated certificate authority that aims
to lower the barriers to entry for encrypting all HTTP traffic on the internet.
%package -n python3-certbot
Summary: ACME client
Provides: python-certbot = %{version}-%{release}
BuildRequires: python3-devel >= 3.9
BuildRequires: python3-setuptools
Requires: python3-acme = %{version}-%{release}
Requires: python3-ConfigArgParse
Requires: python3-configobj
Requires: python3-cryptography
Requires: python3-distro
Requires: python3-josepy
Requires: python-parsedatetime
Requires: python3-pyrfc3339
Requires: python3-pytz
Requires: python3-zope-component
Requires: python3-zope-interface
%description -n python3-certbot
The python3 libraries to interface with certbot
%package -n python3-acme
Summary:ACME protocol implementation in Python
Provides:python-acme = %{version}-%{release}
BuildRequires: python3-devel >= 3.9
BuildRequires: python3-setuptools
%description -n python3-acme
Python libraries implementing the Automatic Certificate Management Environment (ACME)protocol.it is used by the Let's Encrypt project.
%package -n python3-certbot-apache
Summary: The apache plugin for certbot
Requires: mod_ssl
Requires: python3-acme = %{version}-%{release}
Requires: python3-certbot = %{version}-%{release}
Provides: certbot-apache = %{version}-%{release}
%description -n python3-certbot-apache
Plugin for certbot that allows for automatic configuration of apache
%package -n python3-certbot-nginx
Summary: The nginx plugin for certbot
Provides: certbot-nginx = %{version}-%{release}
Requires: python3-acme = %{version}-%{release}
Requires: python3-certbot = %{version}-%{release}
%description -n python3-certbot-nginx
Plugin for certbot that allows for automatic configuration of ngnix
%package help
Summary: Development documents and examples for certbot
Provides: python3-certbot-doc = %{version}-%{release}
%description help
The python3 libraries to interface with certbot
%prep
%autosetup -n certbot-%{version} -p1
%build
for module in acme certbot certbot-apache certbot-nginx
do
pushd $module
%py3_build
popd
done
%install
for module in acme certbot certbot-apache certbot-nginx
do
pushd $module
%py3_install
popd
done
mv %{buildroot}%{_bindir}/certbot{,-3}
ln -s certbot-3 %{buildroot}%{_bindir}/certbot
install -d -m755 %{buildroot}/%{_pkgdocdir}
cd ./certbot
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}/certbot; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}/certbot; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}/certbot; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}/certbot; fi
cd ./../acme
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}/acme; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}/acme; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}/acme; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}/acme; fi
install -Dm 0644 --preserve-timestamps %{S:10} %{buildroot}%{_unitdir}/certbot-renew.service
install -Dm 0644 --preserve-timestamps %{S:11} %{buildroot}%{_unitdir}/certbot-renew.timer
install -Dm 0644 --preserve-timestamps %{S:12} %{buildroot}%{_sysconfdir}/sysconfig/certbot
install -Dm 0644 --preserve-timestamps %{S:13} %{buildroot}%{_sysconfdir}/letsencrypt/cli.ini
install -Dm 0644 --preserve-timestamps %{S:15} %{buildroot}%{_sysconfdir}/logrotate.d/certbot
# project uses old letsencrypt dir for compatibility
install -dm 0755 %{buildroot}%{_sysconfdir}/letsencrypt
install -dm 0755 %{buildroot}%{_sharedstatedir}/letsencrypt
install -dm 0755 %{buildroot}%{_localstatedir}/log/letsencrypt
%post -n certbot
%systemd_post certbot-renew.timer
# Remind users to start certbot-renew.timer if they need certbot to automatically renew certs
if [ "$1" -eq 1 ] ; then
echo ""
echo "Certbot auto renewal timer is not started by default."
echo "Run 'systemctl start certbot-renew.timer' to enable automatic renewals."
fi
%preun -n certbot
%systemd_preun certbot-renew.timer
%postun -n certbot
%systemd_postun certbot-renew.timer
%files -n certbot
%license LICENSE.txt
%doc certbot/README.rst
%{_bindir}/certbot
%dir %{_sysconfdir}/letsencrypt
%dir %{_sharedstatedir}/letsencrypt
%dir %{_localstatedir}/log/letsencrypt
%config(noreplace) %{_sysconfdir}/letsencrypt/cli.ini
%config(noreplace) %{_sysconfdir}/sysconfig/certbot
%config(noreplace) %{_sysconfdir}/logrotate.d/certbot
%{_unitdir}/certbot-renew.service
%{_unitdir}/certbot-renew.timer
%files -n python3-certbot
%license certbot/LICENSE.txt
%doc certbot/README.rst
%{python3_sitelib}/certbot
%{python3_sitelib}/certbot-%{version}-py%{python3_version}.egg-info
%{_bindir}/certbot-3
%files help
%{_docdir}/*
%files -n python3-acme
%license acme/LICENSE.txt
%doc acme/README.rst
%{python3_sitelib}/acme
%{python3_sitelib}/acme-%{version}-py%{python3_version}.egg-info
%files -n python3-certbot-apache
%license certbot-apache/LICENSE.txt
%doc certbot-apache/README.rst
%{python3_sitelib}/certbot_apache/
%{python3_sitelib}/certbot_apache-%{version}-py%{python3_version}.egg-info
%files -n python3-certbot-nginx
%license certbot-nginx/LICENSE.txt
%doc certbot-nginx/README.rst
%{python3_sitelib}/certbot_nginx/
%{python3_sitelib}/certbot_nginx-%{version}-py%{python3_version}.egg-info
%changelog
* Wed Jan 22 2025 Funda Wang <fundawang@yeah.net> - 3.1.0-1
- update to 3.1.0
* Python 3.8 support was removed.
* Runtime dependency on setuptools has been dropped from all Certbot components.
* Sat Jan 04 2025 Funda Wang <fundawang@yeah.net> - 3.0.1-1
- update to 3.0.1
* The update_symlinks command was removed.
* The `csr_dir` and `key_dir` attributes on
`certbot.configuration.NamespaceConfig` were removed.
* The `--manual-public-ip-logging-ok` command line flag was removed.
* The `--dns-route53-propagation-seconds` command line flag was removed.
* The `certbot_dns_route53.authenticator` module has been removed.
* Support for Python 3.8 was deprecated
* Tue Oct 01 2024 Funda Wang <fundawang@yeah.net> - 2.11.0-1
- Update package to version 2.11.0
- add apache and nginx module
- add systemd timer and logrotate conf
* Fri Feb 23 2024 chendexi <chendexi@kylinos.cn> - 2.9.0-1
- Update package to version 2.9.0
* Tue Nov 21 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 2.7.4-1
- Update package to version 2.7.4
* Wed Jul 05 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 2.6.0-1
- Update package to version 2.6.0
* Fri Apr 07 2023 wangkai <13474090681@163.com> - 2.5.0-1
- Update to 2.5.0
* Fri May 20 2022 liukuo <liukuo@kylinos.cn> - 1.16.0-4
- License compliance rectification
* Fri May 06 2022 yangping <yangping69@h-partners.com> - 1.16.0-3
- Fix build error caused by py3.10+ wildcard
* Thu Aug 05 2021 xu_ping <xuping33@huawei.com> - 1.16.0-2
- fix sync code to openEuler-20.03-LTS-SP1 %file error.
* Mon Jun 28 2021 Python_Bot <Python_Bot@openeuler.org> - 1.16.0-1
- Package Spec generated
|