From 6e2d661b679aee4a927517ea475c00a921ae7d74 Mon Sep 17 00:00:00 2001 From: Matthew D Truch Date: Sat, 17 Feb 2007 15:07:00 +0000 Subject: [PATCH] Don't let configure clobber CFLAGS so we get useful debuginfo packages. Bugzilla 229041 --- cfitsio.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cfitsio.spec b/cfitsio.spec index 3e4ed41..bd3de8a 100644 --- a/cfitsio.spec +++ b/cfitsio.spec @@ -1,6 +1,6 @@ Name: cfitsio Version: 3.030 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Library for manipulating FITS data files Group: Development/Libraries @@ -28,6 +28,7 @@ community. Group: Development/Libraries Summary: Headers required when building programs against cfitsio Requires: %{name} = %{version}-%{release} +Requires: pkgconfig %description devel Headers required when building a program against the cfitsio library. @@ -39,6 +40,7 @@ Headers required when building a program against the cfitsio library. %build FC=f95 export FC +export CC=gcc # fixes -O*, -g %configure make shared %{?_smp_mflags} unset FC @@ -74,6 +76,12 @@ rm -rf %{buildroot} %{_libdir}/pkgconfig/cfitsio.pc %changelog +* Fri Feb 16 2007 Matthew Truch - 3.030-2 +- Require pkgconfig for -devel. +- export CC=gcc so we don't clobber $RPM_OPT_FLAGS, thereby + ruining any -debuginfo packages. + See RedHat Bugzilla 229041. + * Fri Jan 5 2007 Matthew Truch - 3.030-1 - Upgrade to version 3.020 of cfitsio.