diff --git a/libdb-4_8.changes b/libdb-4_8.changes index 2663eaa..e94dc96 100644 --- a/libdb-4_8.changes +++ b/libdb-4_8.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jan 9 12:08:10 UTC 2012 - aj@suse.de + +- Do not use build date as version string. + ------------------------------------------------------------------- Thu Dec 22 01:11:27 UTC 2011 - jengelh@medozas.de diff --git a/libdb-4_8.spec b/libdb-4_8.spec index 21c80c2..b74b631 100644 --- a/libdb-4_8.spec +++ b/libdb-4_8.spec @@ -1,7 +1,7 @@ # # spec file for package libdb-4_8 # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,8 +27,9 @@ Release: 0 Summary: Berkeley DB Database Library Version 4.8 License: BSD-3-Clause Group: System/Libraries -URL: http://www.sleepycat.com +Url: http://www.sleepycat.com Source: db-%{version}.tar.bz2 +Source1: %{name}.changes Source9: getpatches Patch0: db-%{version}.patch BuildRequires: autoconf @@ -93,6 +94,11 @@ tar -jcf %{generic_name}-%{version}.tar.bz2 %{generic_name}-%{version} %build cd dist +# dist/RELEASE codes the build date into the binary. +# Use last change of changes file instead +LAST_MOD=`stat --format="%Y" %SOURCE1` +DIST_DATE=`date '+%B %e, %Y' --date="@$LAST_MOD"` +sed -i -e "s/^DB_RELEASE_DATE=.*$/DB_RELEASE_DATE=\"$DIST_DATE\"/" RELEASE ./s_config CFLAGS="%{optflags} -fno-strict-aliasing" CC=gcc diff --git a/libdb_java-4_8.changes b/libdb_java-4_8.changes index 24c01ac..0f5079b 100644 --- a/libdb_java-4_8.changes +++ b/libdb_java-4_8.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jan 9 12:08:54 UTC 2012 - aj@suse.de + +- Do not use build date as version string. + ------------------------------------------------------------------- Thu Dec 22 01:11:58 UTC 2011 - jengelh@medozas.de diff --git a/libdb_java-4_8.spec b/libdb_java-4_8.spec index a5cb816..9f19df8 100644 --- a/libdb_java-4_8.spec +++ b/libdb_java-4_8.spec @@ -1,7 +1,7 @@ # # spec file for package libdb_java-4_8 # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -27,8 +27,9 @@ Release: 0 Summary: Java Bindings for the Berkeley DB License: BSD-3-Clause Group: Productivity/Databases/Servers -URL: http://www.sleepycat.com +Url: http://www.sleepycat.com Source: db-%{version}.tar.bz2 +Source1: %{name}.changes Source9: getpatches Patch0: db-%{version}.patch BuildRequires: autoconf @@ -64,6 +65,11 @@ tar -jcf %{generic_name}-%{version}.tar.bz2 %{generic_name}-%{version} %build cd dist +# dist/RELEASE codes the build date into the binary. +# Use last change of changes file instead +LAST_MOD=`stat --format="%Y" %SOURCE1` +DIST_DATE=`date '+%B %e, %Y' --date="@$LAST_MOD"` +sed -i -e "s/^DB_RELEASE_DATE=.*$/DB_RELEASE_DATE=\"$DIST_DATE\"/" RELEASE ./s_config CFLAGS="%{optflags} -fno-strict-aliasing" CC=gcc