]> git.ipfire.org Git - ipfire-3.x.git/blame - openssl/openssl.nm
openssl: Update to version 3.1.4
[ipfire-3.x.git] / openssl / openssl.nm
CommitLineData
93c1e71e 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
93c1e71e
MT
4###############################################################################
5
802ea3af 6name = openssl
16e57320
AB
7version = 3.1.4
8release = 1
93c1e71e 9
802ea3af
MT
10maintainer = Michael Tremer <michael.tremer@ipfire.org>
11groups = System/Libraries
123a329a 12url = https://www.openssl.org/
802ea3af
MT
13license = OpenSSL
14summary = A general purpose cryptography library with TLS implementation.
93c1e71e 15
802ea3af
MT
16description
17 The OpenSSL toolkit provides support for secure communications between
18 machines. OpenSSL includes a certificate management tool and shared
93c1e71e 19 libraries which provide various cryptographic algorithms and protocols.
802ea3af 20end
93c1e71e 21
123a329a 22source_dl = https://openssl.org/source/
93c1e71e 23
802ea3af
MT
24build
25 requires
41388a63
MT
26 ca-certificates
27 coreutils
802ea3af 28 perl
ef30ff55
SS
29 perl(FindBin)
30 perl(File::Compare)
31 perl(File::Copy)
123a329a 32 perl(IPC::Cmd)
41388a63
MT
33 perl(Math::BigInt)
34 perl(Module::Load::Conditional)
ef30ff55 35 perl(Pod::Html)
41388a63
MT
36 perl(Test::Harness)
37 perl(Test::More)
c5d38996 38 perl(Time::Local)
41388a63 39 sed
802ea3af
MT
40 zlib-devel
41 end
036fcb12 42
41388a63 43 export HASHBANGPERL = %{bindir}/perl
0595faf5 44
41388a63 45 CFLAGS += -DPURIFY -Wa,--noexecstack
68d15d21 46
64787ed5
MT
47 # Set default ssl_arch.
48 ssl_arch = linux-%{DISTRO_ARCH}
49
41388a63
MT
50 if "%{DISTRO_ARCH}" == "x86_64"
51 ssl_arch += enable-ec_nistp_64_gcc_128
52 end
53
41388a63
MT
54 if "%{DISTRO_ARCH}" == "aarch64"
55 ssl_arch += enable-ec_nistp_64_gcc_128
56 end
57
5ff01db6 58 configure = \
93c1e71e 59 ./Configure \
41388a63 60 --prefix=%{prefix} \
ef30ff55 61 --libdir=%{libdir} \
41388a63 62 --openssldir=%{sysconfdir}/pki/tls \
93c1e71e 63 shared \
41388a63 64 zlib \
93c1e71e
MT
65 enable-camellia \
66 enable-seed \
93c1e71e 67 enable-rfc3779 \
42e33815 68 enable-ktls \
41388a63 69 no-rc4 \
93c1e71e 70 no-rc5 \
42e33815
MT
71 no-sm2 \
72 no-sm4 \
41388a63
MT
73 %{ssl_arch} \
74 ${CFLAGS} \
75 ${LDFLAGS}
802ea3af 76
5ff01db6 77 test
c5d38996 78 make test
5ff01db6 79 end
93c1e71e 80
5ff01db6 81 install
41388a63
MT
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
85 done
93c1e71e 86
41388a63 87 make install DESTDIR=%{BUILDROOT}
76e1849a 88
41388a63
MT
89 # Remove dist config
90 rm -vf %{BUILDROOT}%{sysconfdir}/pki/tls/openssl.cnf.dist
802ea3af
MT
91 end
92end
93c1e71e 93
802ea3af
MT
94packages
95 package %{name}
3c4cf2d0
MT
96 requires += %{name}-libs = %{thisver}
97 end
93c1e71e 98
ed1f6221
SS
99 package %{name}-libs
100 template LIBS
101
102 requires += ca-certificates
0595faf5 103
41388a63 104 files += %{libdir}/openssl %{libdir}/engines*
ed1f6221
SS
105 end
106
802ea3af
MT
107 package %{name}-devel
108 template DEVEL
109 end
1f9bc2f0
MT
110
111 package %{name}-debuginfo
112 template DEBUGINFO
113 end
802ea3af 114end