rpms/libdbi-drivers/devel libdbi-drivers-cflags.patch, NONE, 1.1 libdbi-drivers.spec, 1.11, 1.12
Tom Lane (tgl)
fedora-extras-commits at redhat.com
Tue Oct 30 21:05:01 UTC 2007
Author: tgl
Update of /cvs/pkgs/rpms/libdbi-drivers/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7596
Modified Files:
libdbi-drivers.spec
Added Files:
libdbi-drivers-cflags.patch
Log Message:
Fix package's selection of CFLAGS to include RPM_OPT_FLAGS.
libdbi-drivers-cflags.patch:
--- NEW FILE libdbi-drivers-cflags.patch ---
Ensure desirable compile flags are used.
diff -Naur libdbi-drivers-0.8.2-1.orig/configure.in libdbi-drivers-0.8.2-1/configure.in
--- libdbi-drivers-0.8.2-1.orig/configure.in 2007-02-22 03:15:36.000000000 -0500
+++ libdbi-drivers-0.8.2-1/configure.in 2007-10-30 16:59:42.000000000 -0400
@@ -56,7 +56,7 @@
case $host in
*-*-linux*)
DEBUG="-g -Wall -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
- CFLAGS="-O20 -ffast-math -D_REENTRANT -fsigned-char"
+ CFLAGS="-ffast-math -D_REENTRANT -fsigned-char $RPM_OPT_FLAGS"
PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";;
sparc-sun-*)
DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -mv8"
Index: libdbi-drivers.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libdbi-drivers/devel/libdbi-drivers.spec,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- libdbi-drivers.spec 3 Aug 2007 22:01:29 -0000 1.11
+++ libdbi-drivers.spec 30 Oct 2007 21:04:27 -0000 1.12
@@ -1,7 +1,7 @@
Summary: Database-specific drivers for libdbi
Name: libdbi-drivers
Version: 0.8.2
-Release: 1.2%{?dist}
+Release: 1.3%{?dist}
Group: Development/Libraries
URL: http://libdbi-drivers.sourceforge.net/
# The sqlite driver is under GPLv2+, all else under LGPLv2+.
@@ -12,9 +12,12 @@
# Hack: upstream calls it 0.8.2-1 but RPM disallows that as a Version
Source: http://prdownloads.sourceforge.net/libdbi-drivers/%{name}-%{version}-1.tar.gz
+Patch1: libdbi-drivers-cflags.patch
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Requires: libdbi >= 0.8
BuildRequires: libdbi-devel >= 0.8
+BuildRequires: autoconf
%description
libdbi implements a database-independent abstraction layer in C, similar to the
@@ -70,6 +73,10 @@
# %setup -q -n %{name}-%{version}
%setup -q -n %{name}-%{version}-1
+%patch1 -p1
+
+autoconf
+
%build
# configure is broken, must pass both --with-*sql-libdir _AND_
# --with-*sql-incdir in order for --with-*sql-libdir to be used
@@ -120,6 +127,10 @@
%{_libdir}/dbd/libdbdsqlite3.*
%changelog
+* Tue Oct 30 2007 Tom Lane <tgl at redhat.com> 0.8.2-1.3
+- Fix package's selection of CFLAGS to include RPM_OPT_FLAGS
+Resolves: #330691
+
* Fri Aug 3 2007 Tom Lane <tgl at redhat.com> 0.8.2-1.2
- Correct License tag for sqlite subpackage; it's currently not same license
as the rest of the code.
More information about the fedora-extras-commits
mailing list