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