Fix references to %{buildroot} so they aren't in %build; only in %install.

epel9
Matthew D Truch 19 years ago
parent 632dd62d7b
commit 51acc5d5b6

@ -1,6 +1,6 @@
Name: cfitsio
Version: 3.006
Release: 3%{?dist}
Release: 4%{?dist}
Summary: Library for manipulating FITS data files
Group: Development/Libraries
@ -39,14 +39,14 @@ Headers required when building a program against the cfitsio library.
%build
FC=f95
export FC
%configure --prefix=%{buildroot}/%{_prefix} --includedir=%{buildroot}/%{_includedir}/%{name}
%configure
make shared %{?_smp_mflags}
unset FC
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}
LIBDIR=%{_lib} INCLUDEDIR=include/%{name} make install
make LIBDIR=%{_lib} INCLUDEDIR=include/%{name} CFITSIO_PREFIX=%{buildroot}%{_prefix} install
pushd %{buildroot}%{_libdir}
ln -s libcfitsio.so.0 libcfitsio.so
popd
@ -69,6 +69,10 @@ rm -rf %{buildroot}
%{_libdir}/libcfitsio.so
%changelog
* Sun Mar 19 2006 Matthew Truch <matt at truch.net> - 3.006-4
- Don't use %{buildroot} in %build, only in %_install as per
appended comments to Bugzilla bug 172042
* Fri Mar 10 2006 Matthew Truch <matt at truch.net> - 3.006-3
- Point to f95 instead of g95 as per bugzilla bug 185107

Loading…
Cancel
Save