20
20
%global with_http2 0
21
21
%endif
22
22
23
+ %if 0%{?rhel } >= 10
24
+ # https://docs.fedoraproject.org/en-US/packaging-guidelines/#_brp_buildroot_policy_scripts
25
+ %global __brp_check_rpaths %{nil }
26
+ %endif
27
+
23
28
Summary: Apache HTTP Server
24
29
Name: ea-apache24
25
30
Version: 2.4.63
@@ -113,10 +118,21 @@ Requires: openssl
113
118
BuildRequires: autoconf, perl, pkgconfig, findutils, xmlto
114
119
BuildRequires: zlib-devel, libselinux-devel, lua-devel
115
120
BuildRequires: ea-apr-devel >= 1.6.3-1, ea-apr-util-devel >= 1.6.1-1
116
- BuildRequires: pcre-devel >= 5.0
121
+
122
+ %if 0%{?rhel } >= 10
123
+ BuildRequires: libxml2 libxml2-devel
124
+ BuildRequires: pcre2-devel
125
+ %else
117
126
BuildRequires: ea-libxml2 ea-libxml2-devel
127
+ BuildRequires: pcre-devel >= 5.0
128
+ %endif
129
+
118
130
%if %{with_http2 }
131
+ %if 0%{?rhel } >= 10
132
+ BuildRequires: nghttp2 libnghttp2
133
+ %else
119
134
BuildRequires: ea-nghttp2 ea-libnghttp2
135
+ %endif
120
136
%endif
121
137
122
138
%if 0%{?rhel } >= 7
@@ -157,7 +173,14 @@ Provides: ea-apache24-mmn = %{oldmmnisa}
157
173
Requires: ea-apache24-tools = %{version }-%{release }
158
174
Requires: ea-apache24-mod_proxy_http
159
175
Requires: ea-apache24-mod_proxy
176
+
177
+
178
+ %if 0%{?rhel } == 10
179
+ # ea-cpanel-tools needs cpanel perl which is not yet available on Almalinux 10
180
+ %else
160
181
Requires: ea-cpanel-tools
182
+ %endif
183
+
161
184
%if 0%{?rhel } < 8
162
185
Requires: elinks
163
186
%endif
@@ -199,7 +222,11 @@ also be found at http://httpd.apache.org/docs/2.4/.
199
222
%package -n ea-apache24-mod_http2
200
223
Group: System Environment/Daemons
201
224
Summary: HTTP2 module for Apache HTTP Server
225
+ %if 0%{?rhel } >= 10
226
+ BuildRequires: libnghttp2-devel
227
+ %else
202
228
BuildRequires: ea-libnghttp2-devel
229
+ %endif
203
230
204
231
%if 0%{?rhel } < 8
205
232
BuildRequires: ea-openssl11 >= %{ea_openssl_ver }, ea-openssl11-devel >= %{ea_openssl_ver }
@@ -210,7 +237,12 @@ BuildRequires: openssl, openssl-devel
210
237
Requires: openssl
211
238
%endif
212
239
240
+ %if 0%{?rhel } >= 10
241
+ Requires: nghttp2
242
+ %else
213
243
Requires: ea-nghttp2
244
+ %endif
245
+
214
246
Requires: ea-apache24 = 0:%{version }-%{release }, ea-apache24-mmn = %{mmnisa }
215
247
Conflicts: ea-apache24-mod_mpm_itk, ea-apache24-mod_mpm_prefork
216
248
@@ -412,8 +444,13 @@ authentication module, such as mod_auth_basic or mod_auth_digest.
412
444
Group: System Environment/Daemons
413
445
Summary: Compress content via Brotli before it is delivered to the client
414
446
Requires: ea-apache24 = 0:%{version }-%{release }, ea-apache24-mmn = %{mmnisa }
447
+ %if 0%{?rhel } >= 10
448
+ Requires: brotli
449
+ BuildRequires: brotli-devel
450
+ %else
415
451
Requires: ea-brotli
416
452
BuildRequires: ea-brotli-devel
453
+ %endif
417
454
418
455
%description -n ea-apache24-mod_brotli
419
456
The mod_brotli module provides the BROTLI_COMPRESS output filter that allows
@@ -1030,7 +1067,11 @@ Group: System Environment/Daemons
1030
1067
Summary: HTML and XML content filters for the Apache HTTP Server
1031
1068
Requires: ea-apache24 = 0:%{version }-%{release }, ea-apache24-mmn = %{mmnisa }
1032
1069
Requires: ea-apache24-mod_proxy = 0:%{version }-%{release }
1070
+ %if 0%{?rhel } >= 10
1071
+ BuildRequires: libxml2 libxml2-devel
1072
+ %else
1033
1073
BuildRequires: ea-libxml2 ea-libxml2-devel
1074
+ %endif
1034
1075
Obsoletes: mod_proxy_html
1035
1076
1036
1077
%description -n ea-apache24-mod_proxy_html
@@ -1239,7 +1280,12 @@ BuildRequires: openssl, openssl-devel
1239
1280
Requires(post): openssl
1240
1281
%endif
1241
1282
1283
+ %if 0%{?rhel } >= 10
1284
+ Requires(post): /usr/bin/cat
1285
+ %else
1242
1286
Requires(post): /bin/cat
1287
+ %endif
1288
+
1243
1289
Requires(pre): ea-apache24
1244
1290
Requires: ea-apache24 = 0:%{version }-%{release }, ea-apache24-mmn = %{mmnisa }
1245
1291
Obsoletes: stronghold-mod_ssl, mod_ssl
@@ -1432,7 +1478,11 @@ export LYNX_PATH=/usr/bin/links
1432
1478
--enable-ssl --with-ssl \
1433
1479
%endif
1434
1480
--enable-ssl-staticlib-deps \
1481
+ %if 0%{?rhel } >= 10
1482
+ --with-nghttp2 \
1483
+ %else
1435
1484
--with-nghttp2= /opt/cpanel/nghttp2/ \
1485
+ %endif
1436
1486
--enable-nghttp2-staticlib-deps \
1437
1487
%else
1438
1488
--enable-ssl --with-ssl \
@@ -1449,10 +1499,16 @@ export LYNX_PATH=/usr/bin/links
1449
1499
--enable-authn-alias \
1450
1500
--enable-imagemap \
1451
1501
--disable-echo \
1452
- --with-libxml2= /opt/cpanel/ea-libxml2/include/libxml2 \
1453
- --disable-v4-mapped \
1454
1502
--enable-brotli \
1503
+ %if 0%{?rhel } >= 10
1504
+ --enable-libxml2 \
1505
+ %else
1506
+ --with-libxml2= /opt/cpanel/ea-libxml2/include/libxml2 \
1455
1507
--with-brotli= /opt/cpanel/ea-brotli \
1508
+ %endif
1509
+ --disable-v4-mapped \
1510
+ %if 0%{?rhel } >= 10
1511
+ %else
1456
1512
MOD_PROXY_HTML_LDADD= "-L/opt/cpanel/ea-libxml2/%{_lib } -R/opt/cpanel/ea-libxml2/%{_lib }" \
1457
1513
MOD_XML2ENC_LDADD= "-L/opt/cpanel/ea-libxml2/%{_lib } -R/opt/cpanel/ea-libxml2/%{_lib }" \
1458
1514
MOD_BROTLI_LDADD= "-L/opt/cpanel/ea-brotli/lib -R/opt/cpanel/ea-brotli/lib" \
@@ -1462,10 +1518,12 @@ export LYNX_PATH=/usr/bin/links
1462
1518
%if %{with_http2 }
1463
1519
MOD_HTTP2_LDADD= "-L/opt/cpanel/ea-openssl11/%{_lib } -R/opt/cpanel/ea-openssl11/%{_lib }" \
1464
1520
%endif
1521
+ %endif
1465
1522
%endif
1466
1523
$*
1467
1524
1468
1525
%if 0%{?rhel } >= 8
1526
+ %if 0%{?rhel } < 10
1469
1527
# This is ugly, very ugly.
1470
1528
# ZC-6833 was created to eventually come up with a proper solution for these
1471
1529
# linking issues.
@@ -1475,11 +1533,6 @@ export LYNX_PATH=/usr/bin/links
1475
1533
# link against the system directory, then -l:libcrypto.so.1.1 I am telling it
1476
1534
# to link that particular library in.
1477
1535
1478
- # I need to prepend this for later "sed"ing
1479
- %if 0%{?rhel } < 8
1480
- echo 'SYS_OPENSSL = -Wl,-rpath= /opt/cpanel/ea-openssl11/lib -Wl,-rpath-link= /lib64 -L/lib64 -l:libcrypto.so.1.1' > support/Makefile.tmp
1481
- %endif
1482
-
1483
1536
cat support/Makefile >> support/Makefile.tmp
1484
1537
cp -f support/Makefile.tmp support/Makefile
1485
1538
@@ -1489,6 +1542,7 @@ sed -i '/^.*PROGRAM_LDADD[ \t]*=.*$/ s/$/ $(SYS_OPENSSL)/' support/Makefile
1489
1542
# ab, does it's own thing so I need to do our thing
1490
1543
sed -i '/^.*$(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@ $(ab_LTFLAGS) $(ab_OBJECTS) $(ab_LDADD).*$/ s/$/ $(SYS_OPENSSL)/' support/Makefile
1491
1544
%endif
1545
+ %endif
1492
1546
1493
1547
make %{?_smp_mflags }
1494
1548
@@ -1820,6 +1874,9 @@ for fd in httpd-dav.conf httpd-default.conf httpd-languages.conf httpd-manual.co
1820
1874
cp docs/conf/extra/$fd $RPM_BUILD_ROOT/usr/share/doc/ea-apache24/docs/conf/extra/$fd
1821
1875
done
1822
1876
1877
+ echo "APACHEMODULES" $RPM_BUILD_ROOT $RPM_BUILD_ROOT/%{_libdir } $RPM_BUILD_ROOT/%{_libdir }/apache2/modules
1878
+ ls -ld $RPM_BUILD_ROOT/%{_libdir }/apache2/modules/* || /bin/true
1879
+
1823
1880
%pre
1824
1881
%include %{SOURCE46 }
1825
1882
0 commit comments