20
20
%global with_http2 0
21
21
%endif
22
22
23
+ %if 0%{?rhel } >= 10
24
+ %global __brp_check_rpaths %{nil }
25
+ %endif
26
+
23
27
Summary: Apache HTTP Server
24
28
Name: ea-apache24
25
29
Version: 2.4.63
@@ -113,10 +117,21 @@ Requires: openssl
113
117
BuildRequires: autoconf, perl, pkgconfig, findutils, xmlto
114
118
BuildRequires: zlib-devel, libselinux-devel, lua-devel
115
119
BuildRequires: ea-apr-devel >= 1.6.3-1, ea-apr-util-devel >= 1.6.1-1
116
- BuildRequires: pcre-devel >= 5.0
120
+
121
+ %if 0%{?rhel } >= 10
122
+ BuildRequires: libxml2 libxml2-devel
123
+ BuildRequires: pcre2-devel
124
+ %else
117
125
BuildRequires: ea-libxml2 ea-libxml2-devel
126
+ BuildRequires: pcre-devel >= 5.0
127
+ %endif
128
+
118
129
%if %{with_http2 }
130
+ %if 0%{?rhel } >= 10
131
+ BuildRequires: nghttp2 libnghttp2
132
+ %else
119
133
BuildRequires: ea-nghttp2 ea-libnghttp2
134
+ %endif
120
135
%endif
121
136
122
137
%if 0%{?rhel } >= 7
@@ -199,7 +214,11 @@ also be found at http://httpd.apache.org/docs/2.4/.
199
214
%package -n ea-apache24-mod_http2
200
215
Group: System Environment/Daemons
201
216
Summary: HTTP2 module for Apache HTTP Server
217
+ %if 0%{?rhel } >= 10
218
+ BuildRequires: libnghttp2-devel
219
+ %else
202
220
BuildRequires: ea-libnghttp2-devel
221
+ %endif
203
222
204
223
%if 0%{?rhel } < 8
205
224
BuildRequires: ea-openssl11 >= %{ea_openssl_ver }, ea-openssl11-devel >= %{ea_openssl_ver }
@@ -210,7 +229,12 @@ BuildRequires: openssl, openssl-devel
210
229
Requires: openssl
211
230
%endif
212
231
232
+ %if 0%{?rhel } >= 10
233
+ Requires: nghttp2
234
+ %else
213
235
Requires: ea-nghttp2
236
+ %endif
237
+
214
238
Requires: ea-apache24 = 0:%{version }-%{release }, ea-apache24-mmn = %{mmnisa }
215
239
Conflicts: ea-apache24-mod_mpm_itk, ea-apache24-mod_mpm_prefork
216
240
@@ -412,8 +436,13 @@ authentication module, such as mod_auth_basic or mod_auth_digest.
412
436
Group: System Environment/Daemons
413
437
Summary: Compress content via Brotli before it is delivered to the client
414
438
Requires: ea-apache24 = 0:%{version }-%{release }, ea-apache24-mmn = %{mmnisa }
439
+ %if 0%{?rhel } >= 10
440
+ Requires: brotli
441
+ BuildRequires: brotli-devel
442
+ %else
415
443
Requires: ea-brotli
416
444
BuildRequires: ea-brotli-devel
445
+ %endif
417
446
418
447
%description -n ea-apache24-mod_brotli
419
448
The mod_brotli module provides the BROTLI_COMPRESS output filter that allows
@@ -1030,7 +1059,11 @@ Group: System Environment/Daemons
1030
1059
Summary: HTML and XML content filters for the Apache HTTP Server
1031
1060
Requires: ea-apache24 = 0:%{version }-%{release }, ea-apache24-mmn = %{mmnisa }
1032
1061
Requires: ea-apache24-mod_proxy = 0:%{version }-%{release }
1062
+ %if 0%{?rhel } >= 10
1063
+ BuildRequires: libxml2 libxml2-devel
1064
+ %else
1033
1065
BuildRequires: ea-libxml2 ea-libxml2-devel
1066
+ %endif
1034
1067
Obsoletes: mod_proxy_html
1035
1068
1036
1069
%description -n ea-apache24-mod_proxy_html
@@ -1432,7 +1465,11 @@ export LYNX_PATH=/usr/bin/links
1432
1465
--enable-ssl --with-ssl \
1433
1466
%endif
1434
1467
--enable-ssl-staticlib-deps \
1468
+ %if 0%{?rhel } >= 10
1469
+ --with-nghttp2 \
1470
+ %else
1435
1471
--with-nghttp2= /opt/cpanel/nghttp2/ \
1472
+ %endif
1436
1473
--enable-nghttp2-staticlib-deps \
1437
1474
%else
1438
1475
--enable-ssl --with-ssl \
@@ -1449,10 +1486,16 @@ export LYNX_PATH=/usr/bin/links
1449
1486
--enable-authn-alias \
1450
1487
--enable-imagemap \
1451
1488
--disable-echo \
1452
- --with-libxml2= /opt/cpanel/ea-libxml2/include/libxml2 \
1453
- --disable-v4-mapped \
1454
1489
--enable-brotli \
1490
+ %if 0%{?rhel } >= 10
1491
+ --enable-libxml2 \
1492
+ %else
1493
+ --with-libxml2= /opt/cpanel/ea-libxml2/include/libxml2 \
1455
1494
--with-brotli= /opt/cpanel/ea-brotli \
1495
+ %endif
1496
+ --disable-v4-mapped \
1497
+ %if 0%{?rhel } >= 10
1498
+ %else
1456
1499
MOD_PROXY_HTML_LDADD= "-L/opt/cpanel/ea-libxml2/%{_lib } -R/opt/cpanel/ea-libxml2/%{_lib }" \
1457
1500
MOD_XML2ENC_LDADD= "-L/opt/cpanel/ea-libxml2/%{_lib } -R/opt/cpanel/ea-libxml2/%{_lib }" \
1458
1501
MOD_BROTLI_LDADD= "-L/opt/cpanel/ea-brotli/lib -R/opt/cpanel/ea-brotli/lib" \
@@ -1462,10 +1505,12 @@ export LYNX_PATH=/usr/bin/links
1462
1505
%if %{with_http2 }
1463
1506
MOD_HTTP2_LDADD= "-L/opt/cpanel/ea-openssl11/%{_lib } -R/opt/cpanel/ea-openssl11/%{_lib }" \
1464
1507
%endif
1508
+ %endif
1465
1509
%endif
1466
1510
$*
1467
1511
1468
1512
%if 0%{?rhel } >= 8
1513
+ %if 0%{?rhel } < 10
1469
1514
# This is ugly, very ugly.
1470
1515
# ZC-6833 was created to eventually come up with a proper solution for these
1471
1516
# linking issues.
@@ -1475,11 +1520,6 @@ export LYNX_PATH=/usr/bin/links
1475
1520
# link against the system directory, then -l:libcrypto.so.1.1 I am telling it
1476
1521
# to link that particular library in.
1477
1522
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
1523
cat support/Makefile >> support/Makefile.tmp
1484
1524
cp -f support/Makefile.tmp support/Makefile
1485
1525
@@ -1489,6 +1529,7 @@ sed -i '/^.*PROGRAM_LDADD[ \t]*=.*$/ s/$/ $(SYS_OPENSSL)/' support/Makefile
1489
1529
# ab, does it's own thing so I need to do our thing
1490
1530
sed -i '/^.*$(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@ $(ab_LTFLAGS) $(ab_OBJECTS) $(ab_LDADD).*$/ s/$/ $(SYS_OPENSSL)/' support/Makefile
1491
1531
%endif
1532
+ %endif
1492
1533
1493
1534
make %{?_smp_mflags }
1494
1535
@@ -1820,6 +1861,9 @@ for fd in httpd-dav.conf httpd-default.conf httpd-languages.conf httpd-manual.co
1820
1861
cp docs/conf/extra/$fd $RPM_BUILD_ROOT/usr/share/doc/ea-apache24/docs/conf/extra/$fd
1821
1862
done
1822
1863
1864
+ echo "APACHEMODULES" $RPM_BUILD_ROOT $RPM_BUILD_ROOT/%{_libdir } $RPM_BUILD_ROOT/%{_libdir }/apache2/modules
1865
+ ls -ld $RPM_BUILD_ROOT/%{_libdir }/apache2/modules/* || /bin/true
1866
+
1823
1867
%pre
1824
1868
%include %{SOURCE46 }
1825
1869
0 commit comments