Name: strongswan Version: 4.1.4 Release: 1%{?dist} Summary: StrongSwan IPSec Implementation Group: System Environment/Daemons License: GPL URL: http://strongswan.org/ Source0: http://download.strongswan.org/%{name}-%{version}.tar.bz2 Patch0: %{name}-%{version}-rpmnonroot.patch Patch1: %{name}-%{version}-makefilebug.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gmp-devel Provides: ipsec-userland = %{version}-%{release} Requires: gmp, kernel >= 2.6.1 %description strongSwan is an OpenSource IPsec implementation for the Linux operating system. It is based on the discontinued FreeS/WAN project and the X.509 patch which we developed over the last three years. The focus is on * simplicity of configuration * strong encryption and authentication methods * powerful IPsec policies supporting large and complex VPN networks This Package contains the userland to enable the native NETKEY IPSEC stack in linux 2.6 %prep %setup -q %patch0 -p1 %patch1 -p1 %build %configure --disable-rpath sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %attr(0700,root,root) %config(noreplace) %{_sysconfdir}/ipsec.conf %attr(0700,root,root) %dir %{_sysconfdir}/ipsec.d/* %doc AUTHORS ChangeLog COPYING CREDITS INSTALL README NEWS TODO %{_mandir}/*/* %{_libexecdir}/ipsec %{_libdir}/* %{_sbindir}/ipsec %changelog * Tue Jul 10 2007 Johannes Russek 4.1.4-1fc7 - packaged basic tarball, applied small patch for rpm compatibility