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