]> git.pld-linux.org Git - packages/gnutls.git/blob - gnutls.spec
- updated also runtime p11-kit dependencies
[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.12.1
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:  c97f2c360fd955fb6a3da3f5abc55001
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 -qn %{name}-3.2.12
203 %patch0 -p1
204 %patch1 -p1
205
206 %{__rm} po/stamp-po
207
208 %build
209 %{__libtoolize}
210 %{__aclocal} -I m4 -I gl/m4 -I src/libopts/m4 -I src/gl/m4
211 %{__autoconf}
212 %{__autoheader}
213 %{__automake}
214 %configure \
215         --disable-silent-rules \
216         --enable-heartbeat-support \
217         --with-default-trust-store-file=/etc/certs/ca-certificates.crt \
218         %{!?with_tpm:--without-tpm}
219
220 # docs build is broken with -jN
221 %{__make} -j1
222
223 %install
224 rm -rf $RPM_BUILD_ROOT
225
226 %{__make} install \
227         DESTDIR=$RPM_BUILD_ROOT
228
229 # although libgnutls.la is obsoleted by pkg-config, there is
230 # .pc file missing for libgnutls-openssl, and it needs libgnutls.la
231
232 # guile module - dynamic only
233 %{__rm} $RPM_BUILD_ROOT%{_libdir}/guile/2.0/guile-gnutls-*.{la,a}
234
235 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
236
237 %find_lang %{name}
238
239 %clean
240 rm -rf $RPM_BUILD_ROOT
241
242 %post
243 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
244
245 %postun
246 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
247
248 %post   libs -p /sbin/ldconfig
249 %postun libs -p /sbin/ldconfig
250
251 %post   c++ -p /sbin/ldconfig
252 %postun c++ -p /sbin/ldconfig
253
254 %post   -n guile-gnutls -p /sbin/ldconfig
255 %postun -n guile-gnutls -p /sbin/ldconfig
256
257 %files -f %{name}.lang
258 %defattr(644,root,root,755)
259 %doc AUTHORS ChangeLog NEWS README THANKS
260 %attr(755,root,root) %{_bindir}/certtool
261 %attr(755,root,root) %{_bindir}/crywrap
262 %attr(755,root,root) %{_bindir}/gnutls-*
263 %attr(755,root,root) %{_bindir}/ocsptool
264 %attr(755,root,root) %{_bindir}/p11tool
265 %attr(755,root,root) %{_bindir}/psktool
266 %attr(755,root,root) %{_bindir}/srptool
267 %{?with_tpm:%attr(755,root,root) %{_bindir}/tpmtool}
268 %{_mandir}/man1/certtool.1*
269 %{_mandir}/man1/gnutls-*.1*
270 %{_mandir}/man1/ocsptool.1*
271 %{_mandir}/man1/p11tool.1*
272 %{_mandir}/man1/psktool.1*
273 %{_mandir}/man1/srptool.1*
274 %{_mandir}/man1/tpmtool.1*
275 %{_infodir}/gnutls.info*
276 %{_infodir}/gnutls-*.png
277 %{_infodir}/pkcs11-vision.png
278
279 %files libs
280 %defattr(644,root,root,755)
281 %attr(755,root,root) %{_libdir}/libgnutls.so.*.*.*
282 %attr(755,root,root) %ghost %{_libdir}/libgnutls.so.28
283 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.*
284 %attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27
285 %attr(755,root,root) %{_libdir}/libgnutls-xssl.so.*.*.*
286 %attr(755,root,root) %ghost %{_libdir}/libgnutls-xssl.so.0
287
288 %files devel
289 %defattr(644,root,root,755)
290 %attr(755,root,root) %{_libdir}/libgnutls.so
291 %attr(755,root,root) %{_libdir}/libgnutls-openssl.so
292 %attr(755,root,root) %{_libdir}/libgnutls-xssl.so
293 %{_libdir}/libgnutls.la
294 %{_libdir}/libgnutls-openssl.la
295 %{_libdir}/libgnutls-xssl.la
296 %{_includedir}/gnutls
297 %{?with_dane:%exclude %{_includedir}/gnutls/dane.h}
298 %exclude %{_includedir}/gnutls/gnutlsxx.h
299 %{_pkgconfigdir}/gnutls.pc
300 %{_mandir}/man3/gnutls_*.3*
301 %{_mandir}/man3/xssl_*.3*
302
303 %files static
304 %defattr(644,root,root,755)
305 %{_libdir}/libgnutls.a
306 %{_libdir}/libgnutls-openssl.a
307 %{_libdir}/libgnutls-xssl.a
308
309 %files c++
310 %defattr(644,root,root,755)
311 %attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.*
312 %attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.28
313
314 %files c++-devel
315 %defattr(644,root,root,755)
316 %attr(755,root,root) %{_libdir}/libgnutlsxx.so
317 %{_libdir}/libgnutlsxx.la
318 %{_includedir}/gnutls/gnutlsxx.h
319
320 %files c++-static
321 %defattr(644,root,root,755)
322 %{_libdir}/libgnutlsxx.a
323
324 %if %{with dane}
325 %files dane
326 %defattr(644,root,root,755)
327 %attr(755,root,root) %{_bindir}/danetool
328 %attr(755,root,root) %{_libdir}/libgnutls-dane.so.*.*.*
329 %attr(755,root,root) %ghost %{_libdir}/libgnutls-dane.so.0
330 %{_mandir}/man1/danetool.1*
331
332 %files dane-devel
333 %defattr(644,root,root,755)
334 %attr(755,root,root) %{_libdir}/libgnutls-dane.so
335 %{_libdir}/libgnutls-dane.la
336 %{_includedir}/gnutls/dane.h
337 %{_pkgconfigdir}/gnutls-dane.pc
338
339 %files dane-static
340 %defattr(644,root,root,755)
341 %{_libdir}/libgnutls-dane.a
342 %endif
343
344 %files -n guile-gnutls
345 %defattr(644,root,root,755)
346 %attr(755,root,root) %{_libdir}/guile/2.0/guile-gnutls-v-2.so*
347 %{_datadir}/guile/site/gnutls.scm
348 %{_datadir}/guile/site/gnutls
349 %{_infodir}/gnutls-guile.info*
This page took 0.068703 seconds and 4 git commands to generate.