diff --git a/vpnc.spec b/vpnc.spec index 4acbfe6..3941c76 100644 --- a/vpnc.spec +++ b/vpnc.spec @@ -15,6 +15,10 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%if ! %{defined _rundir} +%define _rundir %{_localstatedir}/run +%endif + Name: vpnc BuildRequires: gnutls @@ -73,7 +77,7 @@ export CFLAGS="%optflags" make PREFIX=/usr %install -mkdir -p ${RPM_BUILD_ROOT}/%{_localstatedir}/run/vpnc +mkdir -p ${RPM_BUILD_ROOT}/%{_rundir}/vpnc %{__make} install \ DESTDIR=${RPM_BUILD_ROOT} \ PREFIX=/usr @@ -87,7 +91,7 @@ rm -rf %{buildroot} %defattr(-,root,root) %attr(0600,root,root) %config(noreplace) %ghost %{_sysconfdir}/vpnc/default.conf %{_prefix}/lib/tmpfiles.d/vpnc.conf -%ghost %{_localstatedir}/run/vpnc +%ghost %{_rundir}/vpnc %dir %{_sysconfdir}/vpnc %{_sysconfdir}/vpnc/vpnc-script %{_sbindir}/vpnc