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(fr): Utilitaires de communication SSL (Secure Sockets Layer)
12 Source0: ftp://ftp.openssl.org/source/%{name}-%{version}.tar.gz
13 Patch0: %{name}-perl.patch
14 Patch1: %{name}-alpha-ccc.patch
15 Vendor: The OpenSSL Project
16 License: Apache-style License
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Obsoletes: SSLeay-devel
21 Obsoletes: SSLeay-perl
24 The OpenSSL Project is a collaborative effort to develop a robust,
25 commercial-grade, full-featured, and Open Source toolkit implementing
26 the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS
27 v1) protocols with full-strength cryptography world-wide. The project
28 is managed by a worldwide community of volunteers that use the
29 Internet to communicate, plan, and develop the OpenSSL tookit and its
30 related documentation.
32 OpenSSL is based on the excellent SSLeay library developed by Eric A.
33 Young and Tim J. Hudson. The OpenSSL toolkit is licensed under an
34 Apache-style licence, which basically means that you are free to get
35 and use it for commercial and non-commercial purposes subject to some
36 simple license conditions.
38 This package contains shared libraries only, install openssl-tools if
39 you want to use openssl cmdline tool.
42 Openssl enthält das OpenSSL Zertifikatsmanagementtool und shared
43 libraries, die verschiedene Verschlüsselungs- und
44 Entschlüsselungsalgorithmen und
45 - -protokolle, wie DES, RC4, RSA und SSL zur Verfügung stellen.
48 OpenSSL est un outiil de gestion des certificats et les librairies
49 partagees qui fournit plusieurs protocoles et algorithmes de
50 codage/decodage, incluant DES, RC4, RSA et SSL.
53 Summary: OpenSSL command line tool and utilities
54 Group: Applications/Communications
55 Group(de): Applikationen/Kommunikation
56 Group(pl): Aplikacje/Komunikacja
57 Requires: %{name} = %{version}
60 The OpenSSL Toolkit cmdline tool openssl and utility scripts.
63 Summary: OpenSSL utilities written in Perl
64 Group: Applications/Communications
65 Group(de): Applikationen/Kommunikation
66 Group(fr): Utilitaires
67 Group(pl): Aplikacje/Komunikacja
68 Requires: %{name} = %{version}
70 %description tools-perl
71 OpenSSL Toolkit tools written in Perl.
74 Summary: Development part of OpenSSL Toolkit libraries
75 Summary(de): Secure Sockets Layer Kommunikationslibrary: statische libraries+header
76 Summary(fr): Librairies statiques, headers et utilitaires pour communication SSL
77 Summary(pl): Czê¶æ bibiloteki OpenSSL przeznaczona dla programistów
78 Group: Development/Libraries
79 Group(de): Entwicklung/Libraries
80 Group(fr): Development/Librairies
81 Group(pl): Programowanie/Biblioteki
82 Requires: %{name} = %{version}
85 Development part of OpenSSL library.
87 %description devel -l pl
88 Czê¶æ bibiloteki OpenSSL przeznaczona dla programistów.
91 Summary: Static OpenSSL libraries
92 Summary(pl): Statyczne wersje bibliotek z OpenSSL
93 Group: Development/Libraries
94 Group(de): Entwicklung/Libraries
95 Group(fr): Development/Librairies
96 Group(pl): Programowanie/Biblioteki
97 Requires: %{name}-devel = %{version}
100 Static OpenSSL Toolkit libraries.
102 %description static -l pl
103 Statyczne wersje bibliotek z OpenSSL.
111 for i in Configure Makefile.org ; do
112 perl -pi -e 's#-m486##g' $i
113 perl -pi -e 's#-O3 -fomit-frame-pointer#%{optflags}#g' $i
116 perl util/perlpath.pl %{_bindir}/perl
119 ./Configure --openssldir=%{_var}/lib/%{name} linux-elf shared 386
122 ./Configure --openssldir=%{_var}/lib/%{name} linux-elf shared
125 ./Configure --openssldir=%{_var}/lib/%{name} linux-ppc shared
128 ./Configure --openssldir=%{_var}/lib/%{name} threads linux-alpha+bwx-ccc-generic
131 %{__make} OPT_FLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O -g} -DSSL_ALLOW_DH"
132 %{__make} INSTALLTOP=%{_prefix} \
133 OPT_FLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O -g}"
135 %{__make} linux-shared
139 # Conv PODs to man pages. "openssl_" prefix is added to each manpage
140 # to avoid potential conflicts with others packages.
141 center="OpenSSL 0.9.6"
144 cd doc/apps || exit 1
145 perl -pi -e 's/(\W)((?<!openssl_)\w+)(\(\d\))/$1openssl_$2$3/g; s/openssl_openssl/openssl/g;' *.pod;
148 if [ $pod != "openssl.pod" ]; then
149 mv -f $pod openssl_$pod;
154 if [ $pod = "openssl_config.pod" ]; then
158 manpage=`basename $pod .pod`.$sec;
159 pod2man --section="$sec" --release="$rel" --center="$center" \
166 for dir in ssl crypto; do
168 if [ $dir = "ssl" ]; then
169 rel="OpenSSL SSL/TLS library"
170 elif [ $dir = "crypto" ]; then
171 rel="OpenSSL cryptographic library"
174 perl -p -i -e 's/(\W)((?<!openssl_)\w+)(\(\d\))/$1openssl_$2$3/g; s/openssl_openssl/openssl/g;' *.pod;
177 sec=`[ "$pod" = "des_modes.pod" ] && echo 7 || echo 3`;
178 mv -f $pod openssl_$pod;
180 manpage=`basename $pod .pod`.$sec;
181 pod2man --section="$sec" --release="$rel" --center=" " $pod > $manpage;
192 rm -rf $RPM_BUILD_ROOT
193 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},%{_libdir}/%{name}} \
194 $RPM_BUILD_ROOT%{_mandir}/man{1,3,5,7}
197 INSTALLTOP=%{_prefix} \
198 INSTALL_PREFIX=$RPM_BUILD_ROOT
200 install libRSAglue.a libcrypto.a libssl.a $RPM_BUILD_ROOT%{_libdir}
201 install lib*.so.*.* $RPM_BUILD_ROOT%{_libdir}
202 cp -df lib*.so $RPM_BUILD_ROOT%{_libdir}
205 #make install DESTDIR=$RPM_BUILD_ROOT
208 mv -f $RPM_BUILD_ROOT%{_var}/lib/%{name}/openssl.cnf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
209 ln -s ../../../%{_sysconfdir}/%{name}/openssl.cnf \
210 $RPM_BUILD_ROOT%{_var}/lib/%{name}/%{name}.cnf
212 mv -f $RPM_BUILD_ROOT%{_var}/lib/%{name}/misc/* $RPM_BUILD_ROOT%{_libdir}/%{name}
213 rm -rf $RPM_BUILD_ROOT%{_var}/lib/%{name}/misc
215 mv -f $RPM_BUILD_ROOT%{_bindir}/c_rehash $RPM_BUILD_ROOT%{_libdir}/%{name}
217 find $RPM_BUILD_ROOT%{_mandir} -type f | xargs rm -f
218 install doc/apps/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
219 install doc/apps/*.5 $RPM_BUILD_ROOT%{_mandir}/man5
220 install doc/ssl/*.3 doc/crypto/*.3 $RPM_BUILD_ROOT%{_mandir}/man3
221 install doc/crypto/*.7 $RPM_BUILD_ROOT%{_mandir}/man7
223 gzip -9nf CHANGES CHANGES.SSLeay LICENSE NEWS README doc/*.txt
225 %post -p /sbin/ldconfig
226 %postun -p /sbin/ldconfig
229 rm -rf $RPM_BUILD_ROOT
232 %defattr(644,root,root,755)
233 %attr(755,root,root) %{_libdir}/lib*.so.*.*
234 %doc {CHANGES,CHANGES.SSLeay,LICENSE,NEWS,README}.gz
235 %doc doc/*.txt.gz doc/openssl_button.gif doc/openssl_button.html
238 %defattr(644,root,root,755)
239 %dir %{_sysconfdir}/%{name}
240 %dir %{_var}/lib/%{name}
241 %dir %{_var}/lib/%{name}/private
242 %dir %{_var}/lib/%{name}/certs
243 %verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/%{name}/openssl.cnf
244 %verify(not md5 size mtime) %config(noreplace) %{_var}/lib/%{name}/openssl.cnf
246 %attr(755,root,root) %{_bindir}/%{name}
247 %dir %{_libdir}/%{name}
248 %attr(755,root,root) %{_libdir}/%{name}/CA.sh
249 %attr(755,root,root) %{_libdir}/%{name}/c_hash
250 %attr(755,root,root) %{_libdir}/%{name}/c_rehash
251 %attr(755,root,root) %{_libdir}/%{name}/c_info
252 %attr(755,root,root) %{_libdir}/%{name}/c_issuer
253 %attr(755,root,root) %{_libdir}/%{name}/c_name
255 %{_mandir}/man1/openssl.1*
256 %{_mandir}/man1/openssl_asn1parse.1*
257 %{_mandir}/man1/openssl_ca.1*
258 %{_mandir}/man1/openssl_ciphers.1*
259 %{_mandir}/man1/openssl_crl.1*
260 %{_mandir}/man1/openssl_crl2pkcs7.1*
261 %{_mandir}/man1/openssl_dgst.1*
262 %{_mandir}/man1/openssl_dhparam.1*
263 %{_mandir}/man1/openssl_dsa.1*
264 %{_mandir}/man1/openssl_dsaparam.1*
265 %{_mandir}/man1/openssl_enc.1*
266 %{_mandir}/man1/openssl_gendsa.1*
267 %{_mandir}/man1/openssl_genrsa.1*
268 %{_mandir}/man1/openssl_nseq.1*
269 %{_mandir}/man1/openssl_passwd.1*
270 %{_mandir}/man1/openssl_pkcs12.1*
271 %{_mandir}/man1/openssl_pkcs7.1*
272 %{_mandir}/man1/openssl_pkcs8.1*
273 %{_mandir}/man1/openssl_rand.1*
274 %{_mandir}/man1/openssl_req.1*
275 %{_mandir}/man1/openssl_rsa.1*
276 %{_mandir}/man1/openssl_s_client.1*
277 %{_mandir}/man1/openssl_s_server.1*
278 %{_mandir}/man1/openssl_sess_id.1*
279 %{_mandir}/man1/openssl_smime.1*
280 %{_mandir}/man1/openssl_speed.1*
281 %{_mandir}/man1/openssl_spkac.1*
282 %{_mandir}/man1/openssl_verify.1*
283 %{_mandir}/man1/openssl_version.1*
284 %{_mandir}/man1/openssl_x509.1*
288 %defattr(644,root,root,755)
289 %attr(755,root,root) %{_libdir}/%{name}/CA.pl
290 %attr(755,root,root) %{_libdir}/%{name}/der_chop
291 %{_mandir}/man1/openssl_CA.pl.1*
294 %defattr(644,root,root,755)
295 %attr(755,root,root) %{_libdir}/lib*.so
296 %{_includedir}/%{name}
300 %defattr(644,root,root,755)