Don't let configure clobber CFLAGS so we get useful debuginfo packages.

Bugzilla 229041
epel9
Matthew D Truch 18 years ago
parent 40ae4f495f
commit 6e2d661b67

@ -1,6 +1,6 @@
Name: cfitsio Name: cfitsio
Version: 3.030 Version: 3.030
Release: 1%{?dist} Release: 2%{?dist}
Summary: Library for manipulating FITS data files Summary: Library for manipulating FITS data files
Group: Development/Libraries Group: Development/Libraries
@ -28,6 +28,7 @@ community.
Group: Development/Libraries Group: Development/Libraries
Summary: Headers required when building programs against cfitsio Summary: Headers required when building programs against cfitsio
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel %description devel
Headers required when building a program against the cfitsio library. 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 %build
FC=f95 FC=f95
export FC export FC
export CC=gcc # fixes -O*, -g
%configure %configure
make shared %{?_smp_mflags} make shared %{?_smp_mflags}
unset FC unset FC
@ -74,6 +76,12 @@ rm -rf %{buildroot}
%{_libdir}/pkgconfig/cfitsio.pc %{_libdir}/pkgconfig/cfitsio.pc
%changelog %changelog
* Fri Feb 16 2007 Matthew Truch <matt at truch.net> - 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 <matt at truch.net> - 3.030-1 * Fri Jan 5 2007 Matthew Truch <matt at truch.net> - 3.030-1
- Upgrade to version 3.020 of cfitsio. - Upgrade to version 3.020 of cfitsio.

Loading…
Cancel
Save