From a4637a6d9ec7abd7f0637c81a854ce868c97abfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Uhliarik?= Date: Mon, 15 May 2017 22:28:16 +0200 Subject: [PATCH] Initial import (#1440780). --- .gitignore | 1 + mod_http2.spec | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 57 insertions(+) create mode 100644 mod_http2.spec diff --git a/.gitignore b/.gitignore index e69de29..9e7fdae 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/mod_http2-1.10.1.tar.gz diff --git a/mod_http2.spec b/mod_http2.spec new file mode 100644 index 0000000..1a23bda --- /dev/null +++ b/mod_http2.spec @@ -0,0 +1,55 @@ +# Module Magic Number +%{!?_httpd_mmn: %global _httpd_mmn %(cat %{_includedir}/httpd/.mmn 2>/dev/null || echo 0-0)} + +Name: mod_http2 +Version: 1.10.1 +Release: 1%{?dist} +Summary: module implementing HTTP/2 for Apache 2 +Group: System Environment/Daemons +License: ASL 2.0 +URL: https://icing.github.io/mod_h2/ +Source0: https://github.com/icing/mod_h2/releases/download/v%{version}/mod_http2-%{version}.tar.gz +BuildRequires: pkgconfig, httpd-devel >= 2.4.20, libnghttp2-devel >= 1.7.0, openssl-devel >= 1.0.2 +Requires: httpd-mmn = %{_httpd_mmn} +Conflicts: httpd < 2.4.25-8 + +%description +The mod_h2 Apache httpd module implements the HTTP2 protocol (h2+h2c) on +top of libnghttp2 for httpd 2.4 servers. + +%prep +%setup -q + +%build +%configure +make %{?_smp_mflags} V=1 + +%install +make DESTDIR=%{buildroot} install +rm -rf %{buildroot}/etc/httpd/share/doc/ + +# remove links and rename SO files +rm -r %{buildroot}%{_httpd_moddir}/mod_http2.so +rm -r %{buildroot}%{_httpd_moddir}/mod_proxy_http2.so +mv %{buildroot}%{_httpd_moddir}/mod_http2.so.0.0.0 %{buildroot}%{_httpd_moddir}/mod_http2.so +mv %{buildroot}%{_httpd_moddir}/mod_proxy_http2.so.0.0.0 %{buildroot}%{_httpd_moddir}/mod_proxy_http2.so + +# create configuration +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 +%doc README README.md ChangeLog AUTHORS +%license LICENSE +%config(noreplace) %{_httpd_modconfdir}/10-h2.conf +%config(noreplace) %{_httpd_modconfdir}/10-proxy_h2.conf +%{_httpd_moddir}/mod_http2.so +%{_httpd_moddir}/mod_proxy_http2.so + +%changelog +* Mon Apr 10 2017 Luboš Uhliarik - 1.10.1-1 +- Initial import (#1440780). diff --git a/sources b/sources index e69de29..9d4faaf 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (mod_http2-1.10.1.tar.gz) = d1bae1faaa55d441314415a62faed207edcc3b7688e678f5166147c3ecd7fd13f61b0d4d7dbfb0cade64a2f718999d3c8f1a9c21cb60786ba213d277a2a0216c