]>
Commit | Line | Data |
---|---|---|
04a5ad1f AF |
1 | Summary: Library and toolkit for the "Secure Sockets Layer" (SSL v2/v3) |
2 | Name: openssl | |
3 | Version: 0.9.2b | |
4 | Release: 2 | |
5 | Group: Libraries | |
6 | Group(pl): Biblioteki | |
7 | Source: ftp://ftp.openssl.org/source/%{name}-%{version}.tar.gz | |
8 | Patch0: openssl-sslcrypto.patch | |
9 | Patch1: openssl-perl.patch | |
10 | Patch2: openssl-shlib.patch | |
11 | Vendor: The OpenSSL Project | |
12 | License: Apache-style License | |
d019e04e | 13 | BuildPrereq: perl |
04a5ad1f AF |
14 | BuildRoot: /tmp/%{name}-%{version}-root |
15 | Obsoletes: SSLeay | |
16 | Obsoletes: SSLeay-devel | |
17 | Obsoletes: SSLeay-perl | |
21ac4f86 AF |
18 | |
19 | %description | |
20 | The OpenSSL Project is a collaborative effort to develop a robust, | |
21 | commercial-grade, full-featured, and Open Source toolkit implementing | |
22 | the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS | |
23 | v1) protocols with full-strength cryptography world-wide. The project | |
24 | is managed by a worldwide community of volunteers that use the | |
25 | Internet to communicate, plan, and develop the OpenSSL tookit and its | |
26 | related documentation. | |
27 | ||
28 | OpenSSL is based on the excellent SSLeay library developed by Eric A. | |
29 | Young and Tim J. Hudson. The OpenSSL toolkit is licensed under an | |
30 | Apache-style licence, which basically means that you are free to get | |
31 | and use it for commercial and non-commercial purposes subject to some | |
32 | simple license conditions. | |
33 | ||
34 | %prep | |
04a5ad1f AF |
35 | %setup -q |
36 | %patch0 -p1 | |
37 | %patch1 -p1 | |
38 | %patch2 -p1 | |
21ac4f86 AF |
39 | |
40 | %build | |
04a5ad1f AF |
41 | for i in ` echo Configure Makefile.org Makefile.ssl `; do |
42 | sed -e 's#-m486##g' \ | |
43 | -e 's#-O3 -fomit-frame-pointer#%{optflags}#g' \ | |
44 | <$i >$i.work | |
45 | mv $i.work $i | |
46 | done | |
47 | ||
753bdad8 | 48 | perl util/perlpath.pl %{_bindir} |
3bbf39a5 | 49 | perl util/ssldir.pl /var/state/ssl |
04a5ad1f AF |
50 | |
51 | ./config | |
52 | make INSTALLTOP=/usr OPT_FLAGS="$RPM_OPT_FLAGS" | |
21ac4f86 AF |
53 | make rehash |
54 | ||
55 | %install | |
04a5ad1f AF |
56 | rm -rf $RPM_BUILD_ROOT |
57 | ||
3bbf39a5 | 58 | install -d $RPM_BUILD_ROOT/{etc,usr/include/ssl,var/state/ssl/{certs,private}} |
04a5ad1f AF |
59 | |
60 | make INSTALLTOP=$RPM_BUILD_ROOT/usr install | |
61 | ||
48e547a4 | 62 | install libRSAglue.a $RPM_BUILD_ROOT%{_libdir} |
04a5ad1f AF |
63 | |
64 | mv $RPM_BUILD_ROOT/usr/include/*.h $RPM_BUILD_ROOT/usr/include/ssl | |
65 | ||
48e547a4 | 66 | mv $RPM_BUILD_ROOT%{_libdir}/openssl.cnf $RPM_BUILD_ROOT/etc |
67 | ln -s ../../etc/openssl.cnf $RPM_BUILD_ROOT%{_libdir}/openssl.cnf | |
04a5ad1f AF |
68 | |
69 | gzip -9fn CHANGES CHANGES.SSLeay LICENSE NEWS README \ | |
70 | doc/*.pod doc/*.txt | |
71 | ||
72 | %post | |
753bdad8 | 73 | %{_bindir}/c_rehash certs |
04a5ad1f AF |
74 | |
75 | %clean | |
76 | #rm -rf $RPM_BUILD_ROOT | |
21ac4f86 AF |
77 | |
78 | %files | |
04a5ad1f AF |
79 | %defattr(644,root,root,755) |
80 | %doc {CHANGES,CHANGES.SSLeay,LICENSE,NEWS,README}.gz | |
81 | %doc doc/*.pod.gz doc/*.txt.gz | |
82 | %doc doc/openssl_button.gif doc/openssl_button.html | |
83 | ||
753bdad8 | 84 | %attr(755,root,root) %{_bindir}/* |
04a5ad1f | 85 | %verify(not md5 size mtime) %config(noreplace) /etc/openssl.cnf |
48e547a4 | 86 | %verify(not md5 size mtime) %config(noreplace) %{_libdir}/openssl.cnf |
87 | %{_libdir}/lib*.a | |
04a5ad1f | 88 | /usr/include/ssl/*.h |
3bbf39a5 | 89 | /var/state/ssl |
04a5ad1f AF |
90 | |
91 | %changelog | |
92 | * Wed Apr 14 1999 Artur Frysiak <wiget@pld.org.pl> | |
93 | [0.9.2c-2] | |
94 | - rewrite for PLD | |
95 | TODO: make shared libs and perl subpackage |