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