1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
9 thisapp = openssl-%{version}
11 maintainer = Michael Tremer <michael.tremer@ipfire.org>
12 groups = System/Libraries
13 url = http://www.openssl.org/
15 summary = A general purpose cryptography library with TLS implementation.
18 The OpenSSL toolkit provides support for secure communications between
19 machines. OpenSSL includes a certificate management tool and shared
20 libraries which provide various cryptographic algorithms and protocols.
23 source_dl = http://openssl.org/source/
35 export RPM_OPT_FLAGS = %{CFLAGS} %{LDFLAGS}
38 sed -e 's/SHLIB_VERSION_NUMBER "1.0.0"/SHLIB_VERSION_NUMBER "%{version}"/' \
41 find crypto/ -name Makefile -exec \
42 sed 's/^ASFLAGS=/&-Wa,--noexecstack /' -i {} \;
44 # Generate a table with the compile settings for my perusal.
46 make TABLE PERL=/usr/bin/perl
49 # Set default ssl_arch.
50 ssl_arch = linux-%{DISTRO_ARCH}
52 if "%{DISTRO_ARCH}" == "i686"
54 ssl_arch = linux-elf no-asm 386
57 if "%{DISTRO_ARCH}" == "armv5tel"
58 ssl_arch = linux-armv4
61 if "%{DISTRO_ARCH}" == "armv7hl"
62 ssl_arch = linux-armv4
68 --openssldir=/etc/pki/tls \
69 --enginesdir=%{libdir}/openssl/engines \
89 # Generate hashes for the included certs.
94 # Revert ca-dir patch. Otherwise the tests will fail.
95 patch -Np1 -R < %{DIR_PATCHES}/openssl-1.0.0-beta4-ca-dir.patch
101 make install INSTALL_PREFIX=%{BUILDROOT}
104 rm -rfv %{BUILDROOT}%{sysconfdir}/pki/tls/man %{BUILDROOT}/usr/share/man*
106 # Remove configuration files
107 rm -rfv %{BUILDROOT}%{sysconfdir}/pki
110 rm -rfv %{BUILDROOT}%{libdir}/{engines,openssl}
113 rm -rfv %{BUILDROOT}%{bindir}
128 openssl <= %{thisver}
132 package %{name}-devel
136 openssl-devel = %{thisver}
140 openssl-devel <= %{thisver}
144 package %{name}-debuginfo