2019-09-30 11:04:44 -04:00
|
|
|
%{!?_httpd_mmn: %global _httpd_mmn %(cat %{_includedir}/httpd/.mmn 2>/dev/null || echo 0-0)}
|
|
|
|
|
|
|
|
|
|
Name: mod_http2
|
2020-06-23 17:07:02 +08:00
|
|
|
Version: 1.15.11
|
|
|
|
|
Release: 1
|
2019-09-30 11:04:44 -04:00
|
|
|
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
|
2020-06-23 17:07:02 +08:00
|
|
|
Patch1: fix-build-with-earlier-2.4.x-which-don-t-define-AP_S.patch
|
2019-09-30 11:04:44 -04:00
|
|
|
BuildRequires: gcc pkgconfig httpd-devel libnghttp2-devel openssl-devel
|
|
|
|
|
Requires: httpd-mmn = %{_httpd_mmn}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Mod_h[ttp]2 is an official Apache httpd module, first released in 2.4.17.
|
|
|
|
|
See Apache downloads to get a released version. mod_proxy_h[ttp]2 has been released in 2.4.23.
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure
|
|
|
|
|
%make_build V=1
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
2020-06-23 17:07:02 +08:00
|
|
|
#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
|
2019-09-30 11:04:44 -04:00
|
|
|
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
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc AUTHORS
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{_httpd_moddir}/*.so
|
|
|
|
|
%config(noreplace) %{_httpd_modconfdir}/*.conf
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc ChangeLog README README.md
|
|
|
|
|
|
|
|
|
|
%exclude /etc/httpd/share/doc/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-06-23 17:07:02 +08:00
|
|
|
* Tue Jun 23 2020 gaihuiying <gaihuiying1@huawei.com> - 1.15.11-1
|
|
|
|
|
- Type:requirement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:update mod_http2 to 1.15.11-1
|
|
|
|
|
|
2019-09-30 11:04:44 -04:00
|
|
|
* Thu Sep 05 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.10.20-4
|
|
|
|
|
- Type:enhance
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:new rule
|
|
|
|
|
|
|
|
|
|
* Mon Aug 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.10.20-3
|
|
|
|
|
- Package init
|