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: 991615f73338a571b6a1be7d74906934
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
29 BuildRequires: rpmbuild(macros) >= 1.213
30 BuildRequires: sed >= 4.0
32 Obsoletes: SSLeay-devel
33 Obsoletes: SSLeay-perl
34 Obsoletes: libopenssl0
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 The OpenSSL Project is a collaborative effort to develop a robust,
39 commercial-grade, full-featured, and Open Source toolkit implementing
40 the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS
41 v1) protocols with full-strength cryptography world-wide. The project
42 is managed by a worldwide community of volunteers that use the
43 Internet to communicate, plan, and develop the OpenSSL tookit and its
44 related documentation.
46 OpenSSL is based on the excellent SSLeay library developed by Eric A.
47 Young and Tim J. Hudson. The OpenSSL toolkit is licensed under an
48 Apache-style licence, which basically means that you are free to get
49 and use it for commercial and non-commercial purposes subject to some
50 simple license conditions.
52 This package contains shared libraries only, install openssl-tools if
53 you want to use openssl cmdline tool.
56 Openssl enthält das OpenSSL Zertifikatsmanagementtool und shared
57 libraries, die verschiedene Verschlüsselungs- und
58 Entschlüsselungsalgorithmen und -protokolle, wie DES, RC4, RSA und SSL
59 zur Verfügung stellen.
62 Biblioteca C que suministra algoritmos y protocolos criptográficos.
65 OpenSSL est un outiil de gestion des certificats et les librairies
66 partagees qui fournit plusieurs protocoles et algorithmes de
67 codage/decodage, incluant DES, RC4, RSA et SSL.
70 Implementacja protoko³ów kryptograficznych Secure Socket Layer (SSL)
71 v2/v3 oraz Transport Layer Security (TLS v1).
74 Uma biblioteca C que fornece vários algoritmos e protocolos
75 criptográficos, incluindo DES, RC4, RSA e SSL. Inclui bibliotecas
76 compartilhadas e utilitários.
79 ðÒÏÇÒÁÍÍÁ openssl ÄÌÑ ÒÁÂÏÔÙ Ó ÓÅÒÔÉÆÉËÁÔÁÍÉ É ÒÁÚÄÅÌÑÅÍÙÅ ÂÉÂÌÉÏÔÅËÉ,
80 ËÏÔÏÒÙÅ ÒÅÁÌÉÚÕÀÔ ÍÎÏÖÅÔÓ×Ï ËÒÉÐÔÏÇÒÁÆÉÞÅÓËÉÈ ÁÌÇÏÒÉÔÍÏ×, ×ËÌÀÞÁÑ DES,
84 ðÒÏÇÒÁÍÁ openssl ÄÌÑ ÒÏÂÏÔÉ Ú ÓÅÒÔÉƦËÁÔÁÍÉ ÔÁ ¦Â̦ÏÔÅËÉ ÓЦÌØÎÏÇÏ
85 ËÏÒÉÓÔÕ×ÁÎÎÑ, ÝÏ ÒÅÁ̦ÚÕÀÔØ ×ÅÌÉËÕ Ë¦ÌØ˦ÓÔØ ËÒÉÐÔÏÇÒÁƦÞÎÉÈ
86 ÁÌÇÏÒÉÔͦ×, ×ËÌÀÞÁÀÞÉ DES, RC4, RSA ÔÁ SSL.
89 Summary: OpenSSL command line tool and utilities
90 Summary(pl): Zestaw narzêdzi i skryptów
91 Group: Applications/Communications
92 Requires: %{name} = %{version}-%{release}
95 The OpenSSL Toolkit cmdline tool openssl and utility scripts.
97 %description tools -l pl
98 Zestaw narzêdzi i skryptów wywo³ywanych z linii poleceñ.
101 Summary: OpenSSL utilities written in Perl
102 Summary(pl): Narzêdzia OpenSSL napisane w perlu
103 Group: Applications/Communications
104 Requires: %{name} = %{version}-%{release}
106 %description tools-perl
107 OpenSSL Toolkit tools written in Perl.
109 %description tools-perl -l pl
110 Narzêdzia OpenSSL napisane w perlu.
113 Summary: Development part of OpenSSL Toolkit libraries
114 Summary(de): Secure Sockets Layer Kommunikationslibrary: statische libraries+header
115 Summary(es): Bibliotecas y archivos de inclusión para desarrollo OpenSSL
116 Summary(fr): Librairies statiques, headers et utilitaires pour communication SSL
117 Summary(pl): Czê¶æ bibiloteki OpenSSL przeznaczona dla programistów
118 Summary(pt_BR): Bibliotecas e arquivos de inclusão para desenvolvimento OpenSSL
119 Summary(ru): âÉÂÌÉÏÔÅËÉ, ÈÅÄÅÒÙ É ÕÔÉÌÉÔÙ ÄÌÑ Secure Sockets Layer
120 Summary(uk): â¦Â̦ÏÔÅËÉ, ÈÅÄÅÒÉ ÔÁ ÕÔÉ̦ÔÉ ÄÌÑ Secure Sockets Layer
121 Group: Development/Libraries
122 Requires: %{name} = %{version}-%{release}
123 Obsoletes: libopenssl0-devel
126 Development part of OpenSSL library.
128 %description devel -l es
129 Bibliotecas y archivos de inclusión para desarrollo OpenSSL
131 %description devel -l pl
132 Czê¶æ biblioteki OpenSSL przeznaczona dla programistów.
134 %description devel -l pt_BR
135 Uma biblioteca C que fornece vários algoritmos e protocolos
136 criptográficos, incluindo DES, RC4, RSA e SSL. Inclui bibliotecas e
137 arquivos de inclusão para desenvolvimento.
139 %description devel -l ru
140 ðÒÏÇÒÁÍÍÁ openssl ÄÌÑ ÒÁÂÏÔÙ Ó ÓÅÒÔÉÆÉËÁÔÁÍÉ É ÒÁÚÄÅÌÑÅÍÙÅ ÂÉÂÌÉÏÔÅËÉ,
141 ËÏÔÏÒÙÅ ÒÅÁÌÉÚÕÀÔ ÍÎÏÖÅÔÓ×Ï ËÒÉÐÔÏÇÒÁÆÉÞÅÓËÉÈ ÁÌÇÏÒÉÔÍÏ×, ×ËÌÀÞÁÑ DES,
142 RC4, RSA É SSL. ÷ËÌÀÞÁÅÔ ÂÉÂÌÉÏÔÅËÉ É ÈÅÄÅÒÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ
143 Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ SSL.
145 %description devel -l uk
146 ðÒÏÇÒÁÍÁ openssl ÄÌÑ ÒÏÂÏÔÉ Ú ÓÅÒÔÉƦËÁÔÁÍÉ ÔÁ ¦Â̦ÏÔÅËÉ ÓЦÌØÎÏÇÏ
147 ËÏÒÉÓÔÕ×ÁÎÎÑ, ÝÏ ÒÅÁ̦ÚÕÀÔØ ×ÅÌÉËÕ Ë¦ÌØ˦ÓÔØ ËÒÉÐÔÏÇÒÁƦÞÎÉÈ
148 ÁÌÇÏÒÉÔͦ×, ×ËÌÀÞÁÀÞÉ DES, RC4, RSA ÔÁ SSL. í¦ÓÔÉÔØ Â¦Â̦ÏÔÅËÉ ÔÁ
149 ÈÅÄÅÒÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ SSL.
152 Summary: Static OpenSSL libraries
153 Summary(pl): Statyczne wersje bibliotek z OpenSSL
154 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com openssl
155 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ ÄÌÑ OpenSSL
156 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÄÌÑ OpenSSL
157 Group: Development/Libraries
158 Requires: %{name}-devel = %{version}-%{release}
161 Static OpenSSL Toolkit libraries.
163 %description static -l pl
164 Statyczne wersje bibliotek z OpenSSL.
166 %description static -l pt_BR
167 Bibliotecas estáticas para desenvolvimento com openssl.
169 %description static -l ru
170 ðÒÏÇÒÁÍÍÁ openssl ÄÌÑ ÒÁÂÏÔÙ Ó ÓÅÒÔÉÆÉËÁÔÁÍÉ É ÒÁÚÄÅÌÑÅÍÙÅ ÂÉÂÌÉÏÔÅËÉ,
171 ËÏÔÏÒÙÅ ÒÅÁÌÉÚÕÀÔ ÍÎÏÖÅÔÓ×Ï ËÒÉÐÔÏÇÒÁÆÉÞÅÓËÉÈ ÁÌÇÏÒÉÔÍÏ×, ×ËÌÀÞÁÑ DES,
172 RC4, RSA É SSL. ÷ËÌÀÞÁÅÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ
173 ÐÒÉÌÏÖÅÎÉÊ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ OpenSSL.
175 %description static -l uk
176 ðÒÏÇÒÁÍÁ openssl ÄÌÑ ÒÏÂÏÔÉ Ú ÓÅÒÔÉƦËÁÔÁÍÉ ÔÁ ¦Â̦ÏÔÅËÉ ÓЦÌØÎÏÇÏ
177 ËÏÒÉÓÔÕ×ÁÎÎÑ, ÝÏ ÒÅÁ̦ÚÕÀÔØ ×ÅÌÉËÕ Ë¦ÌØ˦ÓÔØ ËÒÉÐÔÏÇÒÁƦÞÎÉÈ
178 ÁÌÇÏÒÉÔͦ×, ×ËÌÀÞÁÀÞÉ DES, RC4, RSA ÔÁ SSL. í¦ÓÔÉÔØ ÓÔÁÔÉÞΦ
179 ¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ SSL.
190 # conflicts with i386-only DES implementation
191 # (missing #ifdef OPENSSL_FIPS ... #endif)
192 :> fips/des/asm/fips-dx86-elf.s
195 %{__perl} -pi -e 's#%{_prefix}/local/bin/perl#%{__perl}#g' \
196 `grep -l -r "%{_prefix}/local/bin/perl" *`
200 %{__perl} util/perlpath.pl %{__perl}
202 OPTFLAGS="%{rpmcflags}"
206 # allow running on 80386 (default code uses bswapl available on i486+)
207 ./Configure --openssldir=%{_var}/lib/%{name} linux-elf shared 386
209 ./Configure --openssldir=%{_var}/lib/%{name} linux-elf shared
213 ./Configure --openssldir=%{_var}/lib/%{name} threads linux-alpha+bwx-gcc shared
216 ./Configure --openssldir=%{_var}/lib/%{name} linux-x86_64 shared
219 ./Configure --openssldir=%{_var}/lib/%{name} linux-ia64 shared
222 ./Configure --openssldir=%{_var}/lib/%{name} linux-ppc shared
225 ./Configure --openssldir=%{_var}/lib/%{name} threads linux-sparcv8 shared
228 ./Configure --openssldir=%{_var}/lib/%{name} threads linux-sparcv9 shared
231 ./Configure --openssldir=%{_var}/lib/%{name} threads linux64-sparcv9 shared
236 INSTALLTOP=%{_prefix}
240 INSTALLTOP=%{_prefix}
242 # Conv PODs to man pages. "openssl_" prefix is added to each manpage
243 # to avoid potential conflicts with others packages.
244 center="OpenSSL 0.9.7"
247 cd doc/apps || exit 1
248 %{__perl} -pi -e 's/(\W)((?<!openssl_)\w+)(\(\d\))/$1openssl_$2$3/g; s/openssl_openssl/openssl/g;' *.pod;
251 if [ $pod != "openssl.pod" ]; then
252 mv -f $pod openssl_$pod;
257 if [ $pod = "openssl_config.pod" ]; then
261 manpage=`basename $pod .pod`.$sec;
262 pod2man --section="$sec" --release="$rel" --center="$center" \
269 for dir in ssl crypto; do
271 if [ $dir = "ssl" ]; then
272 rel="OpenSSL SSL/TLS library"
273 elif [ $dir = "crypto" ]; then
274 rel="OpenSSL cryptographic library"
277 %{__perl} -pi -e 's/(\W)((?<!openssl_)\w+)(\(\d\))/$1openssl_$2$3/g; s/openssl_openssl/openssl/g;' *.pod;
280 sec=`[ "$pod" = "des_modes.pod" ] && echo 7 || echo 3`;
281 mv -f $pod openssl_$pod;
283 manpage=`basename $pod .pod`.$sec;
284 pod2man --section="$sec" --release="$rel" --center=" " $pod > $manpage;
291 #%%{__perl} Makefile.PL \
296 rm -rf $RPM_BUILD_ROOT
297 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},%{_libdir}/%{name}} \
298 $RPM_BUILD_ROOT{%{_mandir}/{pl/man1,man{1,3,5,7}},%{_datadir}/ssl} \
299 $RPM_BUILD_ROOT%{_pkgconfigdir}
303 INSTALLTOP=%{_prefix} \
304 INSTALL_PREFIX=$RPM_BUILD_ROOT \
307 if [ "%{_prefix}/lib/pkgconfig" != "%{_pkgconfigdir}" ] ; then
308 mv $RPM_BUILD_ROOT%{_prefix}/lib/pkgconfig/* \
309 $RPM_BUILD_ROOT%{_pkgconfigdir}
311 sed -i -e 's,^libdir=.*,libdir=%{_libdir},' $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc
313 install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/ssl/ca-bundle.crt
314 install libcrypto.a libssl.a $RPM_BUILD_ROOT%{_libdir}
315 install lib*.so.*.* $RPM_BUILD_ROOT%{_libdir}
316 ln -sf libcrypto.so.*.* $RPM_BUILD_ROOT%{_libdir}/libcrypto.so
317 ln -sf libssl.so.*.* $RPM_BUILD_ROOT%{_libdir}/libssl.so
319 mv -f $RPM_BUILD_ROOT%{_var}/lib/%{name}/openssl.cnf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
320 ln -s %{_sysconfdir}/%{name}/openssl.cnf \
321 $RPM_BUILD_ROOT%{_var}/lib/%{name}/%{name}.cnf
323 mv -f $RPM_BUILD_ROOT%{_var}/lib/%{name}/misc/* $RPM_BUILD_ROOT%{_libdir}/%{name}
324 rm -rf $RPM_BUILD_ROOT%{_var}/lib/%{name}/misc
326 mv -f $RPM_BUILD_ROOT%{_bindir}/c_rehash $RPM_BUILD_ROOT%{_libdir}/%{name}
328 find $RPM_BUILD_ROOT%{_mandir} -type f | xargs rm -f
329 install doc/apps/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
330 install doc/apps/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
331 install doc/ssl/*.3 doc/crypto/*.3 $RPM_BUILD_ROOT%{_mandir}/man3
332 install doc/crypto/*.7 $RPM_BUILD_ROOT%{_mandir}/man7
333 install %{SOURCE2} $RPM_BUILD_ROOT%{_mandir}/pl/man1/openssl.1
334 install %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/ssl-certificate
335 install fips/openssl_fips_fingerprint $RPM_BUILD_ROOT%{_bindir}
337 rm -rf $RPM_BUILD_ROOT
339 %post -p /sbin/ldconfig
340 %postun -p /sbin/ldconfig
343 %defattr(644,root,root,755)
344 %attr(755,root,root) %{_libdir}/libcrypto.so.*.*.*
345 %attr(755,root,root) %{_libdir}/libssl.so.*.*.*
346 %doc CHANGES CHANGES.SSLeay LICENSE NEWS README doc/*.txt
347 %doc doc/openssl_button.gif doc/openssl_button.html
348 %dir %{_var}/lib/%{name}
349 %dir %{_var}/lib/%{name}/certs
350 %dir %{_var}/lib/%{name}/private
353 %defattr(644,root,root,755)
354 %dir %{_sysconfdir}/%{name}
356 %verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/%{name}/openssl.cnf
357 %verify(not md5 size mtime) %config(noreplace) %{_var}/lib/%{name}/openssl.cnf
359 %verify(not md5 size mtime) %config(noreplace) %{_datadir}/ssl/ca-bundle.crt
361 %attr(755,root,root) %{_bindir}/%{name}
362 %attr(755,root,root) %{_bindir}/openssl_fips_fingerprint
363 %attr(754,root,root) %{_bindir}/ssl-certificate
365 %dir %{_libdir}/%{name}
366 %attr(755,root,root) %{_libdir}/%{name}/CA.sh
367 %attr(755,root,root) %{_libdir}/%{name}/c_hash
368 %attr(755,root,root) %{_libdir}/%{name}/c_info
369 %attr(755,root,root) %{_libdir}/%{name}/c_issuer
370 %attr(755,root,root) %{_libdir}/%{name}/c_name
372 %{_mandir}/man1/openssl.1*
373 %{_mandir}/man1/openssl_asn1parse.1*
374 %{_mandir}/man1/openssl_ca.1*
375 %{_mandir}/man1/openssl_ciphers.1*
376 %{_mandir}/man1/openssl_crl.1*
377 %{_mandir}/man1/openssl_crl2pkcs7.1*
378 %{_mandir}/man1/openssl_dgst.1*
379 %{_mandir}/man1/openssl_dhparam.1*
380 %{_mandir}/man1/openssl_dsa.1*
381 %{_mandir}/man1/openssl_dsaparam.1*
382 %{_mandir}/man1/openssl_enc.1*
383 %{_mandir}/man1/openssl_errstr.1*
384 %{_mandir}/man1/openssl_gendsa.1*
385 %{_mandir}/man1/openssl_genrsa.1*
386 %{_mandir}/man1/openssl_nseq.1*
387 %{_mandir}/man1/openssl_ocsp.1*
388 %{_mandir}/man1/openssl_passwd.1*
389 %{_mandir}/man1/openssl_pkcs12.1*
390 %{_mandir}/man1/openssl_pkcs7.1*
391 %{_mandir}/man1/openssl_pkcs8.1*
392 %{_mandir}/man1/openssl_rand.1*
393 %{_mandir}/man1/openssl_req.1*
394 %{_mandir}/man1/openssl_rsa.1*
395 %{_mandir}/man1/openssl_rsautl.1*
396 %{_mandir}/man1/openssl_s_client.1*
397 %{_mandir}/man1/openssl_s_server.1*
398 %{_mandir}/man1/openssl_s_time.1*
399 %{_mandir}/man1/openssl_sess_id.1*
400 %{_mandir}/man1/openssl_smime.1*
401 %{_mandir}/man1/openssl_speed.1*
402 %{_mandir}/man1/openssl_spkac.1*
403 %{_mandir}/man1/openssl_verify.1*
404 %{_mandir}/man1/openssl_version.1*
405 %{_mandir}/man1/openssl_x509.1*
407 %lang(pl) %{_mandir}/pl/man1/openssl.1*
410 %defattr(644,root,root,755)
411 %attr(755,root,root) %{_libdir}/%{name}/CA.pl
412 %attr(755,root,root) %{_libdir}/%{name}/c_rehash
413 %{_mandir}/man1/openssl_CA.pl.1*
416 %defattr(644,root,root,755)
417 %attr(755,root,root) %{_libdir}/libcrypto.so
418 %attr(755,root,root) %{_libdir}/libssl.so
419 %{_includedir}/%{name}
420 %{_pkgconfigdir}/openssl.pc
421 %{_mandir}/man3/openssl*.3*
425 %defattr(644,root,root,755)