]> git.pld-linux.org Git - packages/gnutls.git/blob - gnutls.spec
- updated to 3.3.1
[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.1
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:  2c62b8d007aedc448304aad0ab7ae896
16 Patch0:         %{name}-info.patch
17 Patch1:         %{name}-link.patch
18 Patch2:         %{name}-guile.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-devel >= 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.1
32 BuildRequires:  libtool >= 2:1.5
33 BuildRequires:  lzip
34 BuildRequires:  nettle-devel >= 2.7
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.0
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.1
69 Requires:       nettle >= 2.7
70 #Requires:      opencdk >= 0.6.6
71 Requires:       p11-kit >= 0.20.0
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.1
88 Requires:       nettle-devel >= 2.7
89 #Requires:      opencdk-devel >= 0.6.6
90 Requires:       p11-kit-devel >= 0.20.0
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 -n guile-gnutls
193 Summary:        Guile bindings for GnuTLS
194 Summary(pl.UTF-8):      Wiązania Guile do GnuTLS
195 License:        LGPL v2.1+
196 Group:          Development/Languages
197 Requires:       %{name}-libs = %{version}-%{release}
198 Requires:       guile >= 5:2.0
199
200 %description -n guile-gnutls
201 Guile bindings for GnuTLS.
202
203 %description -n guile-gnutls -l pl.UTF-8
204 Wiązania Guile do GnuTLS.
205
206 %prep
207 %setup -q
208 %patch0 -p1
209 %patch1 -p1
210 %patch2 -p1
211
212 %{__rm} po/stamp-po
213
214 %build
215 %{__libtoolize}
216 %{__aclocal} -I m4 -I gl/m4 -I src/libopts/m4 -I src/gl/m4
217 %{__autoconf}
218 %{__autoheader}
219 %{__automake}
220 %configure \
221         --disable-silent-rules \
222         %{?with_static_libs:--enable-static} \
223         --with-default-trust-store-file=/etc/certs/ca-certificates.crt \
224         %{!?with_tpm:--without-tpm}
225
226 # docs build is broken with -jN
227 %{__make} -j1
228
229 %install
230 rm -rf $RPM_BUILD_ROOT
231
232 %{__make} install \
233         DESTDIR=$RPM_BUILD_ROOT
234
235 # although libgnutls.la is obsoleted by pkg-config, there is
236 # .pc file missing for libgnutls-openssl, and it needs libgnutls.la
237
238 # guile module - dynamic only
239 %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.la
240 %if %{with static_libs}
241 %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.a
242 %endif
243
244 %{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir
245
246 %find_lang %{name}
247
248 %clean
249 rm -rf $RPM_BUILD_ROOT
250
251 %post
252 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
253
254 %postun
255 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
256
257 %post   libs -p /sbin/ldconfig
258 %postun libs -p /sbin/ldconfig
259
260 %post   c++ -p /sbin/ldconfig
261 %postun c++ -p /sbin/ldconfig
262
263 %post   -n guile-gnutls -p /sbin/ldconfig
264 %postun -n guile-gnutls -p /sbin/ldconfig
265
266 %files -f %{name}.lang
267 %defattr(644,root,root,755)
268 %doc AUTHORS ChangeLog NEWS README THANKS
269 %attr(755,root,root) %{_bindir}/certtool
270 %attr(755,root,root) %{_bindir}/crywrap
271 %attr(755,root,root) %{_bindir}/gnutls-*
272 %attr(755,root,root) %{_bindir}/ocsptool
273 %attr(755,root,root) %{_bindir}/p11tool
274 %attr(755,root,root) %{_bindir}/psktool
275 %attr(755,root,root) %{_bindir}/srptool
276 %{?with_tpm:%attr(755,root,root) %{_bindir}/tpmtool}
277 %{_mandir}/man1/certtool.1*
278 %{_mandir}/man1/gnutls-*.1*
279 %{_mandir}/man1/ocsptool.1*
280 %{_mandir}/man1/p11tool.1*
281 %{_mandir}/man1/psktool.1*
282 %{_mandir}/man1/srptool.1*
283 %{_mandir}/man1/tpmtool.1*
284 %{_infodir}/gnutls.info*
285 %{_infodir}/gnutls-*.png
286 %{_infodir}/pkcs11-vision.png
287
288 %files libs
289 %defattr(644,root,root,755)
290 %attr(755,root,root) %{_libdir}/libgnutls.so.*.*.*
291 %attr(755,root,root) %ghost %{_libdir}/libgnutls.so.28
292 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.*
293 %attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27
294
295 %files devel
296 %defattr(644,root,root,755)
297 %attr(755,root,root) %{_libdir}/libgnutls.so
298 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so
299 %{_libdir}/libgnutls.la
300 %{_libdir}/libgnutls-openssl.la
301 %{_includedir}/gnutls
302 %{?with_dane:%exclude %{_includedir}/gnutls/dane.h}
303 %exclude %{_includedir}/gnutls/gnutlsxx.h
304 %{_pkgconfigdir}/gnutls.pc
305 %{_mandir}/man3/gnutls_*.3*
306
307 %if %{with static_libs}
308 %files static
309 %defattr(644,root,root,755)
310 %{_libdir}/libgnutls.a
311 %{_libdir}/libgnutls-openssl.a
312 %endif
313
314 %files c++
315 %defattr(644,root,root,755)
316 %attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.*
317 %attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.28
318
319 %files c++-devel
320 %defattr(644,root,root,755)
321 %attr(755,root,root) %{_libdir}/libgnutlsxx.so
322 %{_libdir}/libgnutlsxx.la
323 %{_includedir}/gnutls/gnutlsxx.h
324
325 %if %{with static_libs}
326 %files c++-static
327 %defattr(644,root,root,755)
328 %{_libdir}/libgnutlsxx.a
329 %endif
330
331 %if %{with dane}
332 %files dane
333 %defattr(644,root,root,755)
334 %attr(755,root,root) %{_bindir}/danetool
335 %attr(755,root,root) %{_libdir}/libgnutls-dane.so.*.*.*
336 %attr(755,root,root) %ghost %{_libdir}/libgnutls-dane.so.0
337 %{_mandir}/man1/danetool.1*
338
339 %files dane-devel
340 %defattr(644,root,root,755)
341 %attr(755,root,root) %{_libdir}/libgnutls-dane.so
342 %{_libdir}/libgnutls-dane.la
343 %{_includedir}/gnutls/dane.h
344 %{_pkgconfigdir}/gnutls-dane.pc
345
346 %if %{with static_libs}
347 %files dane-static
348 %defattr(644,root,root,755)
349 %{_libdir}/libgnutls-dane.a
350 %endif
351 %endif
352
353 %files -n guile-gnutls
354 %defattr(644,root,root,755)
355 %attr(755,root,root) %{_libdir}/guile/2.0/guile-gnutls-v-2.so*
356 %{_datadir}/guile/site/gnutls.scm
357 %{_datadir}/guile/site/gnutls
358 %{_infodir}/gnutls-guile.info*
This page took 0.093155 seconds and 4 git commands to generate.