|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
# This spec file has been automatically updated
|
|
|
|
|
Version: 0.11.9
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Version: 0.11.10
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
%global _hardened_build 1
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} >= 7
|
|
|
|
@ -17,6 +17,13 @@ Release: 3%{?dist}
|
|
|
|
|
%define use_libwrap 1
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%define use_local_protobuf 0
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} == 7
|
|
|
|
|
%ifarch ppc64
|
|
|
|
|
%define use_local_protobuf 1
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: ocserv
|
|
|
|
|
Summary: OpenConnect SSL VPN server
|
|
|
|
|
|
|
|
|
@ -48,12 +55,7 @@ BuildRequires: gnutls-devel
|
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
|
BuildRequires: iproute
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} == 7
|
|
|
|
|
%ifnarch ppc64
|
|
|
|
|
BuildRequires: protobuf-c-devel
|
|
|
|
|
%endif
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
|
|
%if (0%{?use_local_protobuf} == 0)
|
|
|
|
|
BuildRequires: protobuf-c-devel
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
@ -125,7 +127,10 @@ gpgv2 --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0} || gpgv2 --keyring %{SOURCE10}
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
rm -f src/http-parser/http_parser.c src/http-parser/http_parser.h
|
|
|
|
|
%if (0%{?use_local_protobuf} == 0)
|
|
|
|
|
rm -rf src/protobuf/protobuf-c/
|
|
|
|
|
touch src/*.proto
|
|
|
|
|
%endif
|
|
|
|
|
rm -rf src/ccan/talloc
|
|
|
|
|
rm -f src/pcl/*.c src/pcl/*.h
|
|
|
|
|
sed -i 's|/etc/ocserv.conf|/etc/ocserv/ocserv.conf|g' src/config.c
|
|
|
|
@ -133,7 +138,6 @@ sed -i 's/run-as-group = nogroup/run-as-group = nobody/g' tests/data/*.config
|
|
|
|
|
# GPLv3 in headers is a gnulib bug:
|
|
|
|
|
# http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00062.html
|
|
|
|
|
sed -i 's/either version 3 of the License/either version 2 of the License/g' build-aux/snippet/*
|
|
|
|
|
touch src/*.proto
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 6
|
|
|
|
|
echo "int main() { return 77; }" > tests/valid-hostname.c
|
|
|
|
@ -161,6 +165,9 @@ autoreconf -fvi
|
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 6
|
|
|
|
|
--enable-local-libopts \
|
|
|
|
|
%endif
|
|
|
|
|
%if %{use_local_protobuf}
|
|
|
|
|
--without-protobuf \
|
|
|
|
|
%endif
|
|
|
|
|
%if %{use_libwrap}
|
|
|
|
|
--with-libwrap
|
|
|
|
|
%else
|
|
|
|
@ -255,6 +262,9 @@ rm -rf %{buildroot}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Jan 08 2018 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.11.10-1
|
|
|
|
|
- Update to upstream 0.11.10 release
|
|
|
|
|
|
|
|
|
|
* Tue Nov 21 2017 Nikos Mavrogiannopoulos <nmav@redhat.com> - 0.11.9-3
|
|
|
|
|
- Update to upstream 0.11.9 release
|
|
|
|
|
|
|
|
|
|