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