2 # _without_embed - don't build uClibc version
3 %include /usr/lib/rpm/macros.perl
4 Summary: OpenSSL Toolkit libraries for the "Secure Sockets Layer" (SSL v2/v3)
5 Summary(de): Secure Sockets Layer (SSL)-Kommunikationslibrary
6 Summary(fr): Utilitaires de communication SSL (Secure Sockets Layer)
10 License: Apache-style License
11 Vendor: The OpenSSL Project
14 Group(es): Bibliotecas
17 Group(pt_BR): Bibliotecas
20 Source0: ftp://ftp.openssl.org/source/%{name}-%{version}.tar.gz
21 Patch0: %{name}-alpha-ccc.patch
22 # patch1 is only for 0.9.6a version. This version isn't binary
23 # compatibile with 0.9.6 but have this same soname.
24 Patch1: %{name}-soname.patch
25 Patch2: %{name}-optflags.patch
26 Patch3: %{name}-nocrypt.patch
27 BuildRequires: perl-devel >= 5.6.1
28 BuildRequires: textutils
29 %if %{!?_without_embed:1}%{?_without_embed:0}
30 BuildRequires: uClibc-devel
31 BuildRequires: uClibc-static
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 Obsoletes: SSLeay-devel
36 Obsoletes: SSLeay-perl
37 Obsoletes: libopenssl0
39 %define embed_path /usr/lib/embed
40 %define embed_cc %{_arch}-uclibc-cc
41 %define embed_cflags %{rpmcflags} -Os
42 %define uclibc_prefix /usr/%{_arch}-linux-uclibc
45 The OpenSSL Project is a collaborative effort to develop a robust,
46 commercial-grade, full-featured, and Open Source toolkit implementing
47 the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS
48 v1) protocols with full-strength cryptography world-wide. The project
49 is managed by a worldwide community of volunteers that use the
50 Internet to communicate, plan, and develop the OpenSSL tookit and its
51 related documentation.
53 OpenSSL is based on the excellent SSLeay library developed by Eric A.
54 Young and Tim J. Hudson. The OpenSSL toolkit is licensed under an
55 Apache-style licence, which basically means that you are free to get
56 and use it for commercial and non-commercial purposes subject to some
57 simple license conditions.
59 This package contains shared libraries only, install openssl-tools if
60 you want to use openssl cmdline tool.
63 Openssl enthält das OpenSSL Zertifikatsmanagementtool und shared
64 libraries, die verschiedene Verschlüsselungs- und
65 Entschlüsselungsalgorithmen und
66 - -protokolle, wie DES, RC4, RSA und SSL zur Verfügung stellen.
69 OpenSSL est un outiil de gestion des certificats et les librairies
70 partagees qui fournit plusieurs protocoles et algorithmes de
71 codage/decodage, incluant DES, RC4, RSA et SSL.
74 Summary: OpenSSL command line tool and utilities
75 Group: Applications/Communications
76 Group(de): Applikationen/Kommunikation
77 Group(pl): Aplikacje/Komunikacja
78 Requires: %{name} = %{version}
81 The OpenSSL Toolkit cmdline tool openssl and utility scripts.
84 Summary: OpenSSL utilities written in Perl
85 Group: Applications/Communications
86 Group(de): Applikationen/Kommunikation
87 Group(pl): Aplikacje/Komunikacja
88 Requires: %{name} = %{version}
90 %description tools-perl
91 OpenSSL Toolkit tools written in Perl.
94 Summary: Development part of OpenSSL Toolkit libraries
95 Summary(de): Secure Sockets Layer Kommunikationslibrary: statische libraries+header
96 Summary(fr): Librairies statiques, headers et utilitaires pour communication SSL
97 Summary(pl): Czê¶æ bibiloteki OpenSSL przeznaczona dla programistów
98 Group: Development/Libraries
99 Group(de): Entwicklung/Libraries
100 Group(es): Desarrollo/Bibliotecas
101 Group(fr): Development/Librairies
102 Group(pl): Programowanie/Biblioteki
103 Group(pt_BR): Desenvolvimento/Bibliotecas
104 Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
105 Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
106 Requires: %{name} = %{version}
107 Obsoletes: libopenssl0-devel
110 Development part of OpenSSL library.
112 %description devel -l pl
113 Czê¶æ bibiloteki OpenSSL przeznaczona dla programistów.
116 Summary: Development part of OpenSSL Toolkit embedded libraries
117 Summary(pl): Czê¶æ bibiloteki OpenSSL przeznaczona dla aplikacji wbudowanych
118 Group: Development/Libraries
119 Group(de): Entwicklung/Libraries
120 Group(es): Desarrollo/Bibliotecas
121 Group(fr): Development/Librairies
122 Group(pl): Programowanie/Biblioteki
123 Group(pt_BR): Desenvolvimento/Bibliotecas
124 Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
125 Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
126 Requires: %{name} = %{version}
128 %description devel-embed
129 Development part of OpenSSL library for embedded applications.
131 %description -l pl devel-embed
132 Czê¶æ bibiloteki OpenSSL przeznaczona dla programistów aplikacji
136 Summary: Static OpenSSL libraries
137 Summary(pl): Statyczne wersje bibliotek z OpenSSL
138 Group: Development/Libraries
139 Group(de): Entwicklung/Libraries
140 Group(es): Desarrollo/Bibliotecas
141 Group(fr): Development/Librairies
142 Group(pl): Programowanie/Biblioteki
143 Group(pt_BR): Desenvolvimento/Bibliotecas
144 Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
145 Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
146 Requires: %{name}-devel = %{version}
149 Static OpenSSL Toolkit libraries.
151 %description static -l pl
152 Statyczne wersje bibliotek z OpenSSL.
162 for f in ` grep -r "/usr/local/bin/perl" . | cut -d":" -f1`; do
163 perl -pi -e 's#/usr/local/bin/perl#%{_bindir}/perl#g' $f
168 perl util/perlpath.pl %{_bindir}/perl
170 OPTFLAGS="%{rpmcflags}"
173 ./Configure --openssldir=%{_var}/lib/%{name} linux-elf shared 386
175 %ifarch i586 i686 athlon
176 ./Configure --openssldir=%{_var}/lib/%{name} linux-elf shared
179 ./Configure --openssldir=%{_var}/lib/%{name} linux-ppc shared
182 ./Configure --openssldir=%{_var}/lib/%{name} threads linux-alpha+bwx-gcc shared
185 ./Configure --openssldir=%{_var}/lib/%{name} threads linux-sparcv8 shared
188 %if %{!?_without_embed:1}%{?_without_embed:0}
189 %{__make} CC=%{embed_cc}
190 %{__make} rehash CC=%{embed_cc}
191 for f in RSAglue crypto ssl ; do
192 mv -f lib$f.a lib$f.a-embed
200 # Conv PODs to man pages. "openssl_" prefix is added to each manpage
201 # to avoid potential conflicts with others packages.
202 center="OpenSSL 0.9.6"
205 cd doc/apps || exit 1
206 perl -pi -e 's/(\W)((?<!openssl_)\w+)(\(\d\))/$1openssl_$2$3/g; s/openssl_openssl/openssl/g;' *.pod;
209 if [ $pod != "openssl.pod" ]; then
210 mv -f $pod openssl_$pod;
215 if [ $pod = "openssl_config.pod" ]; then
219 manpage=`basename $pod .pod`.$sec;
220 pod2man --section="$sec" --release="$rel" --center="$center" \
227 for dir in ssl crypto; do
229 if [ $dir = "ssl" ]; then
230 rel="OpenSSL SSL/TLS library"
231 elif [ $dir = "crypto" ]; then
232 rel="OpenSSL cryptographic library"
235 perl -p -i -e 's/(\W)((?<!openssl_)\w+)(\(\d\))/$1openssl_$2$3/g; s/openssl_openssl/openssl/g;' *.pod;
238 sec=`[ "$pod" = "des_modes.pod" ] && echo 7 || echo 3`;
239 mv -f $pod openssl_$pod;
241 manpage=`basename $pod .pod`.$sec;
242 pod2man --section="$sec" --release="$rel" --center=" " $pod > $manpage;
253 rm -rf $RPM_BUILD_ROOT
254 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},%{_libdir}/%{name}} \
255 $RPM_BUILD_ROOT%{_mandir}/man{1,3,5,7}
258 INSTALLTOP=%{_prefix} \
259 INSTALL_PREFIX=$RPM_BUILD_ROOT
261 install libRSAglue.a libcrypto.a libssl.a $RPM_BUILD_ROOT%{_libdir}
262 install lib*.so.*.* $RPM_BUILD_ROOT%{_libdir}
263 ln -sf libcrypto.so.*.* $RPM_BUILD_ROOT%{_libdir}/libcrypto.so
264 ln -sf libssl.so.*.* $RPM_BUILD_ROOT%{_libdir}/libssl.so
266 mv -f $RPM_BUILD_ROOT%{_var}/lib/%{name}/openssl.cnf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
267 ln -s %{_sysconfdir}/%{name}/openssl.cnf \
268 $RPM_BUILD_ROOT%{_var}/lib/%{name}/%{name}.cnf
270 mv -f $RPM_BUILD_ROOT%{_var}/lib/%{name}/misc/* $RPM_BUILD_ROOT%{_libdir}/%{name}
271 rm -rf $RPM_BUILD_ROOT%{_var}/lib/%{name}/misc
273 mv -f $RPM_BUILD_ROOT%{_bindir}/c_rehash $RPM_BUILD_ROOT%{_libdir}/%{name}
275 find $RPM_BUILD_ROOT%{_mandir} -type f | xargs rm -f
276 install doc/apps/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
277 install doc/apps/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
278 install doc/ssl/*.3 doc/crypto/*.3 $RPM_BUILD_ROOT%{_mandir}/man3
279 install doc/crypto/*.7 $RPM_BUILD_ROOT%{_mandir}/man7
281 %if %{!?_without_embed:1}%{?_without_embed:0}
282 install -d $RPM_BUILD_ROOT%{uclibc_prefix}/{include,lib}
283 for f in RSAglue crypto ssl ; do
284 install lib$f.a-embed $RPM_BUILD_ROOT%{uclibc_prefix}/lib/lib$f.a
286 cp -a $RPM_BUILD_ROOT%{_includedir}/%{name} \
287 $RPM_BUILD_ROOT%{uclibc_prefix}/include
290 gzip -9nf CHANGES CHANGES.SSLeay LICENSE NEWS README doc/*.txt
292 %post -p /sbin/ldconfig
293 %postun -p /sbin/ldconfig
296 rm -rf $RPM_BUILD_ROOT
299 %defattr(644,root,root,755)
300 %attr(755,root,root) %{_libdir}/lib*.so.*.*
301 %doc {CHANGES,CHANGES.SSLeay,LICENSE,NEWS,README}.gz
302 %doc doc/*.txt.gz doc/openssl_button.gif doc/openssl_button.html
305 %defattr(644,root,root,755)
306 %dir %{_sysconfdir}/%{name}
307 %dir %{_var}/lib/%{name}
308 %dir %{_var}/lib/%{name}/private
309 %dir %{_var}/lib/%{name}/certs
310 %verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/%{name}/openssl.cnf
311 %verify(not md5 size mtime) %config(noreplace) %{_var}/lib/%{name}/openssl.cnf
313 %attr(755,root,root) %{_bindir}/%{name}
314 %dir %{_libdir}/%{name}
315 %attr(755,root,root) %{_libdir}/%{name}/CA.sh
316 %attr(755,root,root) %{_libdir}/%{name}/c_hash
317 %attr(755,root,root) %{_libdir}/%{name}/c_info
318 %attr(755,root,root) %{_libdir}/%{name}/c_issuer
319 %attr(755,root,root) %{_libdir}/%{name}/c_name
321 %{_mandir}/man1/openssl.1*
322 %{_mandir}/man1/openssl_asn1parse.1*
323 %{_mandir}/man1/openssl_ca.1*
324 %{_mandir}/man1/openssl_ciphers.1*
325 %{_mandir}/man1/openssl_crl.1*
326 %{_mandir}/man1/openssl_crl2pkcs7.1*
327 %{_mandir}/man1/openssl_dgst.1*
328 %{_mandir}/man1/openssl_dhparam.1*
329 %{_mandir}/man1/openssl_dsa.1*
330 %{_mandir}/man1/openssl_dsaparam.1*
331 %{_mandir}/man1/openssl_enc.1*
332 %{_mandir}/man1/openssl_gendsa.1*
333 %{_mandir}/man1/openssl_genrsa.1*
334 %{_mandir}/man1/openssl_nseq.1*
335 %{_mandir}/man1/openssl_passwd.1*
336 %{_mandir}/man1/openssl_pkcs12.1*
337 %{_mandir}/man1/openssl_pkcs7.1*
338 %{_mandir}/man1/openssl_pkcs8.1*
339 %{_mandir}/man1/openssl_rand.1*
340 %{_mandir}/man1/openssl_req.1*
341 %{_mandir}/man1/openssl_rsa.1*
342 %{_mandir}/man1/openssl_s_client.1*
343 %{_mandir}/man1/openssl_s_server.1*
344 %{_mandir}/man1/openssl_sess_id.1*
345 %{_mandir}/man1/openssl_smime.1*
346 %{_mandir}/man1/openssl_speed.1*
347 %{_mandir}/man1/openssl_spkac.1*
348 %{_mandir}/man1/openssl_verify.1*
349 %{_mandir}/man1/openssl_version.1*
350 %{_mandir}/man1/openssl_x509.1*
354 %defattr(644,root,root,755)
355 %attr(755,root,root) %{_libdir}/%{name}/CA.pl
356 %attr(755,root,root) %{_libdir}/%{name}/der_chop
357 %attr(755,root,root) %{_libdir}/%{name}/c_rehash
358 %{_mandir}/man1/openssl_CA.pl.1*
361 %defattr(644,root,root,755)
362 %attr(755,root,root) %{_libdir}/lib*.so
363 %{_includedir}/%{name}
366 %if %{!?_without_embed:1}%{?_without_embed:0}
368 %defattr(644,root,root,755)
369 %{uclibc_prefix}/lib/*
370 %{uclibc_prefix}/include/%{name}
374 %defattr(644,root,root,755)