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