%define beta %nil %define date %nil Name: vpnc Version: 0.5.1 %if "%beta" == "" %if "%date" == "" Release: 1ark Source: %name-%version.tar.gz %else Release: 0.%date.1ark Source: %name-%date.tar.gz %endif %else %if "%date" == "" Release: 0.%beta.1ark Source: %name-%version%beta.tar.gz %else Release: 0.%beta.0.%date.1ark Source: %name-%date.tar.gz %endif %endif Patch: vpnc-installdir Summary: Cisco compatible VPN client URL: http://vpnc.sf.net/ License: GPL Group: Applications/Internet BuildRoot: %{_tmppath}/%{name}-root BuildRequires: libgcrypt-devel libgpg-error-devel %description A VPN client which is compatible with Cisco's VPN system %prep %if "%date" == "" %setup -q -n %name-%version%beta %else %setup -q -n %name %endif %patch %build make %?_smp_mflags %install rm -rf $RPM_BUILD_ROOT make %?_smp_mflags install DESTDIR="$RPM_BUILD_ROOT" %files %defattr(-,root,root) %_sysconfdir/vpnc/* %_bindir/cisco-decrypt %_bindir/pcf2vpnc %_sbindir/vpnc %_sbindir/vpnc-disconnect %_datadir/man/man1/* %_datadir/man/man8/vpnc* %clean rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version} %changelog * Tue Sep 18 2007 Dan Leinir Turthra Jensen <admin@leinir.dk> 0.5.1-1ark - initial RPM