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