1 %include /usr/lib/rpm/macros.perl
2 Summary: OpenSSL Toolkit libraries for the "Secure Sockets Layer" (SSL v2/v3)
3 Summary(de): Secure Sockets Layer (SSL)-Kommunikationslibrary
4 Summary(es): Biblioteca C que suministra algoritmos y protocolos criptográficos
5 Summary(fr): Utilitaires de communication SSL (Secure Sockets Layer)
6 Summary(pl): Biblioteki OpenSSL (SSL v2/v3)
7 Summary(pt_BR): Uma biblioteca C que fornece vários algoritmos e protocolos criptográficos
8 Summary(ru): âÉÂÌÉÏÔÅËÉ É ÕÔÉÌÉÔÙ ÄÌÑ ÓÏÅÄÉÎÅÎÉÊ ÞÅÒÅÚ Secure Sockets Layer
9 Summary(uk): â¦Â̦ÏÔÅËÉ ÔÁ ÕÔÉ̦ÔÉ ÄÌÑ Ú'¤ÄÎÁÎØ ÞÅÒÅÚ Secure Sockets Layer
13 License: Apache-style License
15 Source0: ftp://ftp.openssl.org/source/%{name}-%{version}.tar.gz
16 # Source0-md5: b2d37d7eb8a5a5040d834105d5ae1a50
17 Source1: %{name}-ca-bundle.crt
19 Source3: %{name}-ssl-certificate.sh
20 Patch0: %{name}-alpha-ccc.patch
21 Patch1: %{name}-optflags.patch
22 Patch2: %{name}-globalCA.diff
23 Patch3: %{name}-include.patch
24 Patch4: %{name}-md5-sparcv9.patch
25 Patch5: %{name}-ssl-algs.patch
26 URL: http://www.openssl.org/
27 BuildRequires: perl-devel >= 1:5.6.1
28 BuildRequires: rpm-perlprov >= 4.1-13
30 Obsoletes: SSLeay-devel
31 Obsoletes: SSLeay-perl
32 Obsoletes: libopenssl0
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 The OpenSSL Project is a collaborative effort to develop a robust,
37 commercial-grade, full-featured, and Open Source toolkit implementing
38 the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS
39 v1) protocols with full-strength cryptography world-wide. The project
40 is managed by a worldwide community of volunteers that use the
41 Internet to communicate, plan, and develop the OpenSSL tookit and its
42 related documentation.
44 OpenSSL is based on the excellent SSLeay library developed by Eric A.
45 Young and Tim J. Hudson. The OpenSSL toolkit is licensed under an
46 Apache-style licence, which basically means that you are free to get
47 and use it for commercial and non-commercial purposes subject to some
48 simple license conditions.
50 This package contains shared libraries only, install openssl-tools if
51 you want to use openssl cmdline tool.
54 Openssl enthält das OpenSSL Zertifikatsmanagementtool und shared
55 libraries, die verschiedene Verschlüsselungs- und
56 Entschlüsselungsalgorithmen und -protokolle, wie DES, RC4, RSA und SSL
57 zur Verfügung stellen.
60 Biblioteca C que suministra algoritmos y protocolos criptográficos.
63 OpenSSL est un outiil de gestion des certificats et les librairies
64 partagees qui fournit plusieurs protocoles et algorithmes de
65 codage/decodage, incluant DES, RC4, RSA et SSL.
68 Implementacja protoko³ów kryptograficznych Secure Socket Layer (SSL)
69 v2/v3 oraz Transport Layer Security (TLS v1).
72 Uma biblioteca C que fornece vários algoritmos e protocolos
73 criptográficos, incluindo DES, RC4, RSA e SSL. Inclui bibliotecas
74 compartilhadas e utilitários.
77 ðÒÏÇÒÁÍÍÁ openssl ÄÌÑ ÒÁÂÏÔÙ Ó ÓÅÒÔÉÆÉËÁÔÁÍÉ É ÒÁÚÄÅÌÑÅÍÙÅ ÂÉÂÌÉÏÔÅËÉ,
78 ËÏÔÏÒÙÅ ÒÅÁÌÉÚÕÀÔ ÍÎÏÖÅÔÓ×Ï ËÒÉÐÔÏÇÒÁÆÉÞÅÓËÉÈ ÁÌÇÏÒÉÔÍÏ×, ×ËÌÀÞÁÑ DES,
82 ðÒÏÇÒÁÍÁ openssl ÄÌÑ ÒÏÂÏÔÉ Ú ÓÅÒÔÉƦËÁÔÁÍÉ ÔÁ ¦Â̦ÏÔÅËÉ ÓЦÌØÎÏÇÏ
83 ËÏÒÉÓÔÕ×ÁÎÎÑ, ÝÏ ÒÅÁ̦ÚÕÀÔØ ×ÅÌÉËÕ Ë¦ÌØ˦ÓÔØ ËÒÉÐÔÏÇÒÁƦÞÎÉÈ
84 ÁÌÇÏÒÉÔͦ×, ×ËÌÀÞÁÀÞÉ DES, RC4, RSA ÔÁ SSL.
87 Summary: OpenSSL command line tool and utilities
88 Summary(pl): Zestaw narzêdzi i skryptów
89 Group: Applications/Communications
90 Requires: %{name} = %{version}-%{release}
93 The OpenSSL Toolkit cmdline tool openssl and utility scripts.
95 %description tools -l pl
96 Zestaw narzêdzi i skryptów wywo³ywanych z linii poleceñ.
99 Summary: OpenSSL utilities written in Perl
100 Summary(pl): Narzêdzia OpenSSL napisane w perlu
101 Group: Applications/Communications
102 Requires: %{name} = %{version}-%{release}
104 %description tools-perl
105 OpenSSL Toolkit tools written in Perl.
107 %description tools-perl -l pl
108 Narzêdzia OpenSSL napisane w perlu.
111 Summary: Development part of OpenSSL Toolkit libraries
112 Summary(de): Secure Sockets Layer Kommunikationslibrary: statische libraries+header
113 Summary(es): Bibliotecas y archivos de inclusión para desarrollo OpenSSL
114 Summary(fr): Librairies statiques, headers et utilitaires pour communication SSL
115 Summary(pl): Czê¶æ bibiloteki OpenSSL przeznaczona dla programistów
116 Summary(pt_BR): Bibliotecas e arquivos de inclusão para desenvolvimento OpenSSL
117 Summary(ru): âÉÂÌÉÏÔÅËÉ, ÈÅÄÅÒÙ É ÕÔÉÌÉÔÙ ÄÌÑ Secure Sockets Layer
118 Summary(uk): â¦Â̦ÏÔÅËÉ, ÈÅÄÅÒÉ ÔÁ ÕÔÉ̦ÔÉ ÄÌÑ Secure Sockets Layer
119 Group: Development/Libraries
120 Requires: %{name} = %{version}-%{release}
121 Obsoletes: libopenssl0-devel
124 Development part of OpenSSL library.
126 %description devel -l es
127 Bibliotecas y archivos de inclusión para desarrollo OpenSSL
129 %description devel -l pl
130 Czê¶æ biblioteki OpenSSL przeznaczona dla programistów.
132 %description devel -l pt_BR
133 Uma biblioteca C que fornece vários algoritmos e protocolos
134 criptográficos, incluindo DES, RC4, RSA e SSL. Inclui bibliotecas e
135 arquivos de inclusão para desenvolvimento.
137 %description devel -l ru
138 ðÒÏÇÒÁÍÍÁ openssl ÄÌÑ ÒÁÂÏÔÙ Ó ÓÅÒÔÉÆÉËÁÔÁÍÉ É ÒÁÚÄÅÌÑÅÍÙÅ ÂÉÂÌÉÏÔÅËÉ,
139 ËÏÔÏÒÙÅ ÒÅÁÌÉÚÕÀÔ ÍÎÏÖÅÔÓ×Ï ËÒÉÐÔÏÇÒÁÆÉÞÅÓËÉÈ ÁÌÇÏÒÉÔÍÏ×, ×ËÌÀÞÁÑ DES,
140 RC4, RSA É SSL. ÷ËÌÀÞÁÅÔ ÂÉÂÌÉÏÔÅËÉ É ÈÅÄÅÒÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ
141 Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ SSL.
143 %description devel -l uk
144 ðÒÏÇÒÁÍÁ openssl ÄÌÑ ÒÏÂÏÔÉ Ú ÓÅÒÔÉƦËÁÔÁÍÉ ÔÁ ¦Â̦ÏÔÅËÉ ÓЦÌØÎÏÇÏ
145 ËÏÒÉÓÔÕ×ÁÎÎÑ, ÝÏ ÒÅÁ̦ÚÕÀÔØ ×ÅÌÉËÕ Ë¦ÌØ˦ÓÔØ ËÒÉÐÔÏÇÒÁƦÞÎÉÈ
146 ÁÌÇÏÒÉÔͦ×, ×ËÌÀÞÁÀÞÉ DES, RC4, RSA ÔÁ SSL. í¦ÓÔÉÔØ Â¦Â̦ÏÔÅËÉ ÔÁ
147 ÈÅÄÅÒÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ SSL.
150 Summary: Static OpenSSL libraries
151 Summary(pl): Statyczne wersje bibliotek z OpenSSL
152 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com openssl
153 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ ÄÌÑ OpenSSL
154 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÄÌÑ OpenSSL
155 Group: Development/Libraries
156 Requires: %{name}-devel = %{version}-%{release}
159 Static OpenSSL Toolkit libraries.
161 %description static -l pl
162 Statyczne wersje bibliotek z OpenSSL.
164 %description static -l pt_BR
165 Bibliotecas estáticas para desenvolvimento com openssl.
167 %description static -l ru
168 ðÒÏÇÒÁÍÍÁ openssl ÄÌÑ ÒÁÂÏÔÙ Ó ÓÅÒÔÉÆÉËÁÔÁÍÉ É ÒÁÚÄÅÌÑÅÍÙÅ ÂÉÂÌÉÏÔÅËÉ,
169 ËÏÔÏÒÙÅ ÒÅÁÌÉÚÕÀÔ ÍÎÏÖÅÔÓ×Ï ËÒÉÐÔÏÇÒÁÆÉÞÅÓËÉÈ ÁÌÇÏÒÉÔÍÏ×, ×ËÌÀÞÁÑ DES,
170 RC4, RSA É SSL. ÷ËÌÀÞÁÅÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ
171 ÐÒÉÌÏÖÅÎÉÊ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ OpenSSL.
173 %description static -l uk
174 ðÒÏÇÒÁÍÁ openssl ÄÌÑ ÒÏÂÏÔÉ Ú ÓÅÒÔÉƦËÁÔÁÍÉ ÔÁ ¦Â̦ÏÔÅËÉ ÓЦÌØÎÏÇÏ
175 ËÏÒÉÓÔÕ×ÁÎÎÑ, ÝÏ ÒÅÁ̦ÚÕÀÔØ ×ÅÌÉËÕ Ë¦ÌØ˦ÓÔØ ËÒÉÐÔÏÇÒÁƦÞÎÉÈ
176 ÁÌÇÏÒÉÔͦ×, ×ËÌÀÞÁÀÞÉ DES, RC4, RSA ÔÁ SSL. í¦ÓÔÉÔØ ÓÔÁÔÉÞΦ
177 ¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ SSL.
188 # conflicts with i386-only DES implementation
189 # (missing #ifdef OPENSSL_FIPS ... #endif)
190 :> fips/des/asm/fips-dx86-elf.s
193 %{__perl} -pi -e 's#%{_prefix}/local/bin/perl#%{__perl}#g' \
194 `grep -l -r "%{_prefix}/local/bin/perl" *`
198 %{__perl} util/perlpath.pl %{__perl}
200 OPTFLAGS="%{rpmcflags}"
204 # allow running on 80386 (default code uses bswapl available on i486+)
205 ./Configure --openssldir=%{_var}/lib/%{name} linux-elf shared 386
207 ./Configure --openssldir=%{_var}/lib/%{name} linux-elf shared
211 ./Configure --openssldir=%{_var}/lib/%{name} threads linux-alpha+bwx-gcc shared
214 ./Configure --openssldir=%{_var}/lib/%{name} linux-x86_64 shared
217 ./Configure --openssldir=%{_var}/lib/%{name} linux-ia64 shared
220 ./Configure --openssldir=%{_var}/lib/%{name} linux-ppc shared
223 ./Configure --openssldir=%{_var}/lib/%{name} threads linux-sparcv8 shared
226 ./Configure --openssldir=%{_var}/lib/%{name} threads linux-sparcv9 shared
229 ./Configure --openssldir=%{_var}/lib/%{name} threads linux64-sparcv9 shared
234 INSTALLTOP=%{_prefix}
238 INSTALLTOP=%{_prefix}
240 # Conv PODs to man pages. "openssl_" prefix is added to each manpage
241 # to avoid potential conflicts with others packages.
242 center="OpenSSL 0.9.7"
245 cd doc/apps || exit 1
246 %{__perl} -pi -e 's/(\W)((?<!openssl_)\w+)(\(\d\))/$1openssl_$2$3/g; s/openssl_openssl/openssl/g;' *.pod;
249 if [ $pod != "openssl.pod" ]; then
250 mv -f $pod openssl_$pod;
255 if [ $pod = "openssl_config.pod" ]; then
259 manpage=`basename $pod .pod`.$sec;
260 pod2man --section="$sec" --release="$rel" --center="$center" \
267 for dir in ssl crypto; do
269 if [ $dir = "ssl" ]; then
270 rel="OpenSSL SSL/TLS library"
271 elif [ $dir = "crypto" ]; then
272 rel="OpenSSL cryptographic library"
275 %{__perl} -pi -e 's/(\W)((?<!openssl_)\w+)(\(\d\))/$1openssl_$2$3/g; s/openssl_openssl/openssl/g;' *.pod;
278 sec=`[ "$pod" = "des_modes.pod" ] && echo 7 || echo 3`;
279 mv -f $pod openssl_$pod;
281 manpage=`basename $pod .pod`.$sec;
282 pod2man --section="$sec" --release="$rel" --center=" " $pod > $manpage;
289 #%%{__perl} Makefile.PL \
294 rm -rf $RPM_BUILD_ROOT
295 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},%{_libdir}/%{name}} \
296 $RPM_BUILD_ROOT{%{_mandir}/{pl/man1,man{1,3,5,7}},%{_datadir}/ssl} \
297 $RPM_BUILD_ROOT%{_pkgconfigdir}
301 INSTALLTOP=%{_prefix} \
302 INSTALL_PREFIX=$RPM_BUILD_ROOT \
305 if [ "%{_prefix}/lib/pkgconfig" != "%{_pkgconfigdir}" ] ; then
306 mv $RPM_BUILD_ROOT%{_prefix}/lib/pkgconfig/* \
307 $RPM_BUILD_ROOT%{_pkgconfigdir}
310 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/ssl/ca-bundle.crt
311 install libcrypto.a libssl.a $RPM_BUILD_ROOT%{_libdir}
312 install lib*.so.*.* $RPM_BUILD_ROOT%{_libdir}
313 ln -sf libcrypto.so.*.* $RPM_BUILD_ROOT%{_libdir}/libcrypto.so
314 ln -sf libssl.so.*.* $RPM_BUILD_ROOT%{_libdir}/libssl.so
316 mv -f $RPM_BUILD_ROOT%{_var}/lib/%{name}/openssl.cnf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
317 ln -s %{_sysconfdir}/%{name}/openssl.cnf \
318 $RPM_BUILD_ROOT%{_var}/lib/%{name}/%{name}.cnf
320 mv -f $RPM_BUILD_ROOT%{_var}/lib/%{name}/misc/* $RPM_BUILD_ROOT%{_libdir}/%{name}
321 rm -rf $RPM_BUILD_ROOT%{_var}/lib/%{name}/misc
323 mv -f $RPM_BUILD_ROOT%{_bindir}/c_rehash $RPM_BUILD_ROOT%{_libdir}/%{name}
325 find $RPM_BUILD_ROOT%{_mandir} -type f | xargs rm -f
326 install doc/apps/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
327 install doc/apps/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
328 install doc/ssl/*.3 doc/crypto/*.3 $RPM_BUILD_ROOT%{_mandir}/man3
329 install doc/crypto/*.7 $RPM_BUILD_ROOT%{_mandir}/man7
330 install %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/pl/man1/openssl.1
331 install %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/ssl-certificate
332 install fips/openssl_fips_fingerprint $RPM_BUILD_ROOT%{_bindir}
334 rm -rf $RPM_BUILD_ROOT
336 %post -p /sbin/ldconfig
337 %postun -p /sbin/ldconfig
340 %defattr(644,root,root,755)
341 %attr(755,root,root) %{_libdir}/lib*.so.*.*
342 %doc CHANGES CHANGES.SSLeay LICENSE NEWS README doc/*.txt
343 %doc doc/openssl_button.gif doc/openssl_button.html
344 %dir %{_var}/lib/%{name}
345 %dir %{_var}/lib/%{name}/certs
346 %dir %{_var}/lib/%{name}/private
349 %defattr(644,root,root,755)
350 %dir %{_sysconfdir}/%{name}
352 %verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/%{name}/openssl.cnf
353 %verify(not md5 size mtime) %config(noreplace) %{_var}/lib/%{name}/openssl.cnf
355 %verify(not md5 size mtime) %config(noreplace) %{_datadir}/ssl/ca-bundle.crt
357 %attr(755,root,root) %{_bindir}/%{name}
358 %attr(755,root,root) %{_bindir}/openssl_fips_fingerprint
359 %attr(754,root,root) %{_bindir}/ssl-certificate
361 %dir %{_libdir}/%{name}
362 %attr(755,root,root) %{_libdir}/%{name}/CA.sh
363 %attr(755,root,root) %{_libdir}/%{name}/c_hash
364 %attr(755,root,root) %{_libdir}/%{name}/c_info
365 %attr(755,root,root) %{_libdir}/%{name}/c_issuer
366 %attr(755,root,root) %{_libdir}/%{name}/c_name
368 %{_mandir}/man1/openssl.1*
369 %{_mandir}/man1/openssl_asn1parse.1*
370 %{_mandir}/man1/openssl_ca.1*
371 %{_mandir}/man1/openssl_ciphers.1*
372 %{_mandir}/man1/openssl_crl.1*
373 %{_mandir}/man1/openssl_crl2pkcs7.1*
374 %{_mandir}/man1/openssl_dgst.1*
375 %{_mandir}/man1/openssl_dhparam.1*
376 %{_mandir}/man1/openssl_dsa.1*
377 %{_mandir}/man1/openssl_dsaparam.1*
378 %{_mandir}/man1/openssl_enc.1*
379 %{_mandir}/man1/openssl_errstr.1*
380 %{_mandir}/man1/openssl_gendsa.1*
381 %{_mandir}/man1/openssl_genrsa.1*
382 %{_mandir}/man1/openssl_nseq.1*
383 %{_mandir}/man1/openssl_ocsp.1*
384 %{_mandir}/man1/openssl_passwd.1*
385 %{_mandir}/man1/openssl_pkcs12.1*
386 %{_mandir}/man1/openssl_pkcs7.1*
387 %{_mandir}/man1/openssl_pkcs8.1*
388 %{_mandir}/man1/openssl_rand.1*
389 %{_mandir}/man1/openssl_req.1*
390 %{_mandir}/man1/openssl_rsa.1*
391 %{_mandir}/man1/openssl_rsautl.1*
392 %{_mandir}/man1/openssl_s_client.1*
393 %{_mandir}/man1/openssl_s_server.1*
394 %{_mandir}/man1/openssl_s_time.1*
395 %{_mandir}/man1/openssl_sess_id.1*
396 %{_mandir}/man1/openssl_smime.1*
397 %{_mandir}/man1/openssl_speed.1*
398 %{_mandir}/man1/openssl_spkac.1*
399 %{_mandir}/man1/openssl_verify.1*
400 %{_mandir}/man1/openssl_version.1*
401 %{_mandir}/man1/openssl_x509.1*
403 %lang(pl) %{_mandir}/pl/man1/openssl.1*
406 %defattr(644,root,root,755)
407 %attr(755,root,root) %{_libdir}/%{name}/CA.pl
408 %attr(755,root,root) %{_libdir}/%{name}/c_rehash
409 %{_mandir}/man1/openssl_CA.pl.1*
412 %defattr(644,root,root,755)
413 %attr(755,root,root) %{_libdir}/lib*.so
414 %{_includedir}/%{name}
415 %{_pkgconfigdir}/openssl.pc
416 %{_mandir}/man3/openssl*.3*
420 %defattr(644,root,root,755)