]>
Commit | Line | Data |
---|---|---|
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 | 6 | name = openssl |
42e33815 MT |
7 | version = 3.1.2 |
8 | release = 1 | |
93c1e71e | 9 | |
802ea3af MT |
10 | maintainer = Michael Tremer <michael.tremer@ipfire.org> |
11 | groups = System/Libraries | |
123a329a | 12 | url = https://www.openssl.org/ |
802ea3af MT |
13 | license = OpenSSL |
14 | summary = A general purpose cryptography library with TLS implementation. | |
93c1e71e | 15 | |
802ea3af MT |
16 | description |
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 | 20 | end |
93c1e71e | 21 | |
123a329a | 22 | source_dl = https://openssl.org/source/ |
93c1e71e | 23 | |
802ea3af MT |
24 | build |
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) | |
38 | sed | |
802ea3af MT |
39 | zlib-devel |
40 | end | |
036fcb12 | 41 | |
41388a63 | 42 | export HASHBANGPERL = %{bindir}/perl |
0595faf5 | 43 | |
41388a63 | 44 | CFLAGS += -DPURIFY -Wa,--noexecstack |
68d15d21 | 45 | |
64787ed5 MT |
46 | # Set default ssl_arch. |
47 | ssl_arch = linux-%{DISTRO_ARCH} | |
48 | ||
41388a63 MT |
49 | if "%{DISTRO_ARCH}" == "x86_64" |
50 | ssl_arch += enable-ec_nistp_64_gcc_128 | |
51 | end | |
52 | ||
41388a63 MT |
53 | if "%{DISTRO_ARCH}" == "aarch64" |
54 | ssl_arch += enable-ec_nistp_64_gcc_128 | |
55 | end | |
56 | ||
5ff01db6 | 57 | configure = \ |
93c1e71e | 58 | ./Configure \ |
41388a63 | 59 | --prefix=%{prefix} \ |
ef30ff55 | 60 | --libdir=%{libdir} \ |
41388a63 | 61 | --openssldir=%{sysconfdir}/pki/tls \ |
93c1e71e | 62 | shared \ |
41388a63 | 63 | zlib \ |
93c1e71e MT |
64 | enable-camellia \ |
65 | enable-seed \ | |
93c1e71e | 66 | enable-rfc3779 \ |
42e33815 | 67 | enable-ktls \ |
41388a63 | 68 | no-rc4 \ |
93c1e71e | 69 | no-rc5 \ |
42e33815 MT |
70 | no-sm2 \ |
71 | no-sm4 \ | |
41388a63 MT |
72 | %{ssl_arch} \ |
73 | ${CFLAGS} \ | |
74 | ${LDFLAGS} | |
802ea3af | 75 | |
5ff01db6 | 76 | test |
42e33815 MT |
77 | # The testsuite has been disabled as it does not run through |
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 |
92 | end | |
93c1e71e | 93 | |
802ea3af MT |
94 | packages |
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 | 114 | end |