]> git.pld-linux.org Git - packages/gnutls.git/blob - gnutls.spec
- updated to 3.4.5
[packages/gnutls.git] / gnutls.spec
1 # NOTE: 3.3.x is previous-stable line
2 # - for 3.5.x (current stable) see DEVEL branch (requires DEVEL p11-kit)
3 #
4 # Conditional build:
5 %bcond_without  dane            # libdane (DANE with DNSSEC certificate verification)
6 %bcond_without  openssl         # libgnutls-openssl compatibility library
7 %bcond_without  tpm             # TPM support in gnutls
8 %bcond_without  static_libs     # static libraries
9 %bcond_without  doc             # do not generate documentation
10 #
11 Summary:        The GNU Transport Layer Security Library
12 Summary(pl.UTF-8):      Biblioteka GNU TLS (Transport Layer Security)
13 Name:           gnutls
14 Version:        3.4.5
15 Release:        1
16 License:        LGPL v2.1+ (libgnutls), LGPL v3+ (libdane), GPL v3+ (openssl library and tools)
17 Group:          Libraries
18 Source0:        ftp://ftp.gnutls.org/gcrypt/gnutls/v3.4/%{name}-%{version}.tar.lz
19 # Source0-md5:  99552ca9d01b3ae9d73022fb6334e7e6
20 Patch0:         %{name}-info.patch
21 Patch1:         %{name}-link.patch
22 URL:            http://www.gnutls.org/
23 BuildRequires:  autoconf >= 2.61
24 BuildRequires:  autogen
25 BuildRequires:  autogen-devel
26 BuildRequires:  automake >= 1:1.12.2
27 BuildRequires:  gettext-tools >= 0.18
28 BuildRequires:  gmp-devel
29 %{?with_doc:BuildRequires:      gtk-doc >= 1.1}
30 BuildRequires:  guile-devel >= 5:2.0
31 BuildRequires:  libcfg+-devel
32 BuildRequires:  libidn-devel >= 0.5.6
33 BuildRequires:  libstdc++-devel
34 BuildRequires:  libtasn1-devel >= 4.3
35 BuildRequires:  libtool >= 2:2
36 BuildRequires:  lzip
37 BuildRequires:  nettle-devel >= 3.1
38 # miniopencdk is included in sources and currently maintained
39 # as part of gnutls, not external package
40 #BuildRequires: opencdk-devel >= 0.6.6
41 BuildRequires:  p11-kit-devel >= 0.23.1
42 BuildRequires:  pkgconfig
43 BuildRequires:  readline-devel
44 BuildRequires:  rpmbuild(macros) >= 1.383
45 BuildRequires:  sed >= 4.0
46 BuildRequires:  tar >= 1:1.22
47 %{?with_doc:BuildRequires:      texinfo >= 4.8}
48 %{?with_tpm:BuildRequires:      trousers-devel >= 0.3.11}
49 %{?with_dane:BuildRequires:     unbound-devel}
50 BuildRequires:  zlib-devel
51 Requires:       %{name}-libs = %{version}-%{release}
52 %{?with_dane:Requires:  %{name}-dane = %{version}-%{release}}
53 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54
55 %description
56 GnuTLS is a project that aims to develop a library which provides a
57 secure layer, over a reliable transport layer (ie. TCP/IP). Currently
58 the gnuTLS library implements the proposed standards by the IETF's TLS
59 working group.
60
61 %description -l pl.UTF-8
62 GnuTLS to projekt mający na celu stworzenie biblioteki udostępniającej
63 powłokę bezpieczeństwa ponad powłoką transportową (np. TCP/IP).
64 Aktualnie biblioteka gnuTLS implementuje standardy proponowane przez
65 grupę roboczą IETF TLS.
66
67 %package libs
68 Summary:        GnuTLS shared libraries
69 Summary(pl.UTF-8):      Biblioteki współdzielone GnuTLS
70 Group:          Libraries
71 Requires:       libidn >= 0.5.6
72 Requires:       libtasn1 >= 4.3
73 Requires:       nettle >= 3.1
74 #Requires:      opencdk >= 0.6.6
75 Requires:       p11-kit >= 0.23.1
76 %{?with_tpm:Requires:   trousers-libs >= 0.3.11}
77 Conflicts:      gnutls < 3.2.0
78
79 %description libs
80 GnuTLS shared libraries.
81
82 %description libs -l pl.UTF-8
83 Biblioteki współdzielone GnuTLS.
84
85 %package devel
86 Summary:        Header files etc to develop gnutls applications
87 Summary(pl.UTF-8):      Pliki nagłówkowe i inne do gnutls
88 License:        LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
89 Group:          Development/Libraries
90 Requires:       %{name}-libs = %{version}-%{release}
91 Requires:       libidn-devel >= 0.5.6
92 Requires:       libtasn1-devel >= 4.3
93 Requires:       nettle-devel >= 3.1
94 #Requires:      opencdk-devel >= 0.6.6
95 Requires:       p11-kit-devel >= 0.23.1
96 %{?with_tpm:Requires:   trousers-devel >= 0.3.11}
97 Requires:       zlib-devel
98
99 %description devel
100 Header files etc to develop gnutls applications.
101
102 %description devel -l pl.UTF-8
103 Pliki nagłówkowe i inne do gnutls.
104
105 %package static
106 Summary:        Static gnutls library
107 Summary(pl.UTF-8):      Biblioteka statyczna gnutls
108 License:        LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
109 Group:          Development/Libraries
110 Requires:       %{name}-devel = %{version}-%{release}
111
112 %description static
113 Static gnutls library.
114
115 %description static -l pl.UTF-8
116 Biblioteka statyczna gnutls.
117
118 %package c++
119 Summary:        libgnutlsxx - C++ interface to gnutls library
120 Summary(pl.UTF-8):      libgnutlsxx - interfejs C++ do biblioteki gnutls
121 License:        LGPL v2.1+
122 Group:          Libraries
123 Requires:       %{name}-libs = %{version}-%{release}
124
125 %description c++
126 libgnutlsxx - C++ interface to gnutls library.
127
128 %description c++ -l pl.UTF-8
129 libgnutlsxx - interfejs C++ do biblioteki gnutls.
130
131 %package c++-devel
132 Summary:        Header files for libgnutlsxx, a C++ interface to gnutls library
133 Summary(pl.UTF-8):      Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls
134 License:        LGPL v2.1+
135 Group:          Development/Libraries
136 Requires:       %{name}-c++ = %{version}-%{release}
137 Requires:       %{name}-devel = %{version}-%{release}
138 Requires:       libstdc++-devel
139
140 %description c++-devel
141 Header files for libgnutlsxx, a C++ interface to gnutls library.
142
143 %description c++-devel -l pl.UTF-8
144 Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls.
145
146 %package c++-static
147 Summary:        Static version of libgnutlsxx, a C++ interface to gnutls library
148 Summary(pl.UTF-8):      Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls
149 License:        LGPL v2.1+
150 Group:          Development/Libraries
151 Requires:       %{name}-c++-devel = %{version}-%{release}
152
153 %description c++-static
154 Static version of libgnutlsxx, a C++ interface to gnutls library.
155
156 %description c++-static -l pl.UTF-8
157 Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls.
158
159 %package dane
160 Summary:        DANE security library
161 Summary(pl.UTF-8):      Biblioteka bezpieczeństwa DANE
162 Group:          Libraries
163 Requires:       %{name}-libs = %{version}-%{release}
164
165 %description dane
166 DANE security library.
167
168 %description dane -l pl.UTF-8
169 Biblioteka bezpieczeństwa DANE.
170
171 %package dane-devel
172 Summary:        Header file for DANE security library
173 Summary(pl.UTF-8):      Plik nagłówkowy biblioteki bezpieczeństwa DANE
174 Group:          Development/Libraries
175 Requires:       %{name}-dane = %{version}-%{release}
176 Requires:       %{name}-devel = %{version}-%{release}
177 Requires:       unbound-devel
178
179 %description dane-devel
180 Header file for DANE security library.
181
182 %description dane-devel -l pl.UTF-8
183 Plik nagłówkowy biblioteki bezpieczeństwa DANE.
184
185 %package dane-static
186 Summary:        Static DANE security library
187 Summary(pl.UTF-8):      Statyczna biblioteka bezpieczeństwa DANE
188 Group:          Development/Libraries
189 Requires:       %{name}-dane-devel = %{version}-%{release}
190
191 %description dane-static
192 Static DANE security library.
193
194 %description dane-static -l pl.UTF-8
195 Statyczna biblioteka bezpieczeństwa DANE.
196
197 %package openssl
198 Summary:        OpenSSL compatibility library for GnuTLS
199 Summary(pl.UTF-8):      Biblioteka zgodności z OpenSSL dla GnuTLS
200 Group:          Libraries
201 Requires:       %{name}-libs = %{version}-%{release}
202
203 %description openssl
204 OpenSSL compatibility library for GnuTLS.
205
206 %description openssl -l pl.UTF-8
207 Biblioteka zgodności z OpenSSL dla GnuTLS.
208
209 %package openssl-devel
210 Summary:        Header file for gnutls-openssl library
211 Summary(pl.UTF-8):      Plik nagłówkowy biblioteki gnutls-openssl
212 Group:          Development/Libraries
213 Requires:       %{name}-devel = %{version}-%{release}
214 Requires:       %{name}-openssl = %{version}-%{release}
215
216 %description openssl-devel
217 Header file for gnutls-openssl library.
218
219 %description openssl-devel -l pl.UTF-8
220 Plik nagłówkowy biblioteki gnutls-openssl.
221
222 %package openssl-static
223 Summary:        Static gnutls-openssl library
224 Summary(pl.UTF-8):      Statyczna biblioteka gnutls-openssl
225 Group:          Development/Libraries
226 Requires:       %{name}-openssl-devel = %{version}-%{release}
227
228 %description openssl-static
229 Static gnutls-openssl library.
230
231 %description openssl-static -l pl.UTF-8
232 Statyczna biblioteka gnutls-openssl.
233
234 %package -n guile-gnutls
235 Summary:        Guile bindings for GnuTLS
236 Summary(pl.UTF-8):      Wiązania Guile do GnuTLS
237 License:        LGPL v2.1+
238 Group:          Development/Languages
239 Requires:       %{name}-libs = %{version}-%{release}
240 Requires:       guile >= 5:2.0
241
242 %description -n guile-gnutls
243 Guile bindings for GnuTLS.
244
245 %description -n guile-gnutls -l pl.UTF-8
246 Wiązania Guile do GnuTLS.
247
248 %prep
249 %setup -q
250 %patch0 -p1
251 %patch1 -p1
252
253 %{__rm} po/stamp-po
254
255 %build
256 %{__mv} build-aux/snippet{,.save}
257 %{__libtoolize}
258 %{__mv} build-aux/snippet{.save,}
259 %{__aclocal} -I m4 -I gl/m4 -I src/libopts/m4 -I src/gl/m4
260 %{__autoconf}
261 %{__autoheader}
262 %{__automake}
263 %configure \
264         %{?with_openssl:--enable-openssl-compatibility} \
265         --disable-silent-rules \
266         %{?with_static_libs:--enable-static} \
267         --with-default-trust-store-file=/etc/certs/ca-certificates.crt \
268         %{!?with_tpm:--without-tpm} \
269         --with-trousers-lib=%{_libdir}/libtspi.so.1 \
270         %{!?with_doc:--disable-doc}
271
272 # docs build is broken with -jN
273 %{__make} -j1
274
275 %install
276 rm -rf $RPM_BUILD_ROOT
277
278 %{__make} install \
279         DESTDIR=$RPM_BUILD_ROOT
280
281 # although libgnutls.la is obsoleted by pkg-config, there is
282 # .pc file missing for libgnutls-openssl, and it needs libgnutls.la
283
284 # guile module - dynamic only
285 %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.la
286 %if %{with static_libs}
287 %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.a
288 %endif
289
290 %{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir
291
292 %find_lang %{name}
293
294 %clean
295 rm -rf $RPM_BUILD_ROOT
296
297 %post
298 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
299
300 %postun
301 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
302
303 %post   libs -p /sbin/ldconfig
304 %postun libs -p /sbin/ldconfig
305
306 %post   c++ -p /sbin/ldconfig
307 %postun c++ -p /sbin/ldconfig
308
309 %post   dane -p /sbin/ldconfig
310 %postun dane -p /sbin/ldconfig
311
312 %post   openssl -p /sbin/ldconfig
313 %postun openssl -p /sbin/ldconfig
314
315 %post   -n guile-gnutls -p /sbin/ldconfig
316 %postun -n guile-gnutls -p /sbin/ldconfig
317
318 %files -f %{name}.lang
319 %defattr(644,root,root,755)
320 %doc AUTHORS ChangeLog NEWS README THANKS
321 %attr(755,root,root) %{_bindir}/certtool
322 %attr(755,root,root) %{_bindir}/crywrap
323 %attr(755,root,root) %{_bindir}/gnutls-*
324 %attr(755,root,root) %{_bindir}/ocsptool
325 %attr(755,root,root) %{_bindir}/p11tool
326 %attr(755,root,root) %{_bindir}/psktool
327 %attr(755,root,root) %{_bindir}/srptool
328 %{?with_tpm:%attr(755,root,root) %{_bindir}/tpmtool}
329 %if %{with doc}
330 %{_mandir}/man1/certtool.1*
331 %{_mandir}/man1/gnutls-*.1*
332 %{_mandir}/man1/ocsptool.1*
333 %{_mandir}/man1/p11tool.1*
334 %{_mandir}/man1/psktool.1*
335 %{_mandir}/man1/srptool.1*
336 %{_mandir}/man1/tpmtool.1*
337 %{_infodir}/gnutls.info*
338 %{_infodir}/gnutls-*.png
339 %{_infodir}/pkcs11-vision.png
340 %endif
341
342 %files libs
343 %defattr(644,root,root,755)
344 %attr(755,root,root) %{_libdir}/libgnutls.so.*.*.*
345 %attr(755,root,root) %ghost %{_libdir}/libgnutls.so.30
346
347 %files devel
348 %defattr(644,root,root,755)
349 %attr(755,root,root) %{_libdir}/libgnutls.so
350 %{_libdir}/libgnutls.la
351 %{_includedir}/gnutls
352 %{?with_dane:%exclude %{_includedir}/gnutls/dane.h}
353 %exclude %{_includedir}/gnutls/gnutlsxx.h
354 %{?with_openssl:%exclude %{_includedir}/gnutls/openssl.h}
355 %{_pkgconfigdir}/gnutls.pc
356 %{?with_doc:%{_mandir}/man3/gnutls_*.3*}
357
358 %if %{with static_libs}
359 %files static
360 %defattr(644,root,root,755)
361 %{_libdir}/libgnutls.a
362 %endif
363
364 %files c++
365 %defattr(644,root,root,755)
366 %attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.*
367 %attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.28
368
369 %files c++-devel
370 %defattr(644,root,root,755)
371 %attr(755,root,root) %{_libdir}/libgnutlsxx.so
372 %{_libdir}/libgnutlsxx.la
373 %{_includedir}/gnutls/gnutlsxx.h
374
375 %if %{with static_libs}
376 %files c++-static
377 %defattr(644,root,root,755)
378 %{_libdir}/libgnutlsxx.a
379 %endif
380
381 %if %{with dane}
382 %files dane
383 %defattr(644,root,root,755)
384 %attr(755,root,root) %{_bindir}/danetool
385 %attr(755,root,root) %{_libdir}/libgnutls-dane.so.*.*.*
386 %attr(755,root,root) %ghost %{_libdir}/libgnutls-dane.so.0
387 %{?with_doc:%{_mandir}/man1/danetool.1*}
388
389 %files dane-devel
390 %defattr(644,root,root,755)
391 %attr(755,root,root) %{_libdir}/libgnutls-dane.so
392 %{_libdir}/libgnutls-dane.la
393 %{_includedir}/gnutls/dane.h
394 %{_pkgconfigdir}/gnutls-dane.pc
395
396 %if %{with static_libs}
397 %files dane-static
398 %defattr(644,root,root,755)
399 %{_libdir}/libgnutls-dane.a
400 %endif
401 %endif
402
403 %if %{with openssl}
404 %files openssl
405 %defattr(644,root,root,755)
406 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.*
407 %attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27
408
409 %files openssl-devel
410 %defattr(644,root,root,755)
411 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so
412 %{_libdir}/libgnutls-openssl.la
413 %{_includedir}/gnutls/openssl.h
414
415 %files openssl-static
416 %defattr(644,root,root,755)
417 %{_libdir}/libgnutls-openssl.a
418 %endif
419
420 %files -n guile-gnutls
421 %defattr(644,root,root,755)
422 %attr(755,root,root) %{_libdir}/guile/2.0/guile-gnutls-v-2.so*
423 %{_datadir}/guile/site/gnutls.scm
424 %{_datadir}/guile/site/gnutls
425 %{?with_doc:%{_infodir}/gnutls-guile.info*}
This page took 0.055613 seconds and 4 git commands to generate.