]>
Commit | Line | Data |
---|---|---|
a3f8074d JB |
1 | Summary: Light-weight cryptographic and SSL/TLS library |
2 | Summary(pl.UTF-8): Lekka biblioteka kryptograficzna oraz SSL/TLS | |
3 | Name: mbedtls | |
bf36c92e JB |
4 | Version: 1.3.11 |
5 | Release: 1 | |
a3f8074d JB |
6 | License: GPL v2+ |
7 | Group: Libraries | |
8 | Source0: https://tls.mbed.org/code/releases/%{name}-%{version}-gpl.tgz | |
bf36c92e | 9 | # Source0-md5: c02ce2e54862d678604794ee484fb59e |
e64b4bc8 | 10 | Patch0: %{name}-x32.patch |
a3f8074d JB |
11 | URL: https://tls.mbed.org/ |
12 | BuildRequires: cmake >= 2.6 | |
13 | BuildRequires: doxygen | |
14 | BuildRequires: rpmbuild(macros) >= 1.605 | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | mbedTLS is a light-weight open source cryptographic and SSL/TLS | |
19 | library written in C. mbedTLS makes it easy for developers to include | |
20 | cryptographic and SSL/TLS capabilities in their (embedded) | |
21 | applications with as little hassle as possible. | |
22 | ||
23 | %description -l pl.UTF-8 | |
24 | mbedTLS to lekka, mająca otwarte źródła biblioteka kryptograficzna | |
25 | oraz SSL/TLS napisana w C. mbedTLS ułatwia programistom dołączanie | |
26 | funkcji kryptograficznych i SSL/TLS do swoich (wbudowanych) aplikacji | |
27 | przy jak najmniejszym narzucie. | |
28 | ||
29 | %package devel | |
30 | Summary: Development files for mbedTLS | |
31 | Summary(pl.UTF-8): Pliki programistyczne biblioteki mbedTLS | |
32 | Group: Development/Libraries | |
33 | Requires: %{name} = %{version}-%{release} | |
34 | # headers | |
35 | Conflicts: polarssl-devel | |
36 | ||
37 | %description devel | |
38 | This package contains the header files for developing applications | |
39 | that use mbedTLS. | |
40 | ||
41 | %description devel -l pl.UTF-8 | |
42 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji | |
43 | wykorzystujących bibliotekę mbedTLS. | |
44 | ||
45 | %package static | |
46 | Summary: Static mbedTLS library | |
47 | Summary(pl.UTF-8): Statyczna biblioteka mbedTLS | |
48 | Group: Development/Libraries | |
49 | Requires: %{name}-devel = %{version}-%{release} | |
50 | ||
51 | %description static | |
52 | Static mbedTLS library. | |
53 | ||
54 | %description static -l pl.UTF-8 | |
55 | Statyczna biblioteka mbedTLS. | |
56 | ||
57 | %prep | |
58 | %setup -q | |
e64b4bc8 | 59 | %patch0 -p1 |
a3f8074d JB |
60 | |
61 | %build | |
62 | install -d build | |
63 | cd build | |
64 | %cmake .. \ | |
65 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ | |
66 | -DUSE_SHARED_MBEDTLS_LIBRARY:BOOL=1 | |
67 | ||
68 | %{__make} | |
69 | %{__make} apidoc | |
70 | ||
71 | %if %{with tests} | |
72 | # Tests are not stable on 64-bit | |
73 | ctest --output-on-failure | |
74 | %endif | |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %{__make} -C build install \ | |
80 | DESTDIR=$RPM_BUILD_ROOT | |
81 | ||
82 | install -d $RPM_BUILD_ROOT%{_libdir} | |
83 | mv $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_libdir}/%{name} | |
84 | ||
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %post -p /sbin/ldconfig | |
89 | %postun -p /sbin/ldconfig | |
90 | ||
91 | %files | |
92 | %defattr(644,root,root,755) | |
93 | %doc ChangeLog README.rst | |
94 | %attr(755,root,root) %{_libdir}/libmbedtls.so.*.*.* | |
bf36c92e | 95 | %attr(755,root,root) %ghost %{_libdir}/libmbedtls.so.9 |
a3f8074d JB |
96 | %dir %{_libdir}/%{name} |
97 | %attr(755,root,root) %{_libdir}/%{name}/aescrypt2 | |
98 | %attr(755,root,root) %{_libdir}/%{name}/benchmark | |
99 | %attr(755,root,root) %{_libdir}/%{name}/cert_app | |
100 | %attr(755,root,root) %{_libdir}/%{name}/cert_req | |
101 | %attr(755,root,root) %{_libdir}/%{name}/cert_write | |
102 | %attr(755,root,root) %{_libdir}/%{name}/crl_app | |
103 | %attr(755,root,root) %{_libdir}/%{name}/crypt_and_hash | |
104 | %attr(755,root,root) %{_libdir}/%{name}/dh_client | |
105 | %attr(755,root,root) %{_libdir}/%{name}/dh_genprime | |
106 | %attr(755,root,root) %{_libdir}/%{name}/dh_server | |
107 | %attr(755,root,root) %{_libdir}/%{name}/gen_entropy | |
108 | %attr(755,root,root) %{_libdir}/%{name}/gen_key | |
109 | %attr(755,root,root) %{_libdir}/%{name}/gen_random_ctr_drbg | |
110 | %attr(755,root,root) %{_libdir}/%{name}/gen_random_havege | |
111 | %attr(755,root,root) %{_libdir}/%{name}/generic_sum | |
112 | %attr(755,root,root) %{_libdir}/%{name}/hello | |
113 | %attr(755,root,root) %{_libdir}/%{name}/key_app | |
114 | %attr(755,root,root) %{_libdir}/%{name}/md5sum | |
bf36c92e | 115 | %attr(755,root,root) %{_libdir}/%{name}/mini_client |
a3f8074d JB |
116 | %attr(755,root,root) %{_libdir}/%{name}/mpi_demo |
117 | %attr(755,root,root) %{_libdir}/%{name}/o_p_test | |
118 | %attr(755,root,root) %{_libdir}/%{name}/pem2der | |
119 | %attr(755,root,root) %{_libdir}/%{name}/pk_decrypt | |
120 | %attr(755,root,root) %{_libdir}/%{name}/pk_encrypt | |
121 | %attr(755,root,root) %{_libdir}/%{name}/pk_sign | |
122 | %attr(755,root,root) %{_libdir}/%{name}/pk_verify | |
123 | %attr(755,root,root) %{_libdir}/%{name}/req_app | |
124 | %attr(755,root,root) %{_libdir}/%{name}/rsa_decrypt | |
125 | %attr(755,root,root) %{_libdir}/%{name}/rsa_encrypt | |
126 | %attr(755,root,root) %{_libdir}/%{name}/rsa_genkey | |
127 | %attr(755,root,root) %{_libdir}/%{name}/rsa_sign | |
128 | %attr(755,root,root) %{_libdir}/%{name}/rsa_verify | |
129 | %attr(755,root,root) %{_libdir}/%{name}/selftest | |
130 | %attr(755,root,root) %{_libdir}/%{name}/sha1sum | |
131 | %attr(755,root,root) %{_libdir}/%{name}/sha2sum | |
132 | %attr(755,root,root) %{_libdir}/%{name}/ssl_cert_test | |
133 | %attr(755,root,root) %{_libdir}/%{name}/ssl_client1 | |
134 | %attr(755,root,root) %{_libdir}/%{name}/ssl_client2 | |
135 | %attr(755,root,root) %{_libdir}/%{name}/ssl_fork_server | |
136 | %attr(755,root,root) %{_libdir}/%{name}/ssl_mail_client | |
137 | %attr(755,root,root) %{_libdir}/%{name}/ssl_pthread_server | |
138 | %attr(755,root,root) %{_libdir}/%{name}/ssl_server | |
139 | %attr(755,root,root) %{_libdir}/%{name}/ssl_test | |
140 | %attr(755,root,root) %{_libdir}/%{name}/strerror | |
141 | ||
142 | %files devel | |
143 | %defattr(644,root,root,755) | |
144 | %doc apidoc/* | |
145 | %attr(755,root,root) %{_libdir}/libmbedtls.so | |
146 | %{_includedir}/polarssl | |
147 | ||
148 | %files static | |
149 | %defattr(644,root,root,755) | |
150 | %{_libdir}/libmbedtls.a |