diff --git a/fix-build-with-earlier-2.4.x-which-don-t-define-AP_S.patch b/fix-build-with-earlier-2.4.x-which-don-t-define-AP_S.patch deleted file mode 100644 index 2b5c8c0..0000000 --- a/fix-build-with-earlier-2.4.x-which-don-t-define-AP_S.patch +++ /dev/null @@ -1,28 +0,0 @@ -From dfe2b46068d92872084a22efc7e5229651889711 Mon Sep 17 00:00:00 2001 -From: Joe Orton -Date: Thu, 14 Mar 2019 10:40:18 +0000 -Subject: [PATCH] Fix build with earlier 2.4.x which don't define - AP_STATUS_IS_HEADER_ONLY. - ---- - mod_http2/h2_from_h1.c | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/mod_http2/h2_from_h1.c b/mod_http2/h2_from_h1.c -index edb1d8e..0753099 100644 ---- a/mod_http2/h2_from_h1.c -+++ b/mod_http2/h2_from_h1.c -@@ -35,6 +35,10 @@ - #include "h2_task.h" - #include "h2_util.h" - -+#ifndef AP_STATUS_IS_HEADER_ONLY -+#define AP_STATUS_IS_HEADER_ONLY(x) ((x) == HTTP_NO_CONTENT || \ -+ (x) == HTTP_NOT_MODIFIED) -+#endif - - /* This routine is called by apr_table_do and merges all instances of - * the passed field values into a single array that will be further --- -1.8.3.1 - diff --git a/mod_http2-1.15.25.tar.gz b/mod_http2-1.15.25.tar.gz deleted file mode 100644 index 3d55b72..0000000 Binary files a/mod_http2-1.15.25.tar.gz and /dev/null differ diff --git a/mod_http2-2.0.3.tar.gz b/mod_http2-2.0.3.tar.gz new file mode 100644 index 0000000..31893cc Binary files /dev/null and b/mod_http2-2.0.3.tar.gz differ diff --git a/mod_http2.spec b/mod_http2.spec index a461bda..9962f69 100644 --- a/mod_http2.spec +++ b/mod_http2.spec @@ -1,13 +1,13 @@ %{!?_httpd_mmn: %global _httpd_mmn %(cat %{_includedir}/httpd/.mmn 2>/dev/null || echo 0-0)} Name: mod_http2 -Version: 1.15.25 -Release: 2 +Version: 2.0.3 +Release: 1 Summary: Support for the HTTP/2 transport layer License: ASL 2.0 URL: https://icing.github.io/mod_h2/ Source0: https://github.com/icing/mod_h2/releases/download/v%{version}/%{name}-%{version}.tar.gz -Patch1: fix-build-with-earlier-2.4.x-which-don-t-define-AP_S.patch + BuildRequires: gcc pkgconfig httpd-devel libnghttp2-devel openssl-devel autoconf libtool hostname Requires: httpd-mmn = %{_httpd_mmn} @@ -27,8 +27,6 @@ autoreconf -i %install %make_install -#mv -f %{buildroot}%{_httpd_moddir}/mod_http2.so.0.0.0 %{buildroot}%{_httpd_moddir}/mod_http2.so -#mv -f %{buildroot}%{_httpd_moddir}/mod_proxy_http2.so.0.0.0 %{buildroot}%{_httpd_moddir}/mod_proxy_http2.so mkdir -p %{buildroot}%{_httpd_modconfdir} echo "LoadModule http2_module modules/mod_http2.so" > %{buildroot}%{_httpd_modconfdir}/10-h2.conf echo "LoadModule proxy_http2_module modules/mod_proxy_http2.so" > %{buildroot}%{_httpd_modconfdir}/10-proxy_h2.conf @@ -50,6 +48,12 @@ make check %exclude /etc/httpd/share/doc/* %changelog +* Thu Nov 10 2022 gaihuiying - 2.0.3-1 +- Type:requirement +- ID:NA +- SUG:NA +- DESC: update mod_http2 to 2.0.3 + * Wed Oct 19 2022 gaihuiying - 1.15.25-2 - Type:bugfix - ID:NA