]> git.pld-linux.org Git - packages/gnutls.git/blame - gnutls.spec
up to 3.8.5
[packages/gnutls.git] / gnutls.spec
CommitLineData
547ca217
JB
1#
2# Conditional build:
63178e7f 3%bcond_without dane # libdane (DANE with DNSSEC certificate verification)
49d0f281 4%bcond_without openssl # libgnutls-openssl compatibility library
63178e7f 5%bcond_without tpm # TPM support in gnutls
3a6f7fd8 6%bcond_without tpm2 # TPM2 support in gnutls
63178e7f 7%bcond_without static_libs # static libraries
12f86e92 8%bcond_without doc # do not generate documentation
b5c41c44 9%bcond_with af_alg # Linux kernel AF_ALG based acceleration
4fe65b0d 10%bcond_with heartbeat # heartbeat extension support
3a6f7fd8 11%bcond_with ktls # Kernel TLS support
4fe65b0d 12%bcond_with srp # SRP authentication support
3a6f7fd8 13
6d7519d8 14Summary: The GNU Transport Layer Security Library
7b093bb5 15Summary(pl.UTF-8): Biblioteka GNU TLS (Transport Layer Security)
6d7519d8 16Name: gnutls
623dd8b6 17Version: 3.8.5
45823202 18Release: 1
4df2ddc1 19License: LGPL v2.1+ (libgnutls), LGPL v3+ (libdane), GPL v3+ (openssl library and tools)
6d7519d8 20Group: Libraries
4fe65b0d 21Source0: ftp://ftp.gnutls.org/gcrypt/gnutls/v3.8/%{name}-%{version}.tar.xz
623dd8b6 22# Source0-md5: 74b468201ef7e9035f78d44c3f0906c4
bf6baa77 23Patch0: %{name}-info.patch
4d87caea 24Patch1: %{name}-link.patch
d477527f 25Patch2: %{name}-pl.po-update.patch
866922ba 26URL: https://www.gnutls.org/
d477527f 27BuildRequires: autoconf >= 2.63
59d25b4c 28BuildRequires: automake >= 1:1.12.2
d477527f 29BuildRequires: gcc >= 5:3.2
b0199314 30BuildRequires: gettext-tools >= 0.19
63178e7f 31BuildRequires: gmp-devel
800f463c 32%{?with_doc:BuildRequires: gtk-doc >= 1.14}
15bbc850 33BuildRequires: libidn2-devel >= 2.0.0
688f68e9 34BuildRequires: libbrotli-devel >= 1.0.0
b5c41c44 35%{?with_af_alg:BuildRequires: libkcapi-devel >= 1.3.0}
71cef829 36BuildRequires: libstdc++-devel
a6d06b1c 37BuildRequires: libtasn1-devel >= 4.11
0381cb26 38BuildRequires: libunistring-devel
0d6c279f 39BuildRequires: libtool >= 2:2
3a6f7fd8 40%{?with_ktls:BuildRequires: linux-libc-headers >= 7:4.13}
d57a2cd4 41BuildRequires: nettle-devel >= 3.6
17285f2a
JB
42# miniopencdk is included in sources and currently maintained
43# as part of gnutls, not external package
44#BuildRequires: opencdk-devel >= 0.6.6
f72ee18c 45BuildRequires: p11-kit-devel >= 0.23.1
6b955dd3 46BuildRequires: perl-base
6c4df057 47BuildRequires: pkgconfig
e5ea410a 48BuildRequires: readline-devel
3a6f7fd8 49BuildRequires: rpmbuild(macros) >= 1.527
cf0a9984 50BuildRequires: sed >= 4.0
547ca217 51BuildRequires: tar >= 1:1.22
12f86e92 52%{?with_doc:BuildRequires: texinfo >= 4.8}
3a6f7fd8 53%{?with_tpm2:BuildRequires: tpm2-tss-devel}
06e5a035 54%{?with_tpm:BuildRequires: trousers-devel >= 0.3.11}
83ed044d 55%{?with_dane:BuildRequires: unbound-devel}
e44a8860 56BuildRequires: xz
5a115208 57BuildRequires: zlib-devel
688f68e9 58BuildRequires: zstd-devel >= 1.3.0
dd155803
JB
59Requires: %{name}-libs = %{version}-%{release}
60%{?with_dane:Requires: %{name}-dane = %{version}-%{release}}
6d7519d8
AM
61BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62
df3400fb
AM
63%define _noautostrip .*\.go
64
6d7519d8
AM
65%description
66GnuTLS is a project that aims to develop a library which provides a
67secure layer, over a reliable transport layer (ie. TCP/IP). Currently
68the gnuTLS library implements the proposed standards by the IETF's TLS
69working group.
70
fc7e37b3
JR
71%description -l pl.UTF-8
72GnuTLS to projekt mający na celu stworzenie biblioteki udostępniającej
73powłokę bezpieczeństwa ponad powłoką transportową (np. TCP/IP).
6d7519d8 74Aktualnie biblioteka gnuTLS implementuje standardy proponowane przez
fc7e37b3 75grupę roboczą IETF TLS.
6d7519d8 76
dd155803
JB
77%package libs
78Summary: GnuTLS shared libraries
79Summary(pl.UTF-8): Biblioteki współdzielone GnuTLS
80Group: Libraries
688f68e9 81Requires: libbrotli >= 1.0.0
15bbc850 82Requires: libidn2 >= 2.0.0
b5c41c44 83%{?with_af_alg:Requires: libkcapi >= 1.3.0}
a6d06b1c 84Requires: libtasn1 >= 4.11
d57a2cd4 85Requires: nettle >= 3.6
dd155803 86#Requires: opencdk >= 0.6.6
f72ee18c 87Requires: p11-kit >= 0.23.1
688f68e9
JP
88# dlopened libtss2-*
89%{?with_tpm2:Suggests: tpm2-tss}
90# dlopened libtspi
91%{?with_tpm:Suggests: trousers-libs >= 0.3.11}
1e9d4d4a
JP
92# dlopened libz.so.1
93Suggests: zlib
94# dlopened libzstd.so.1
95Suggests: zstd >= 1.3.0
dd155803
JB
96Conflicts: gnutls < 3.2.0
97
98%description libs
99GnuTLS shared libraries.
100
101%description libs -l pl.UTF-8
102Biblioteki współdzielone GnuTLS.
103
6d7519d8
AM
104%package devel
105Summary: Header files etc to develop gnutls applications
7b093bb5 106Summary(pl.UTF-8): Pliki nagłówkowe i inne do gnutls
fdd1e702 107License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
6d7519d8 108Group: Development/Libraries
dd155803 109Requires: %{name}-libs = %{version}-%{release}
d84852d5 110Requires: gmp-devel
688f68e9 111Requires: libbrotli-devel >= 1.0.0
3504caa7 112Requires: libidn2-devel
cba3b0de 113%{?with_af_alg:Requires: libkcapi-devel >= 1.3.0}
a6d06b1c 114Requires: libtasn1-devel >= 4.11
0381cb26 115Requires: libunistring-devel
d57a2cd4 116Requires: nettle-devel >= 3.6
17285f2a 117#Requires: opencdk-devel >= 0.6.6
f72ee18c 118Requires: p11-kit-devel >= 0.23.1
06e5a035 119%{?with_tpm:Requires: trousers-devel >= 0.3.11}
74be7fb4 120Requires: zlib-devel
688f68e9 121Requires: zstd-devel >= 1.3.0
6d7519d8
AM
122
123%description devel
124Header files etc to develop gnutls applications.
125
fc7e37b3
JR
126%description devel -l pl.UTF-8
127Pliki nagłówkowe i inne do gnutls.
6d7519d8
AM
128
129%package static
130Summary: Static gnutls library
7b093bb5 131Summary(pl.UTF-8): Biblioteka statyczna gnutls
fdd1e702 132License: LGPL v2.1+ (libgnutls), GPL v3+ (openssl library)
6d7519d8 133Group: Development/Libraries
72115ddc 134Requires: %{name}-devel = %{version}-%{release}
6d7519d8
AM
135
136%description static
137Static gnutls library.
138
fc7e37b3 139%description static -l pl.UTF-8
6d7519d8
AM
140Biblioteka statyczna gnutls.
141
71cef829
JB
142%package c++
143Summary: libgnutlsxx - C++ interface to gnutls library
7b093bb5 144Summary(pl.UTF-8): libgnutlsxx - interfejs C++ do biblioteki gnutls
24cf4cad 145License: LGPL v2.1+
71cef829 146Group: Libraries
dd155803 147Requires: %{name}-libs = %{version}-%{release}
71cef829
JB
148
149%description c++
150libgnutlsxx - C++ interface to gnutls library.
151
fc7e37b3 152%description c++ -l pl.UTF-8
71cef829
JB
153libgnutlsxx - interfejs C++ do biblioteki gnutls.
154
155%package c++-devel
156Summary: Header files for libgnutlsxx, a C++ interface to gnutls library
7b093bb5 157Summary(pl.UTF-8): Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls
24cf4cad 158License: LGPL v2.1+
71cef829
JB
159Group: Development/Libraries
160Requires: %{name}-c++ = %{version}-%{release}
161Requires: %{name}-devel = %{version}-%{release}
162Requires: libstdc++-devel
163
164%description c++-devel
165Header files for libgnutlsxx, a C++ interface to gnutls library.
166
fc7e37b3
JR
167%description c++-devel -l pl.UTF-8
168Pliki nagłówkowe libgnutlsxx - interfejsu C++ do biblioteki gnutls.
71cef829
JB
169
170%package c++-static
171Summary: Static version of libgnutlsxx, a C++ interface to gnutls library
7b093bb5 172Summary(pl.UTF-8): Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls
24cf4cad 173License: LGPL v2.1+
71cef829
JB
174Group: Development/Libraries
175Requires: %{name}-c++-devel = %{version}-%{release}
176
177%description c++-static
178Static version of libgnutlsxx, a C++ interface to gnutls library.
179
fc7e37b3 180%description c++-static -l pl.UTF-8
71cef829
JB
181Statyczna wersja libgnutlsxx - interfejsu C++ do biblioteki gnutls.
182
aeb71b0b
JB
183%package dane
184Summary: DANE security library
185Summary(pl.UTF-8): Biblioteka bezpieczeństwa DANE
186Group: Libraries
dd155803 187Requires: %{name}-libs = %{version}-%{release}
aeb71b0b
JB
188
189%description dane
190DANE security library.
191
192%description dane -l pl.UTF-8
193Biblioteka bezpieczeństwa DANE.
194
195%package dane-devel
196Summary: Header file for DANE security library
197Summary(pl.UTF-8): Plik nagłówkowy biblioteki bezpieczeństwa DANE
198Group: Development/Libraries
199Requires: %{name}-dane = %{version}-%{release}
200Requires: %{name}-devel = %{version}-%{release}
201Requires: unbound-devel
202
203%description dane-devel
204Header file for DANE security library.
205
206%description dane-devel -l pl.UTF-8
207Plik nagłówkowy biblioteki bezpieczeństwa DANE.
208
209%package dane-static
210Summary: Static DANE security library
211Summary(pl.UTF-8): Statyczna biblioteka bezpieczeństwa DANE
212Group: Development/Libraries
213Requires: %{name}-dane-devel = %{version}-%{release}
214
215%description dane-static
216Static DANE security library.
217
218%description dane-static -l pl.UTF-8
219Statyczna biblioteka bezpieczeństwa DANE.
220
49d0f281
JB
221%package openssl
222Summary: OpenSSL compatibility library for GnuTLS
223Summary(pl.UTF-8): Biblioteka zgodności z OpenSSL dla GnuTLS
224Group: Libraries
225Requires: %{name}-libs = %{version}-%{release}
226
227%description openssl
228OpenSSL compatibility library for GnuTLS.
229
230%description openssl -l pl.UTF-8
231Biblioteka zgodności z OpenSSL dla GnuTLS.
232
233%package openssl-devel
234Summary: Header file for gnutls-openssl library
235Summary(pl.UTF-8): Plik nagłówkowy biblioteki gnutls-openssl
236Group: Development/Libraries
237Requires: %{name}-devel = %{version}-%{release}
238Requires: %{name}-openssl = %{version}-%{release}
239
240%description openssl-devel
241Header file for gnutls-openssl library.
242
243%description openssl-devel -l pl.UTF-8
244Plik nagłówkowy biblioteki gnutls-openssl.
245
246%package openssl-static
247Summary: Static gnutls-openssl library
248Summary(pl.UTF-8): Statyczna biblioteka gnutls-openssl
249Group: Development/Libraries
250Requires: %{name}-openssl-devel = %{version}-%{release}
251
252%description openssl-static
253Static gnutls-openssl library.
254
255%description openssl-static -l pl.UTF-8
256Statyczna biblioteka gnutls-openssl.
257
6d7519d8 258%prep
0e82351f 259%setup -q
67b46ca6 260%patch0 -p1
4d87caea 261%patch1 -p1
d477527f 262%patch2 -p1
547ca217
JB
263
264%{__rm} po/stamp-po
6d7519d8
AM
265
266%build
5a115208 267%{__libtoolize}
3a6f7fd8 268%{__aclocal} -I m4 -I src/gl/m4 -I lib/unistring/m4
d6e4f2bd
JB
269%{__autoconf}
270%{__autoheader}
271%{__automake}
6d7519d8 272%configure \
b5c41c44 273 %{?with_af_alg:--enable-afalg} \
0255a2d6 274 %{!?with_doc:--disable-doc} \
4fe65b0d 275 %{__enable_disable heartbeat heartbeat-support} \
3a6f7fd8 276 %{__enable_disable ktls} \
4fe65b0d 277 %{__enable_disable srp srp-authentication} \
9f330a0f 278 %{?with_openssl:--enable-openssl-compatibility} \
41fffb0a 279 --disable-silent-rules \
63178e7f 280 %{?with_static_libs:--enable-static} \
0089fafa 281 --with-default-trust-store-file=/etc/certs/ca-certificates.crt \
12f86e92 282 %{!?with_tpm:--without-tpm} \
3a6f7fd8 283 %{__with_without tpm2} \
0255a2d6 284 --with-trousers-lib=%{_libdir}/libtspi.so.1
5a115208 285
e3a4b513 286%{__make}
6d7519d8
AM
287
288%install
289rm -rf $RPM_BUILD_ROOT
290
291%{__make} install \
d711a6c0 292 DESTDIR=$RPM_BUILD_ROOT
6d7519d8 293
fdd1e702
JB
294# although libgnutls.la is obsoleted by pkg-config, there is
295# .pc file missing for libgnutls-openssl, and it needs libgnutls.la
8e4a1eaa 296
3504caa7 297# images for (not installed) htmlized infos - already packaged with infos
5f4f75f8 298%if %{with doc}
3504caa7 299%{__rm} $RPM_BUILD_ROOT%{_docdir}/gnutls/*.png
5f4f75f8 300%endif
3504caa7 301
63178e7f 302%{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir
3c916209 303
547ca217 304%find_lang %{name}
b5ab22ee 305
6d7519d8
AM
306%clean
307rm -rf $RPM_BUILD_ROOT
308
10899c2c 309%post
10899c2c
JB
310[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
311
312%postun
10899c2c 313[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
0522b080 314
dd155803
JB
315%post libs -p /sbin/ldconfig
316%postun libs -p /sbin/ldconfig
317
71cef829
JB
318%post c++ -p /sbin/ldconfig
319%postun c++ -p /sbin/ldconfig
320
49d0f281
JB
321%post dane -p /sbin/ldconfig
322%postun dane -p /sbin/ldconfig
323
324%post openssl -p /sbin/ldconfig
325%postun openssl -p /sbin/ldconfig
326
547ca217 327%files -f %{name}.lang
6d7519d8 328%defattr(644,root,root,755)
b0199314 329%doc AUTHORS ChangeLog NEWS README.md THANKS
d191db7f 330%attr(755,root,root) %{_bindir}/certtool
71cef829 331%attr(755,root,root) %{_bindir}/gnutls-*
9dc804da 332%attr(755,root,root) %{_bindir}/ocsptool
41fffb0a 333%attr(755,root,root) %{_bindir}/p11tool
2637a2e1 334%attr(755,root,root) %{_bindir}/psktool
4fe65b0d 335%{?with_srp:%attr(755,root,root) %{_bindir}/srptool}
cc933e6a 336%{?with_tpm:%attr(755,root,root) %{_bindir}/tpmtool}
12f86e92 337%if %{with doc}
584b5346 338%{_mandir}/man1/certtool.1*
71cef829 339%{_mandir}/man1/gnutls-*.1*
f2e1d83e 340%{_mandir}/man1/ocsptool.1*
41fffb0a 341%{_mandir}/man1/p11tool.1*
2637a2e1 342%{_mandir}/man1/psktool.1*
4fe65b0d 343%{?with_srp:%{_mandir}/man1/srptool.1*}
0089fafa 344%{_mandir}/man1/tpmtool.1*
71cef829 345%{_infodir}/gnutls.info*
24cf4cad 346%{_infodir}/gnutls-*.png
41fffb0a 347%{_infodir}/pkcs11-vision.png
12f86e92 348%endif
6d7519d8 349
dd155803
JB
350%files libs
351%defattr(644,root,root,755)
352%attr(755,root,root) %{_libdir}/libgnutls.so.*.*.*
f72ee18c 353%attr(755,root,root) %ghost %{_libdir}/libgnutls.so.30
dd155803 354
6d7519d8
AM
355%files devel
356%defattr(644,root,root,755)
71cef829 357%attr(755,root,root) %{_libdir}/libgnutls.so
71cef829 358%{_libdir}/libgnutls.la
07a67478 359%{_includedir}/gnutls
aeb71b0b 360%{?with_dane:%exclude %{_includedir}/gnutls/dane.h}
71cef829 361%exclude %{_includedir}/gnutls/gnutlsxx.h
49d0f281 362%{?with_openssl:%exclude %{_includedir}/gnutls/openssl.h}
71cef829 363%{_pkgconfigdir}/gnutls.pc
12f86e92 364%{?with_doc:%{_mandir}/man3/gnutls_*.3*}
6d7519d8 365
63178e7f 366%if %{with static_libs}
6d7519d8
AM
367%files static
368%defattr(644,root,root,755)
71cef829 369%{_libdir}/libgnutls.a
63178e7f 370%endif
71cef829
JB
371
372%files c++
373%defattr(644,root,root,755)
374%attr(755,root,root) %{_libdir}/libgnutlsxx.so.*.*.*
688f68e9 375%attr(755,root,root) %ghost %{_libdir}/libgnutlsxx.so.30
71cef829
JB
376
377%files c++-devel
378%defattr(644,root,root,755)
379%attr(755,root,root) %{_libdir}/libgnutlsxx.so
380%{_libdir}/libgnutlsxx.la
381%{_includedir}/gnutls/gnutlsxx.h
382
63178e7f 383%if %{with static_libs}
71cef829
JB
384%files c++-static
385%defattr(644,root,root,755)
386%{_libdir}/libgnutlsxx.a
63178e7f 387%endif
3c916209 388
aeb71b0b
JB
389%if %{with dane}
390%files dane
391%defattr(644,root,root,755)
392%attr(755,root,root) %{_bindir}/danetool
393%attr(755,root,root) %{_libdir}/libgnutls-dane.so.*.*.*
394%attr(755,root,root) %ghost %{_libdir}/libgnutls-dane.so.0
12f86e92 395%{?with_doc:%{_mandir}/man1/danetool.1*}
aeb71b0b
JB
396
397%files dane-devel
398%defattr(644,root,root,755)
399%attr(755,root,root) %{_libdir}/libgnutls-dane.so
400%{_libdir}/libgnutls-dane.la
401%{_includedir}/gnutls/dane.h
402%{_pkgconfigdir}/gnutls-dane.pc
5f4f75f8 403%if %{with doc}
fb8445d7 404%{_mandir}/man3/dane_*.3*
5f4f75f8 405%endif
aeb71b0b 406
63178e7f 407%if %{with static_libs}
aeb71b0b
JB
408%files dane-static
409%defattr(644,root,root,755)
410%{_libdir}/libgnutls-dane.a
411%endif
63178e7f 412%endif
aeb71b0b 413
49d0f281
JB
414%if %{with openssl}
415%files openssl
416%defattr(644,root,root,755)
417%attr(755,root,root) %{_libdir}/libgnutls-openssl.so.*.*.*
418%attr(755,root,root) %ghost %{_libdir}/libgnutls-openssl.so.27
419
420%files openssl-devel
421%defattr(644,root,root,755)
422%attr(755,root,root) %{_libdir}/libgnutls-openssl.so
423%{_libdir}/libgnutls-openssl.la
424%{_includedir}/gnutls/openssl.h
425
5f4f75f8 426%if %{with static_libs}
49d0f281
JB
427%files openssl-static
428%defattr(644,root,root,755)
429%{_libdir}/libgnutls-openssl.a
430%endif
5f4f75f8 431%endif
This page took 0.236585 seconds and 5 git commands to generate.