diff --git a/openvpn-2.1-plugin-build.dif b/openvpn-2.1-plugin-build.dif index 422b6f8..979d850 100644 --- a/openvpn-2.1-plugin-build.dif +++ b/openvpn-2.1-plugin-build.dif @@ -1,5 +1,7 @@ ---- plugin/auth-pam/Makefile -+++ plugin/auth-pam/Makefile 2008/11/12 09:16:24 +Index: plugin/auth-pam/Makefile +=================================================================== +--- plugin/auth-pam/Makefile.orig ++++ plugin/auth-pam/Makefile @@ -15,10 +15,10 @@ endif # This directory is where we will look for openvpn-plugin.h INCLUDE=-I../.. @@ -13,8 +15,10 @@ auth-pam.o : auth-pam.c pamdl.h gcc ${CC_FLAGS} -fPIC -c ${INCLUDE} auth-pam.c ---- plugin/down-root/Makefile -+++ plugin/down-root/Makefile 2008/11/12 09:58:25 +Index: plugin/down-root/Makefile +=================================================================== +--- plugin/down-root/Makefile.orig ++++ plugin/down-root/Makefile @@ -5,10 +5,10 @@ # This directory is where we will look for openvpn-plugin.h INCLUDE=-I../.. diff --git a/openvpn-2.1-plugin-man.dif b/openvpn-2.1-plugin-man.dif index 22e9b69..677cdab 100644 --- a/openvpn-2.1-plugin-man.dif +++ b/openvpn-2.1-plugin-man.dif @@ -1,6 +1,8 @@ ---- openvpn.8 -+++ openvpn.8 2008/01/17 13:53:02 -@@ -2117,11 +2117,10 @@ +Index: openvpn.8 +=================================================================== +--- openvpn.8.orig ++++ openvpn.8 +@@ -2389,11 +2389,10 @@ plug-in modules, see the README file in folder of the OpenVPN source distribution. If you are using an RPM install of OpenVPN, see diff --git a/openvpn-no-build-date.patch b/openvpn-no-build-date.patch new file mode 100644 index 0000000..cdb71da --- /dev/null +++ b/openvpn-no-build-date.patch @@ -0,0 +1,12 @@ +Index: options.c +=================================================================== +--- options.c.orig ++++ options.c +@@ -73,7 +73,6 @@ const char title_string[] = + #ifdef ENABLE_PKCS11 + " [PKCS11]" + #endif +- " built on " __DATE__ + ; + + #ifndef ENABLE_SMALL diff --git a/openvpn.changes b/openvpn.changes index 393db69..d065382 100644 --- a/openvpn.changes +++ b/openvpn.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Sep 8 16:34:21 UTC 2010 - cristian.rodriguez@opensuse.org + +- Do not include build date in binaries + ------------------------------------------------------------------- Tue Jun 15 09:31:56 UTC 2010 - mt@suse.de diff --git a/openvpn.spec b/openvpn.spec index aed5b85..34efab4 100644 --- a/openvpn.spec +++ b/openvpn.spec @@ -28,7 +28,7 @@ AutoReqProv: on PreReq: %insserv_prereq %fillup_prereq %endif Version: 2.1.1 -Release: 2 +Release: 7 Summary: Full-featured SSL VPN solution using a TUN/TAP Interface Source: http://openvpn.net/release/openvpn-%{upstream_version}.tar.gz Source1: http://openvpn.net/signatures/openvpn-%{upstream_version}.tar.gz.asc @@ -38,6 +38,7 @@ Source4: client-netconfig.up Source5: client-netconfig.down Patch1: %{name}-2.1-plugin-man.dif Patch2: %{name}-2.1-plugin-build.dif +Patch3: openvpn-no-build-date.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: lzo-devel openssl-devel BuildRequires: iproute2 pam-devel @@ -129,6 +130,7 @@ Authors: %setup -q -n %{name}-%{upstream_version} %patch1 -p0 %patch2 -p0 +%patch3 sed -e "s|@PLUGIN_DIR@|%{plugin_dir}|g" \ -e "s|@PLUGIN_LIBDIR@|%{plugin_libdir}|g" \ -e "s|@PLUGIN_DOCDIR@|%{_defaultdocdir}/%{name}|g" \