]>
Commit | Line | Data |
---|---|---|
547ca217 JB |
1 | # |
2 | # Conditional build: | |
63178e7f | 3 | %bcond_without dane # libdane (DANE with DNSSEC certificate verification) |
2acfa4df | 4 | %bcond_without openssl # libgnutls-openssl compatibility library |
63178e7f JB |
5 | %bcond_without tpm # TPM support in gnutls |
6 | %bcond_without static_libs # static libraries | |
547ca217 | 7 | # |
6d7519d8 | 8 | Summary: The GNU Transport Layer Security Library |
7b093bb5 | 9 | Summary(pl.UTF-8): Biblioteka GNU TLS (Transport Layer Security) |
6d7519d8 | 10 | Name: gnutls |
73ae5843 | 11 | Version: 3.4.1 |
647abe30 | 12 | Release: 1 |
4df2ddc1 | 13 | License: LGPL v2.1+ (libgnutls), LGPL v3+ (libdane), GPL v3+ (openssl library and tools) |
6d7519d8 | 14 | Group: Libraries |
04bc0f1d | 15 | Source0: ftp://ftp.gnutls.org/gcrypt/gnutls/v3.4/%{name}-%{version}.tar.lz |
73ae5843 | 16 | # Source0-md5: bc24e873ed9186e8cf43bb316beebc9f |
bf6baa77 | 17 | Patch0: %{name}-info.patch |
4d87caea | 18 | Patch1: %{name}-link.patch |
4adb064a | 19 | URL: http://www.gnutls.org/ |
24cf4cad | 20 | BuildRequires: autoconf >= 2.61 |
63178e7f JB |
21 | BuildRequires: autogen |
22 | BuildRequires: autogen-devel | |
59d25b4c | 23 | BuildRequires: automake >= 1:1.12.2 |
f7186371 | 24 | BuildRequires: gettext-tools >= 0.18 |
63178e7f | 25 | BuildRequires: gmp-devel |
d711a6c0 | 26 | BuildRequires: gtk-doc >= 1.1 |
9d8f6e85 | 27 | BuildRequires: guile-devel >= 5:2.0 |
62c2e78b | 28 | BuildRequires: libcfg+-devel |
04bc0f1d | 29 | BuildRequires: libidn-devel >= 0.5.6 |
71cef829 | 30 | BuildRequires: libstdc++-devel |
04bc0f1d | 31 | BuildRequires: libtasn1-devel >= 4.3 |
0d6c279f | 32 | BuildRequires: libtool >= 2:2 |
2bc707dc | 33 | BuildRequires: lzip |
04bc0f1d | 34 | BuildRequires: nettle-devel >= 3.1 |
17285f2a JB |
35 | # miniopencdk is included in sources and currently maintained |
36 | # as part of gnutls, not external package | |
37 | #BuildRequires: opencdk-devel >= 0.6.6 | |
04bc0f1d | 38 | BuildRequires: p11-kit-devel >= 0.23.1 |
6c4df057 | 39 | BuildRequires: pkgconfig |
e5ea410a | 40 | BuildRequires: readline-devel |
24cf4cad | 41 | BuildRequires: rpmbuild(macros) >= 1.383 |
cf0a9984 | 42 | BuildRequires: sed >= 4.0 |
547ca217 | 43 | BuildRequires: tar >= 1:1.22 |
a7221760 | 44 | BuildRequires: texinfo >= 4.8 |
06e5a035 | 45 | %{?with_tpm:BuildRequires: trousers-devel >= 0.3.11} |
83ed044d | 46 | %{?with_dane:BuildRequires: unbound-devel} |
5a115208 | 47 | BuildRequires: zlib-devel |
dd155803 JB |
48 | Requires: %{name}-libs = %{version}-%{release} |
49 | %{?with_dane:Requires: %{name}-dane = %{version}-%{release}} | |
6d7519d8 AM |
50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
51 | ||
52 | %description | |
53 | GnuTLS is a project that aims to develop a library which provides a | |
54 | secure layer, over a reliable transport layer (ie. TCP/IP). Currently | |
55 | the gnuTLS library implements the proposed standards by the IETF's TLS | |
56 | working group. | |
57 | ||
fc7e37b3 JR |
58 | %description -l pl.UTF-8 |
59 | GnuTLS to projekt mający na celu stworzenie biblioteki udostępniającej | |
60 | powłokę bezpieczeństwa ponad powłoką transportową (np. TCP/IP). | |
6d7519d8 | 61 | Aktualnie biblioteka gnuTLS implementuje standardy proponowane przez |
fc7e37b3 | 62 | grupę roboczą IETF TLS. |
6d7519d8 | 63 | |
dd155803 JB |
64 | %package libs |
65 | Summary: GnuTLS shared libraries | |
66 | Summary(pl.UTF-8): Biblioteki współdzielone GnuTLS | |
67 | Group: Libraries | |
04bc0f1d JB |
68 | Requires: libidn >= 0.5.6 |
69 | Requires: libtasn1 >= 4.3 | |
70 | Requires: nettle >= 3.1 | |
dd155803 | 71 | #Requires: opencdk >= 0.6.6 |
04bc0f1d | 72 | Requires: p11-kit >= 0.23.1 |
8644fcf2 | 73 | %{?with_tpm:Requires: trousers-libs >= 0.3.11} |
dd155803 JB |
74 | Conflicts: gnutls < 3.2.0 |
75 | ||
76 | %description libs | |
77 | GnuTLS shared libraries. | |
78 | ||
79 | %description libs -l pl.UTF-8 | |
80 | Biblioteki współdzielone GnuTLS. | |
81 | ||
6d7519d8 AM |
82 | %package devel |
83 | Summary: Header files etc to develop gnutls applications | |
7b093bb5 | 84 | Summary(pl.UTF-8): Pliki nagłówkowe i inne do gnutls |
fdd1e702 | 85 | License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library) |
6d7519d8 | 86 | Group: Development/Libraries |
dd155803 | 87 | Requires: %{name}-libs = %{version}-%{release} |
04bc0f1d JB |
88 | Requires: libidn-devel >= 0.5.6 |
89 | Requires: libtasn1-devel >= 4.3 | |
90 | Requires: nettle-devel >= 3.1 | |
17285f2a | 91 | #Requires: opencdk-devel >= 0.6.6 |
04bc0f1d | 92 | Requires: p11-kit-devel >= 0.23.1 |
06e5a035 | 93 | %{?with_tpm:Requires: trousers-devel >= 0.3.11} |
74be7fb4 | 94 | Requires: zlib-devel |
6d7519d8 AM |
95 | |
96 | %description devel | |
97 | Header files etc to develop gnutls applications. | |
98 | ||
fc7e37b3 JR |
99 | %description devel -l pl.UTF-8 |
100 | Pliki nagłówkowe i inne do gnutls. | |
6d7519d8 AM |
101 | |
102 | %package static | |
103 | Summary: Static gnutls library | |
7b093bb5 | 104 | Summary(pl.UTF-8): Biblioteka statyczna gnutls |
fdd1e702 | 105 | License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library) |
6d7519d8 | 106 | Group: Development/Libraries |
72115ddc | 107 | Requires: %{name}-devel = %{version}-%{release} |
6d7519d8 AM |
108 | |
109 | %description static | |
110 | Static gnutls library. | |
111 | ||
fc7e37b3 | 112 | %description static -l pl.UTF-8 |
6d7519d8 AM |
113 | Biblioteka statyczna gnutls. |
114 | ||
71cef829 JB |
115 | %package c++ |
116 | Summary: libgnutlsxx - C++ interface to gnutls library | |
7b093bb5 | 117 | Summary(pl.UTF-8): libgnutlsxx - interfejs C++ do biblioteki gnutls |
24cf4cad | 118 | License: LGPL v2.1+ |
71cef829 | 119 | Group: Libraries |
dd155803 | 120 | Requires: %{name}-libs = %{version}-%{release} |
71cef829 JB |
121 | |
122 | %description c++ | |
123 | libgnutlsxx - C++ interface to gnutls library. | |
124 | ||
fc7e37b3 | 125 | %description c++ -l pl.UTF-8 |
71cef829 JB |
126 | libgnutlsxx - interfejs C++ do biblioteki gnutls. |
127 | ||
128 | %package c++-devel | |
129 | Summary: Header files for libgnutlsxx, a C++ interface to gnutls library | |
7b093bb5 | 130 | Summary(pl.UTF-8): Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls |
24cf4cad | 131 | License: LGPL v2.1+ |
71cef829 JB |
132 | Group: Development/Libraries |
133 | Requires: %{name}-c++ = %{version}-%{release} | |
134 | Requires: %{name}-devel = %{version}-%{release} | |
135 | Requires: libstdc++-devel | |
136 | ||
137 | %description c++-devel | |
138 | Header files for libgnutlsxx, a C++ interface to gnutls library. | |
139 | ||
fc7e37b3 JR |
140 | %description c++-devel -l pl.UTF-8 |
141 | Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls. | |
71cef829 JB |
142 | |
143 | %package c++-static | |
144 | Summary: Static version of libgnutlsxx, a C++ interface to gnutls library | |
7b093bb5 | 145 | Summary(pl.UTF-8): Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls |
24cf4cad | 146 | License: LGPL v2.1+ |
71cef829 JB |
147 | Group: Development/Libraries |
148 | Requires: %{name}-c++-devel = %{version}-%{release} | |
149 | ||
150 | %description c++-static | |
151 | Static version of libgnutlsxx, a C++ interface to gnutls library. | |
152 | ||
fc7e37b3 | 153 | %description c++-static -l pl.UTF-8 |
71cef829 JB |
154 | Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls. |
155 | ||
aeb71b0b JB |
156 | %package dane |
157 | Summary: DANE security library | |
158 | Summary(pl.UTF-8): Biblioteka bezpieczeństwa DANE | |
159 | Group: Libraries | |
dd155803 | 160 | Requires: %{name}-libs = %{version}-%{release} |
aeb71b0b JB |
161 | |
162 | %description dane | |
163 | DANE security library. | |
164 | ||
165 | %description dane -l pl.UTF-8 | |
166 | Biblioteka bezpieczeństwa DANE. | |
167 | ||
168 | %package dane-devel | |
169 | Summary: Header file for DANE security library | |
170 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki bezpieczeństwa DANE | |
171 | Group: Development/Libraries | |
172 | Requires: %{name}-dane = %{version}-%{release} | |
173 | Requires: %{name}-devel = %{version}-%{release} | |
174 | Requires: unbound-devel | |
175 | ||
176 | %description dane-devel | |
177 | Header file for DANE security library. | |
178 | ||
179 | %description dane-devel -l pl.UTF-8 | |
180 | Plik nagłówkowy biblioteki bezpieczeństwa DANE. | |
181 | ||
182 | %package dane-static | |
183 | Summary: Static DANE security library | |
184 | Summary(pl.UTF-8): Statyczna biblioteka bezpieczeństwa DANE | |
185 | Group: Development/Libraries | |
186 | Requires: %{name}-dane-devel = %{version}-%{release} | |
187 | ||
188 | %description dane-static | |
189 | Static DANE security library. | |
190 | ||
191 | %description dane-static -l pl.UTF-8 | |
192 | Statyczna biblioteka bezpieczeństwa DANE. | |
193 | ||
2acfa4df JB |
194 | %package openssl |
195 | Summary: OpenSSL compatibility library for GnuTLS | |
196 | Summary(pl.UTF-8): Biblioteka zgodności z OpenSSL dla GnuTLS | |
197 | Group: Libraries | |
198 | Requires: %{name}-libs = %{version}-%{release} | |
199 | ||
200 | %description openssl | |
201 | OpenSSL compatibility library for GnuTLS. | |
202 | ||
203 | %description openssl -l pl.UTF-8 | |
204 | Biblioteka zgodności z OpenSSL dla GnuTLS. | |
205 | ||
206 | %package openssl-devel | |
207 | Summary: Header file for gnutls-openssl library | |
208 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki gnutls-openssl | |
209 | Group: Development/Libraries | |
210 | Requires: %{name}-devel = %{version}-%{release} | |
211 | Requires: %{name}-openssl = %{version}-%{release} | |
212 | ||
213 | %description openssl-devel | |
214 | Header file for gnutls-openssl library. | |
215 | ||
216 | %description openssl-devel -l pl.UTF-8 | |
217 | Plik nagłówkowy biblioteki gnutls-openssl. | |
218 | ||
219 | %package openssl-static | |
220 | Summary: Static gnutls-openssl library | |
221 | Summary(pl.UTF-8): Statyczna biblioteka gnutls-openssl | |
222 | Group: Development/Libraries | |
223 | Requires: %{name}-openssl-devel = %{version}-%{release} | |
224 | ||
225 | %description openssl-static | |
226 | Static gnutls-openssl library. | |
227 | ||
228 | %description openssl-static -l pl.UTF-8 | |
229 | Statyczna biblioteka gnutls-openssl. | |
230 | ||
3c916209 JB |
231 | %package -n guile-gnutls |
232 | Summary: Guile bindings for GnuTLS | |
233 | Summary(pl.UTF-8): Wiązania Guile do GnuTLS | |
fdd1e702 | 234 | License: LGPL v2.1+ |
3c916209 | 235 | Group: Development/Languages |
dd155803 | 236 | Requires: %{name}-libs = %{version}-%{release} |
9d8f6e85 | 237 | Requires: guile >= 5:2.0 |
3c916209 JB |
238 | |
239 | %description -n guile-gnutls | |
240 | Guile bindings for GnuTLS. | |
241 | ||
242 | %description -n guile-gnutls -l pl.UTF-8 | |
243 | Wiązania Guile do GnuTLS. | |
244 | ||
6d7519d8 | 245 | %prep |
0e82351f | 246 | %setup -q |
67b46ca6 | 247 | %patch0 -p1 |
4d87caea | 248 | %patch1 -p1 |
547ca217 JB |
249 | |
250 | %{__rm} po/stamp-po | |
6d7519d8 AM |
251 | |
252 | %build | |
2b48e80d | 253 | %{__mv} build-aux/snippet{,.save} |
5a115208 | 254 | %{__libtoolize} |
2b48e80d | 255 | %{__mv} build-aux/snippet{.save,} |
5feb96f5 | 256 | %{__aclocal} -I m4 -I gl/m4 -I src/libopts/m4 -I src/gl/m4 |
d6e4f2bd JB |
257 | %{__autoconf} |
258 | %{__autoheader} | |
259 | %{__automake} | |
6d7519d8 | 260 | %configure \ |
2acfa4df | 261 | %{?with_openssl:--enable-openssl-compatibility} \ |
41fffb0a | 262 | --disable-silent-rules \ |
63178e7f | 263 | %{?with_static_libs:--enable-static} \ |
0089fafa | 264 | --with-default-trust-store-file=/etc/certs/ca-certificates.crt \ |
06e5a035 | 265 | %{!?with_tpm:--without-tpm} |
5a115208 | 266 | |
9dc804da JB |
267 | # docs build is broken with -jN |
268 | %{__make} -j1 | |
6d7519d8 AM |
269 | |
270 | %install | |
271 | rm -rf $RPM_BUILD_ROOT | |
272 | ||
273 | %{__make} install \ | |
d711a6c0 | 274 | DESTDIR=$RPM_BUILD_ROOT |
6d7519d8 | 275 | |
fdd1e702 JB |
276 | # although libgnutls.la is obsoleted by pkg-config, there is |
277 | # .pc file missing for libgnutls-openssl, and it needs libgnutls.la | |
8e4a1eaa JB |
278 | |
279 | # guile module - dynamic only | |
63178e7f JB |
280 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.la |
281 | %if %{with static_libs} | |
282 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.a | |
283 | %endif | |
8e4a1eaa | 284 | |
63178e7f | 285 | %{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir |
3c916209 | 286 | |
547ca217 | 287 | %find_lang %{name} |
b5ab22ee | 288 | |
6d7519d8 AM |
289 | %clean |
290 | rm -rf $RPM_BUILD_ROOT | |
291 | ||
10899c2c | 292 | %post |
10899c2c JB |
293 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 |
294 | ||
295 | %postun | |
10899c2c | 296 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 |
0522b080 | 297 | |
dd155803 JB |
298 | %post libs -p /sbin/ldconfig |
299 | %postun libs -p /sbin/ldconfig | |
300 | ||
71cef829 JB |
301 | %post c++ -p /sbin/ldconfig |
302 | %postun c++ -p /sbin/ldconfig | |
303 | ||
2acfa4df JB |
304 | %post dane -p /sbin/ldconfig |
305 | %postun dane -p /sbin/ldconfig | |
306 | ||
307 | %post openssl -p /sbin/ldconfig | |
308 | %postun openssl -p /sbin/ldconfig | |
309 | ||
3c916209 JB |
310 | %post -n guile-gnutls -p /sbin/ldconfig |
311 | %postun -n guile-gnutls -p /sbin/ldconfig | |
312 | ||
547ca217 | 313 | %files -f %{name}.lang |
6d7519d8 | 314 | %defattr(644,root,root,755) |
07a67478 | 315 | %doc AUTHORS ChangeLog NEWS README THANKS |
d191db7f | 316 | %attr(755,root,root) %{_bindir}/certtool |
56a7698b | 317 | %attr(755,root,root) %{_bindir}/crywrap |
71cef829 | 318 | %attr(755,root,root) %{_bindir}/gnutls-* |
9dc804da | 319 | %attr(755,root,root) %{_bindir}/ocsptool |
41fffb0a | 320 | %attr(755,root,root) %{_bindir}/p11tool |
2637a2e1 | 321 | %attr(755,root,root) %{_bindir}/psktool |
62c2e78b | 322 | %attr(755,root,root) %{_bindir}/srptool |
cc933e6a | 323 | %{?with_tpm:%attr(755,root,root) %{_bindir}/tpmtool} |
584b5346 | 324 | %{_mandir}/man1/certtool.1* |
71cef829 | 325 | %{_mandir}/man1/gnutls-*.1* |
f2e1d83e | 326 | %{_mandir}/man1/ocsptool.1* |
41fffb0a | 327 | %{_mandir}/man1/p11tool.1* |
2637a2e1 | 328 | %{_mandir}/man1/psktool.1* |
62c2e78b | 329 | %{_mandir}/man1/srptool.1* |
0089fafa | 330 | %{_mandir}/man1/tpmtool.1* |
71cef829 | 331 | %{_infodir}/gnutls.info* |
24cf4cad | 332 | %{_infodir}/gnutls-*.png |
41fffb0a | 333 | %{_infodir}/pkcs11-vision.png |
6d7519d8 | 334 | |
dd155803 JB |
335 | %files libs |
336 | %defattr(644,root,root,755) | |
337 | %attr(755,root,root) %{_libdir}/libgnutls.so.*.*.* | |
04bc0f1d | 338 | %attr(755,root,root) %ghost %{_libdir}/libgnutls.so.30 |
dd155803 | 339 | |
6d7519d8 AM |
340 | %files devel |
341 | %defattr(644,root,root,755) | |
71cef829 | 342 | %attr(755,root,root) %{_libdir}/libgnutls.so |
71cef829 | 343 | %{_libdir}/libgnutls.la |
07a67478 | 344 | %{_includedir}/gnutls |
aeb71b0b | 345 | %{?with_dane:%exclude %{_includedir}/gnutls/dane.h} |
71cef829 | 346 | %exclude %{_includedir}/gnutls/gnutlsxx.h |
2acfa4df | 347 | %{?with_openssl:%exclude %{_includedir}/gnutls/openssl.h} |
71cef829 | 348 | %{_pkgconfigdir}/gnutls.pc |
4a97978f | 349 | %{_mandir}/man3/gnutls_*.3* |
6d7519d8 | 350 | |
63178e7f | 351 | %if %{with static_libs} |
6d7519d8 AM |
352 | %files static |
353 | %defattr(644,root,root,755) | |
71cef829 | 354 | %{_libdir}/libgnutls.a |
63178e7f | 355 | %endif |
71cef829 JB |
356 | |
357 | %files c++ | |
358 | %defattr(644,root,root,755) | |
359 | %attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.* | |
547ca217 | 360 | %attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.28 |
71cef829 JB |
361 | |
362 | %files c++-devel | |
363 | %defattr(644,root,root,755) | |
364 | %attr(755,root,root) %{_libdir}/libgnutlsxx.so | |
365 | %{_libdir}/libgnutlsxx.la | |
366 | %{_includedir}/gnutls/gnutlsxx.h | |
367 | ||
63178e7f | 368 | %if %{with static_libs} |
71cef829 JB |
369 | %files c++-static |
370 | %defattr(644,root,root,755) | |
371 | %{_libdir}/libgnutlsxx.a | |
63178e7f | 372 | %endif |
3c916209 | 373 | |
aeb71b0b JB |
374 | %if %{with dane} |
375 | %files dane | |
376 | %defattr(644,root,root,755) | |
377 | %attr(755,root,root) %{_bindir}/danetool | |
378 | %attr(755,root,root) %{_libdir}/libgnutls-dane.so.*.*.* | |
379 | %attr(755,root,root) %ghost %{_libdir}/libgnutls-dane.so.0 | |
380 | %{_mandir}/man1/danetool.1* | |
381 | ||
382 | %files dane-devel | |
383 | %defattr(644,root,root,755) | |
384 | %attr(755,root,root) %{_libdir}/libgnutls-dane.so | |
385 | %{_libdir}/libgnutls-dane.la | |
386 | %{_includedir}/gnutls/dane.h | |
387 | %{_pkgconfigdir}/gnutls-dane.pc | |
388 | ||
63178e7f | 389 | %if %{with static_libs} |
aeb71b0b JB |
390 | %files dane-static |
391 | %defattr(644,root,root,755) | |
392 | %{_libdir}/libgnutls-dane.a | |
393 | %endif | |
63178e7f | 394 | %endif |
aeb71b0b | 395 | |
2acfa4df JB |
396 | %if %{with openssl} |
397 | %files openssl | |
398 | %defattr(644,root,root,755) | |
399 | %attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.* | |
400 | %attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27 | |
401 | ||
402 | %files openssl-devel | |
403 | %defattr(644,root,root,755) | |
404 | %attr(755,root,root) %{_libdir}/libgnutls-openssl.so | |
405 | %{_libdir}/libgnutls-openssl.la | |
406 | %{_includedir}/gnutls/openssl.h | |
407 | ||
408 | %files openssl-static | |
409 | %defattr(644,root,root,755) | |
410 | %{_libdir}/libgnutls-openssl.a | |
411 | %endif | |
412 | ||
3c916209 JB |
413 | %files -n guile-gnutls |
414 | %defattr(644,root,root,755) | |
9d8f6e85 | 415 | %attr(755,root,root) %{_libdir}/guile/2.0/guile-gnutls-v-2.so* |
3c916209 | 416 | %{_datadir}/guile/site/gnutls.scm |
9d8f6e85 | 417 | %{_datadir}/guile/site/gnutls |
547ca217 | 418 | %{_infodir}/gnutls-guile.info* |