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