Recompile with http-parser

This commit is contained in:
Nikos Mavrogiannopoulos 2020-12-09 09:37:45 +01:00
parent fa109ef2ca
commit 9178f64876

View File

@ -1,5 +1,5 @@
Version: 1.1.2
Release: 2%{?dist}
Release: 3%{?dist}
%global _hardened_build 1
%if 0%{?fedora} || 0%{?rhel} >= 7
@ -18,12 +18,6 @@ Release: 2%{?dist}
%define use_geoip 1
%endif
%if 0%{?rhel} && 0%{?rhel} == 8
%define use_http_parser 0
%else
%define use_http_parser 1
%endif
%define use_local_protobuf 0
Name: ocserv
@ -70,9 +64,7 @@ BuildRequires: libtasn1-devel
BuildRequires: gperf
BuildRequires: libtalloc-devel
BuildRequires: libev-devel
%if %{use_http_parser}
BuildRequires: http-parser-devel
%endif
%if %{use_libwrap}
BuildRequires: tcp_wrappers-devel
@ -144,9 +136,7 @@ gpgv2 --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0} || gpgv2 --keyring %{SOURCE10}
%autosetup -p1
%if %{use_http_parser}
rm -f src/http-parser/http_parser.c src/http-parser/http_parser.h
%endif
%if (0%{?use_local_protobuf} == 0)
rm -rf src/protobuf/protobuf-c/
touch src/*.proto
@ -183,9 +173,6 @@ autoreconf -fvi
%if %{use_local_protobuf}
--without-protobuf \
%endif
%if ! %{use_http_parser}
--without-http-parser \
%endif
%if %{use_libwrap}
--with-libwrap
%else
@ -281,8 +268,9 @@ install -D -m 0755 %{SOURCE11} %{buildroot}/%{_initrddir}/%{name}
%endif
%changelog
* Tue Dec 8 2020 Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com> - 1.1.2-2
* Wed Dec 9 2020 Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com> - 1.1.2-3
- Recompile without pcllib dependency
- Recompile with http-parser
* Sun Dec 6 2020 Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com> - 1.1.2-1
- Update to upstream 1.1.2 release