]>
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 |
9865e086 | 10 | Version: 3.1.11 |
54e8adbd | 11 | Release: 1 |
fdd1e702 | 12 | License: LGPL v3+ (libgnutls), GPL v3+ (openssl library and tools) |
6d7519d8 | 13 | Group: Libraries |
4adb064a | 14 | Source0: ftp://ftp.gnutls.org/gcrypt/gnutls/v3.1/%{name}-%{version}.tar.lz |
9865e086 | 15 | # Source0-md5: 83e71089a58df0a69b295c03c287b2a5 |
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 |
0089fafa | 32 | %{!?with_gcrypt:BuildRequires: nettle-devel >= 2.5} |
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 |
0089fafa | 49 | %{!?with_gcrypt:Requires: nettle >= 2.5} |
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 |
0089fafa | 74 | %{!?with_gcrypt:Requires: nettle-devel >= 2.5} |
17285f2a | 75 | #Requires: opencdk-devel >= 0.6.6 |
f2e1d83e | 76 | Requires: p11-kit-devel >= 0.11 |
cc933e6a | 77 | %{?with_tpm:Requires: trousers-devel} |
83ed044d | 78 | %{?with_dane:Requires: unbound-devel} |
74be7fb4 | 79 | Requires: zlib-devel |
6d7519d8 AM |
80 | |
81 | %description devel | |
82 | Header files etc to develop gnutls applications. | |
83 | ||
fc7e37b3 JR |
84 | %description devel -l pl.UTF-8 |
85 | Pliki nagłówkowe i inne do gnutls. | |
6d7519d8 AM |
86 | |
87 | %package static | |
88 | Summary: Static gnutls library | |
7b093bb5 | 89 | Summary(pl.UTF-8): Biblioteka statyczna gnutls |
fdd1e702 | 90 | License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library) |
6d7519d8 | 91 | Group: Development/Libraries |
72115ddc | 92 | Requires: %{name}-devel = %{version}-%{release} |
6d7519d8 AM |
93 | |
94 | %description static | |
95 | Static gnutls library. | |
96 | ||
fc7e37b3 | 97 | %description static -l pl.UTF-8 |
6d7519d8 AM |
98 | Biblioteka statyczna gnutls. |
99 | ||
71cef829 JB |
100 | %package c++ |
101 | Summary: libgnutlsxx - C++ interface to gnutls library | |
7b093bb5 | 102 | Summary(pl.UTF-8): libgnutlsxx - interfejs C++ do biblioteki gnutls |
24cf4cad | 103 | License: LGPL v2.1+ |
71cef829 JB |
104 | Group: Libraries |
105 | Requires: %{name} = %{version}-%{release} | |
106 | ||
107 | %description c++ | |
108 | libgnutlsxx - C++ interface to gnutls library. | |
109 | ||
fc7e37b3 | 110 | %description c++ -l pl.UTF-8 |
71cef829 JB |
111 | libgnutlsxx - interfejs C++ do biblioteki gnutls. |
112 | ||
113 | %package c++-devel | |
114 | Summary: Header files for libgnutlsxx, a C++ interface to gnutls library | |
7b093bb5 | 115 | Summary(pl.UTF-8): Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls |
24cf4cad | 116 | License: LGPL v2.1+ |
71cef829 JB |
117 | Group: Development/Libraries |
118 | Requires: %{name}-c++ = %{version}-%{release} | |
119 | Requires: %{name}-devel = %{version}-%{release} | |
120 | Requires: libstdc++-devel | |
121 | ||
122 | %description c++-devel | |
123 | Header files for libgnutlsxx, a C++ interface to gnutls library. | |
124 | ||
fc7e37b3 JR |
125 | %description c++-devel -l pl.UTF-8 |
126 | Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls. | |
71cef829 JB |
127 | |
128 | %package c++-static | |
129 | Summary: Static version of libgnutlsxx, a C++ interface to gnutls library | |
7b093bb5 | 130 | Summary(pl.UTF-8): Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls |
24cf4cad | 131 | License: LGPL v2.1+ |
71cef829 JB |
132 | Group: Development/Libraries |
133 | Requires: %{name}-c++-devel = %{version}-%{release} | |
134 | ||
135 | %description c++-static | |
136 | Static version of libgnutlsxx, a C++ interface to gnutls library. | |
137 | ||
fc7e37b3 | 138 | %description c++-static -l pl.UTF-8 |
71cef829 JB |
139 | Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls. |
140 | ||
3c916209 JB |
141 | %package -n guile-gnutls |
142 | Summary: Guile bindings for GnuTLS | |
143 | Summary(pl.UTF-8): Wiązania Guile do GnuTLS | |
fdd1e702 | 144 | License: LGPL v2.1+ |
3c916209 JB |
145 | Group: Development/Languages |
146 | Requires: %{name} = %{version}-%{release} | |
9d8f6e85 | 147 | Requires: guile >= 5:2.0 |
3c916209 JB |
148 | |
149 | %description -n guile-gnutls | |
150 | Guile bindings for GnuTLS. | |
151 | ||
152 | %description -n guile-gnutls -l pl.UTF-8 | |
153 | Wiązania Guile do GnuTLS. | |
154 | ||
6d7519d8 | 155 | %prep |
48f84c58 | 156 | %setup -q |
67b46ca6 | 157 | %patch0 -p1 |
4d87caea | 158 | %patch1 -p1 |
396dd4ff | 159 | %patch2 -p1 |
547ca217 JB |
160 | |
161 | %{__rm} po/stamp-po | |
6d7519d8 | 162 | |
cf0a9984 JB |
163 | # remove it when "linking libtool libraries using a non-POSIX archiver ..." warning is gone |
164 | # (after gnutls or libtool change) | |
165 | %{__sed} -i -e '/AM_INIT_AUTOMAKE/s/-Werror//' configure.ac | |
166 | ||
6d7519d8 | 167 | %build |
5a115208 | 168 | %{__libtoolize} |
f2e1d83e | 169 | %{__aclocal} -I m4 -I gl/m4 -I src/libopts/m4 |
d6e4f2bd JB |
170 | %{__autoconf} |
171 | %{__autoheader} | |
172 | %{__automake} | |
6d7519d8 | 173 | %configure \ |
41fffb0a | 174 | --disable-silent-rules \ |
3740ed74 | 175 | --enable-heartbeat-support \ |
0089fafa | 176 | --with-default-trust-store-file=/etc/certs/ca-certificates.crt \ |
cc933e6a JB |
177 | %{?with_gcrypt:--with-libgcrypt} \ |
178 | %{?with_tpm:--with-tpm} | |
5a115208 | 179 | |
9dc804da JB |
180 | # docs build is broken with -jN |
181 | %{__make} -j1 | |
6d7519d8 AM |
182 | |
183 | %install | |
184 | rm -rf $RPM_BUILD_ROOT | |
185 | ||
186 | %{__make} install \ | |
d711a6c0 | 187 | DESTDIR=$RPM_BUILD_ROOT |
6d7519d8 | 188 | |
fdd1e702 JB |
189 | # although libgnutls.la is obsoleted by pkg-config, there is |
190 | # .pc file missing for libgnutls-openssl, and it needs libgnutls.la | |
8e4a1eaa JB |
191 | |
192 | # guile module - dynamic only | |
9d8f6e85 | 193 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.{la,a} |
8e4a1eaa | 194 | |
d711a6c0 | 195 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
3c916209 | 196 | |
547ca217 | 197 | %find_lang %{name} |
b5ab22ee | 198 | |
6d7519d8 AM |
199 | %clean |
200 | rm -rf $RPM_BUILD_ROOT | |
201 | ||
10899c2c JB |
202 | %post |
203 | /sbin/ldconfig | |
204 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
205 | ||
206 | %postun | |
207 | /sbin/ldconfig | |
208 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
0522b080 | 209 | |
71cef829 JB |
210 | %post c++ -p /sbin/ldconfig |
211 | %postun c++ -p /sbin/ldconfig | |
212 | ||
3c916209 JB |
213 | %post -n guile-gnutls -p /sbin/ldconfig |
214 | %postun -n guile-gnutls -p /sbin/ldconfig | |
215 | ||
547ca217 | 216 | %files -f %{name}.lang |
6d7519d8 | 217 | %defattr(644,root,root,755) |
07a67478 | 218 | %doc AUTHORS ChangeLog NEWS README THANKS |
d191db7f | 219 | %attr(755,root,root) %{_bindir}/certtool |
56a7698b | 220 | %attr(755,root,root) %{_bindir}/crywrap |
83ed044d | 221 | %{?with_dane:%attr(755,root,root) %{_bindir}/danetool} |
71cef829 | 222 | %attr(755,root,root) %{_bindir}/gnutls-* |
9dc804da | 223 | %attr(755,root,root) %{_bindir}/ocsptool |
41fffb0a | 224 | %attr(755,root,root) %{_bindir}/p11tool |
2637a2e1 | 225 | %attr(755,root,root) %{_bindir}/psktool |
62c2e78b | 226 | %attr(755,root,root) %{_bindir}/srptool |
cc933e6a | 227 | %{?with_tpm:%attr(755,root,root) %{_bindir}/tpmtool} |
71cef829 | 228 | %attr(755,root,root) %{_libdir}/libgnutls.so.*.*.* |
547ca217 | 229 | %attr(755,root,root) %ghost %{_libdir}/libgnutls.so.28 |
83ed044d JB |
230 | %if %{with dane} |
231 | %attr(755,root,root) %{_libdir}/libgnutls-dane.so.*.*.* | |
232 | %attr(755,root,root) %ghost %{_libdir}/libgnutls-dane.so.0 | |
233 | %endif | |
71cef829 | 234 | %attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.* |
41fffb0a | 235 | %attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27 |
b947d5e6 JB |
236 | %attr(755,root,root) %{_libdir}/libgnutls-xssl.so.*.*.* |
237 | %attr(755,root,root) %ghost %{_libdir}/libgnutls-xssl.so.0 | |
584b5346 | 238 | %{_mandir}/man1/certtool.1* |
83ed044d | 239 | %{?with_dane:%{_mandir}/man1/danetool.1*} |
71cef829 | 240 | %{_mandir}/man1/gnutls-*.1* |
f2e1d83e | 241 | %{_mandir}/man1/ocsptool.1* |
41fffb0a | 242 | %{_mandir}/man1/p11tool.1* |
2637a2e1 | 243 | %{_mandir}/man1/psktool.1* |
62c2e78b | 244 | %{_mandir}/man1/srptool.1* |
0089fafa | 245 | %{_mandir}/man1/tpmtool.1* |
71cef829 | 246 | %{_infodir}/gnutls.info* |
24cf4cad | 247 | %{_infodir}/gnutls-*.png |
41fffb0a | 248 | %{_infodir}/pkcs11-vision.png |
6d7519d8 AM |
249 | |
250 | %files devel | |
251 | %defattr(644,root,root,755) | |
71cef829 | 252 | %attr(755,root,root) %{_libdir}/libgnutls.so |
83ed044d | 253 | %{?with_dane:%attr(755,root,root) %{_libdir}/libgnutls-dane.so} |
71cef829 | 254 | %attr(755,root,root) %{_libdir}/libgnutls-openssl.so |
b947d5e6 | 255 | %attr(755,root,root) %{_libdir}/libgnutls-xssl.so |
71cef829 | 256 | %{_libdir}/libgnutls.la |
83ed044d | 257 | %{?with_dane:%{_libdir}/libgnutls-dane.la} |
71cef829 | 258 | %{_libdir}/libgnutls-openssl.la |
b947d5e6 | 259 | %{_libdir}/libgnutls-xssl.la |
07a67478 | 260 | %{_includedir}/gnutls |
71cef829 | 261 | %exclude %{_includedir}/gnutls/gnutlsxx.h |
71cef829 | 262 | %{_pkgconfigdir}/gnutls.pc |
a7273f20 | 263 | %{?with_dane:%{_pkgconfigdir}/gnutls-dane.pc} |
4a97978f | 264 | %{_mandir}/man3/gnutls_*.3* |
6d7519d8 AM |
265 | |
266 | %files static | |
267 | %defattr(644,root,root,755) | |
71cef829 | 268 | %{_libdir}/libgnutls.a |
83ed044d | 269 | %{?with_dane:%{_libdir}/libgnutls-dane.a} |
71cef829 | 270 | %{_libdir}/libgnutls-openssl.a |
b947d5e6 | 271 | %{_libdir}/libgnutls-xssl.a |
71cef829 JB |
272 | |
273 | %files c++ | |
274 | %defattr(644,root,root,755) | |
275 | %attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.* | |
547ca217 | 276 | %attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.28 |
71cef829 JB |
277 | |
278 | %files c++-devel | |
279 | %defattr(644,root,root,755) | |
280 | %attr(755,root,root) %{_libdir}/libgnutlsxx.so | |
281 | %{_libdir}/libgnutlsxx.la | |
282 | %{_includedir}/gnutls/gnutlsxx.h | |
283 | ||
284 | %files c++-static | |
285 | %defattr(644,root,root,755) | |
286 | %{_libdir}/libgnutlsxx.a | |
3c916209 JB |
287 | |
288 | %files -n guile-gnutls | |
289 | %defattr(644,root,root,755) | |
9d8f6e85 | 290 | %attr(755,root,root) %{_libdir}/guile/2.0/guile-gnutls-v-2.so* |
3c916209 | 291 | %{_datadir}/guile/site/gnutls.scm |
9d8f6e85 | 292 | %{_datadir}/guile/site/gnutls |
547ca217 | 293 | %{_infodir}/gnutls-guile.info* |