forked from pool/libdb-4_8
Accepting request 99476 from devel:libraries:c_c++
Do not use build date as version string (forwarded request 99475 from a_jaeger) OBS-URL: https://build.opensuse.org/request/show/99476 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libdb-4_8?expand=0&rev=13
This commit is contained in:
commit
ce272afc16
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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}/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user