]>
Commit | Line | Data |
---|---|---|
a862738c JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
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 | |
7 | Name: ntbtls | |
30e6ab07 | 8 | Version: 0.1.2 |
1b2b4f21 | 9 | Release: 2 |
a862738c JB |
10 | License: GPL v3+ |
11 | Group: Libraries | |
12 | Source0: ftp://ftp.gnupg.org/gcrypt/ntbtls/%{name}-%{version}.tar.bz2 | |
30e6ab07 | 13 | # Source0-md5: 81490fbbe551768019689071443f4e36 |
a862738c JB |
14 | URL: https://wiki.gnupg.org/NTBTLS |
15 | BuildRequires: libgcrypt-devel >= 1.6.0 | |
16 | BuildRequires: libgpg-error-devel >= 1.17 | |
17 | BuildRequires: libksba-devel >= 1.2.0 | |
18 | BuildRequires: zlib-devel | |
19 | Requires: libgcrypt >= 1.6.0 | |
c381e32d | 20 | Requires: libgpg-error >= 1.17 |
a862738c JB |
21 | Requires: libksba >= 1.2.0 |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | NTBTLS ("Not Too Bad TLS") is a TLS client-only library developed by | |
26 | Werner Koch. | |
27 | ||
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 | |
30 | handling. | |
31 | ||
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. | |
35 | ||
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. | |
39 | ||
40 | %package devel | |
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.6.0 | |
46 | Requires: libgpg-error-devel >= 1.17 | |
47 | Requires: libksba-devel >= 1.2.0 | |
48 | Requires: zlib-devel | |
49 | ||
50 | %description devel | |
51 | Header files for NTBTLS library. | |
52 | ||
53 | %description devel -l pl.UTF-8 | |
54 | Pliki nagłówkowe biblioteki NTBTLS. | |
55 | ||
56 | %package static | |
57 | Summary: Static NTBTLS library | |
58 | Summary(pl.UTF-8): Statyczna biblioteka NTBTLS | |
59 | Group: Development/Libraries | |
60 | Requires: %{name}-devel = %{version}-%{release} | |
61 | ||
62 | %description static | |
63 | Static NTBTLS library. | |
64 | ||
65 | %description static -l pl.UTF-8 | |
66 | Statyczna biblioteka NTBTLS. | |
67 | ||
68 | %prep | |
69 | %setup -q | |
70 | ||
71 | %build | |
72 | %configure \ | |
73 | %{?with_static_libs:--enable-static} | |
74 | %{__make} | |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %{__make} install \ | |
80 | DESTDIR=$RPM_BUILD_ROOT | |
81 | ||
82 | %clean | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %post -p /sbin/ldconfig | |
86 | %postun -p /sbin/ldconfig | |
87 | ||
88 | %files | |
89 | %defattr(644,root,root,755) | |
90 | %doc AUTHORS ChangeLog NEWS README | |
91 | %attr(755,root,root) %{_libdir}/libntbtls.so.*.*.* | |
92 | %attr(755,root,root) %ghost %{_libdir}/libntbtls.so.0 | |
93 | ||
94 | %files devel | |
95 | %defattr(644,root,root,755) | |
96 | %attr(755,root,root) %{_bindir}/ntbtls-config | |
97 | %attr(755,root,root) %{_libdir}/libntbtls.so | |
98 | %{_libdir}/libntbtls.la | |
99 | %{_includedir}/ntbtls.h | |
100 | %{_aclocaldir}/ntbtls.m4 | |
101 | ||
102 | %if %{with static_libs} | |
103 | %files static | |
104 | %defattr(644,root,root,755) | |
105 | %{_libdir}/libntbtls.a | |
106 | %endif |