3 %bcond_without static_libs # don't build static libraries
5 Summary: Not Too Bad Transport Layer Security
6 Summary(pl.UTF-8): Not Too Bad Transport Layer Security - "nie taka zła" implementacja TLS
12 Source0: ftp://ftp.gnupg.org/gcrypt/ntbtls/%{name}-%{version}.tar.bz2
13 # Source0-md5: 31ec7569b2844eb8cc898f76bbd60485
14 URL: https://wiki.gnupg.org/NTBTLS
15 BuildRequires: libgcrypt-devel >= 1.9.0
16 BuildRequires: libgpg-error-devel >= 1.25
17 BuildRequires: libksba-devel >= 1.2.0
18 BuildRequires: zlib-devel
19 Requires: libgcrypt >= 1.9.0
20 Requires: libgpg-error >= 1.25
21 Requires: libksba >= 1.2.0
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 NTBTLS ("Not Too Bad TLS") is a TLS client-only library developed by
28 It started (2014) as a stripped down fork of PolarSSL (now called mbed
29 tls), using libgcrypt and existing GnuPG modules for X.509 certificate
32 %description -l pl.UTF-8
33 MTBTLS ("Not Too Bad TLS" - nie taki zły TLS) to biblioteka
34 (wyłącznie) kliencka TLS tworzona przez Wernera Kocha.
36 Projekt wystartował w 2014 roku jako przycięte odgałęzienie projektu
37 PolarSSL (teraz mającego nazwę mbed tls), wykorzystujące libgcrypt
38 oraz istniejące moduły GnuPG do obsługi certyfikatów X.509.
41 Summary: Header files for NTBTLS library
42 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki NTBTLS
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
45 Requires: libgcrypt-devel >= 1.9.0
46 Requires: libgpg-error-devel >= 1.25
47 Requires: libksba-devel >= 1.2.0
51 Header files for NTBTLS library.
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe biblioteki NTBTLS.
57 Summary: Static NTBTLS library
58 Summary(pl.UTF-8): Statyczna biblioteka NTBTLS
59 Group: Development/Libraries
60 Requires: %{name}-devel = %{version}-%{release}
63 Static NTBTLS library.
65 %description static -l pl.UTF-8
66 Statyczna biblioteka NTBTLS.
73 %{?with_static_libs:--enable-static}
77 rm -rf $RPM_BUILD_ROOT
80 DESTDIR=$RPM_BUILD_ROOT
82 # obsoleted by pkg-config
83 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libntbtls.la
86 rm -rf $RPM_BUILD_ROOT
88 %post -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
92 %defattr(644,root,root,755)
93 %doc AUTHORS ChangeLog NEWS README
94 %attr(755,root,root) %{_libdir}/libntbtls.so.*.*.*
95 %attr(755,root,root) %ghost %{_libdir}/libntbtls.so.0
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_bindir}/ntbtls-config
100 %attr(755,root,root) %{_libdir}/libntbtls.so
101 %{_includedir}/ntbtls.h
102 %{_pkgconfigdir}/ntbtls.pc
103 %{_aclocaldir}/ntbtls.m4
105 %if %{with static_libs}
107 %defattr(644,root,root,755)
108 %{_libdir}/libntbtls.a