diff --git a/apache2.changes b/apache2.changes index 9e6cdca..b80b6b9 100644 --- a/apache2.changes +++ b/apache2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 5 07:14:03 UTC 2018 - pgajdos@suse.com + +- build mod_http2 also for 42.3 + ------------------------------------------------------------------- Fri Feb 2 07:39:23 UTC 2018 - pgajdos@suse.com diff --git a/apache2.spec b/apache2.spec index f0c78b3..5226aea 100644 --- a/apache2.spec +++ b/apache2.spec @@ -62,6 +62,11 @@ %else %define use_firewalld 0 %endif +%if 0%{?suse_version} >= 1500 || 0%{?is_opensuse} +%define build_http2 1 +%else +%define build_http2 0 +%endif Name: apache2 Version: 2.4.29 Release: 0 @@ -204,7 +209,7 @@ BuildRequires: pkgconfig BuildRequires: pkgconfig(libsystemd) BuildRequires: pkgconfig(systemd) %endif -%if 0%{?suse_version} > 1320 +%if 0%{?build_http2} BuildRequires: pkgconfig(libnghttp2) >= 1.2.1 %endif @@ -952,7 +957,7 @@ mv %{buildroot}/%{sysconfdir}/original . %{_libdir}/%{name}-prefork/mod_filter.so %{_libdir}/%{name}-prefork/mod_headers.so %{_libdir}/%{name}-prefork/mod_heartmonitor.so -%if 0%{?suse_version} > 1320 +%if 0%{?build_http2} %{_libdir}/%{name}-prefork/mod_http2.so %endif %{_libdir}/%{name}-prefork/mod_imagemap.so @@ -1080,7 +1085,7 @@ mv %{buildroot}/%{sysconfdir}/original . %{_libdir}/%{name}-worker/mod_filter.so %{_libdir}/%{name}-worker/mod_headers.so %{_libdir}/%{name}-worker/mod_heartmonitor.so -%if 0%{?suse_version} > 1320 +%if 0%{?build_http2} %{_libdir}/%{name}-worker/mod_http2.so %endif %{_libdir}/%{name}-worker/mod_imagemap.so @@ -1207,7 +1212,7 @@ mv %{buildroot}/%{sysconfdir}/original . %{_libdir}/%{name}-event/mod_file_cache.so %{_libdir}/%{name}-event/mod_filter.so %{_libdir}/%{name}-event/mod_headers.so -%if 0%{?suse_version} > 1320 +%if 0%{?build_http2} %{_libdir}/%{name}-event/mod_http2.so %endif %{_libdir}/%{name}-event/mod_heartmonitor.so