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