|
|
|
@ -18,12 +18,6 @@ Release: 1%{?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
|
|
|
|
@ -148,9 +140,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
|
|
|
|
@ -187,9 +177,6 @@ autoreconf -fvi
|
|
|
|
|
%if %{use_local_protobuf}
|
|
|
|
|
--without-protobuf \
|
|
|
|
|
%endif
|
|
|
|
|
%if ! %{use_http_parser}
|
|
|
|
|
--without-http-parser \
|
|
|
|
|
%endif
|
|
|
|
|
%if %{use_libwrap}
|
|
|
|
|
--with-libwrap
|
|
|
|
|
%else
|
|
|
|
|