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