diff --git a/libdb-4_8.changes b/libdb-4_8.changes index 30ff261..e94dc96 100644 --- a/libdb-4_8.changes +++ b/libdb-4_8.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +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 + +- Remove redundant/unwanted tags/section (cf. specfile guidelines) + ------------------------------------------------------------------- Tue Dec 20 11:20:14 UTC 2011 - coolo@suse.com diff --git a/libdb-4_8.spec b/libdb-4_8.spec index 28ba1ca..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 @@ -29,6 +29,7 @@ License: BSD-3-Clause Group: System/Libraries 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 @@ -167,9 +173,6 @@ rm -rf %{buildroot}%{_libdir}/tls/*.la %postun -p /sbin/ldconfig -%clean -rm -rf %{buildroot} - %files %defattr(-,root,root) %{_libdir}/libdb-%{major}.%{minor}.so diff --git a/libdb_java-4_8.changes b/libdb_java-4_8.changes index eef96fb..0f5079b 100644 --- a/libdb_java-4_8.changes +++ b/libdb_java-4_8.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +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 + +- Remove redundant/unwanted tags/section (cf. specfile guidelines) + ------------------------------------------------------------------- Tue Sep 27 16:39:58 UTC 2011 - prusnak@opensuse.org diff --git a/libdb_java-4_8.spec b/libdb_java-4_8.spec index 868ad27..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 @@ -29,6 +29,7 @@ License: BSD-3-Clause Group: Productivity/Databases/Servers 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 @@ -146,9 +152,6 @@ ln -sf %{_javadir}/db-%{version}.jar %{buildroot}/%{_javadir}/db.jar %postun -p /sbin/ldconfig -%clean -rm -rf %{buildroot} - %files %defattr(-,root,root) %{_javadir}/*