%global git_date 20140805 %global git_commit_hash df5808b Name: vpnc-script Version: %{git_date} Release: 1.git%{git_commit_hash}%{?dist} Summary: Routing setup script for vpnc and openconnect Group: Applications/Internet BuildArch: noarch Requires: net-tools Requires: which License: GPLv2+ URL: http://git.infradead.org/users/dwmw2/vpnc-scripts.git/ Source0: vpnc-script %description This script sets up routing for VPN connectivity, when invoked by vpnc or openconnect. %prep cp -p %SOURCE0 . %build %install mkdir -p -m 755 %{buildroot}%{_sysconfdir}/vpnc install -m 0755 vpnc-script \ %{buildroot}%{_sysconfdir}/vpnc/vpnc-script %files %defattr(-,root,root) %dir %{_sysconfdir}/vpnc %{_sysconfdir}/vpnc/vpnc-script %changelog * Thu Nov 20 2014 Nikos Mavrogiannopoulos - 20140805-2.gitdf5808b - Added dependency on which (#1068899) - Added dependency on net-tools (#1007363) * Wed Oct 01 2014 Nikos Mavrogiannopoulos - 20140805-1.gitdf5808b - new upstream release (includes unbound patch) * Tue Aug 05 2014 Nikos Mavrogiannopoulos - 20140705-1.git6201ebd - new package