1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 maintainer = Michael Tremer <michael.tremer@ipfire.org>
11 groups = System/Libraries
12 url = https://www.openssl.org/
14 summary = A general purpose cryptography library with TLS implementation.
17 The OpenSSL toolkit provides support for secure communications between
18 machines. OpenSSL includes a certificate management tool and shared
19 libraries which provide various cryptographic algorithms and protocols.
22 source_dl = https://openssl.org/source/
34 perl(Module::Load::Conditional)
43 export HASHBANGPERL = %{bindir}/perl
45 CFLAGS += -DPURIFY -Wa,--noexecstack
47 # Set default ssl_arch.
48 ssl_arch = linux-%{DISTRO_ARCH}
50 if "%{DISTRO_ARCH}" == "x86_64"
51 ssl_arch += enable-ec_nistp_64_gcc_128
54 if "%{DISTRO_ARCH}" == "aarch64"
55 ssl_arch += enable-ec_nistp_64_gcc_128
62 --openssldir=%{sysconfdir}/pki/tls \
82 # Clean up the .pc files
83 for i in libcrypto.pc libssl.pc openssl.pc; do
84 sed -i '/^Libs.private:/{s/-L[^ ]* //;s/-Wl[^ ]* //}' $i
87 make install DESTDIR=%{BUILDROOT}
90 rm -vf %{BUILDROOT}%{sysconfdir}/pki/tls/openssl.cnf.dist
96 requires += %{name}-libs = %{thisver}
102 requires += ca-certificates
104 files += %{libdir}/openssl %{libdir}/engines*
107 package %{name}-devel
111 package %{name}-debuginfo