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