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