SHA256
1
0
forked from pool/openvpn
OBS User unknown 2008-02-19 13:14:21 +00:00 committed by Git OBS Bridge
parent 27b31a3854
commit bdc110c4d5
2 changed files with 14 additions and 9 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Feb 19 11:32:55 CET 2008 - mt@suse.de
- Fixed spec file to not set pie flags when building plugins
-------------------------------------------------------------------
Thu Jan 17 19:44:41 CET 2008 - mt@suse.de

View File

@ -10,6 +10,7 @@
# norootforbuild
Name: openvpn
Url: http://openvpn.net/
License: GPL v2 or later; LGPL v2.1 or later
@ -19,7 +20,7 @@ AutoReqProv: on
PreReq: %insserv_prereq %fillup_prereq
%endif
Version: 2.0.9
Release: 61
Release: 70
Summary: Full-featured SSL VPN solution using a TUN/TAP Interface
Source: http://openvpn.net/release/openvpn-%{version}.tar.gz
Source1: http://openvpn.net/signatures/openvpn-%{version}.tar.gz.asc
@ -121,17 +122,14 @@ sed -e "s|@PLUGIN_DIR@|%{plugin_dir}|g" \
%build
autoreconf -fi
export CFLAGS="$RPM_OPT_FLAGS -Wall"
export CFLAGS="$RPM_OPT_FLAGS -W -Wall"
export LDFLAGS=""
# build with fPIE/pie on SUSE 10.0 or newer, or on any other platform
%if %{?suse_version}%{?!suse_version:99999} > 930
CFLAGS="$CFLAGS -fPIE"
LDFLAGS="$LDFLAGS -pie"
%endif
CFLAGS="$CFLAGS -DPLUGIN_LIBDIR='\"%{_libdir}/%{name}/plugin/lib\"' -DENABLE_PLUGIN_SEARCH" \
PLUGIN_DEFS="-DPLUGIN_LIBDIR='\"%{_libdir}/%{name}/plugin/lib\"'"
PLUGIN_DEFS="$PLUGIN_FLAGS -DENABLE_PLUGIN_SEARCH"
%configure \
--enable-pthread --enable-iproute2 \
--with-lzo-headers=%_includedir/lzo
--with-lzo-headers=%_includedir/lzo \
CFLAGS="$CFLAGS -fPIE $PLUGIN_DEFS" LDFLAGS="$LDFLAGS -pie"
make
#
# Build down-root plugin
@ -218,6 +216,8 @@ if ! test -f /.buildenv; then rm -rf $RPM_BUILD_ROOT; fi
%{plugin_libdir}/openvpn-auth-pam.so
%changelog
* Tue Feb 19 2008 mt@suse.de
- Fixed spec file to not set pie flags when building plugins
* Thu Jan 17 2008 mt@suse.de
- Bug #334773: Enabled build of down-root and auth-pam plugins,
sub-packaged as openvpn-auth-pam-plugin/down-root-plugin.