From 51acc5d5b64d91a75a3b05985a85ed73895fa14b Mon Sep 17 00:00:00 2001 From: Matthew D Truch Date: Sun, 19 Mar 2006 17:42:35 +0000 Subject: [PATCH] Fix references to %{buildroot} so they aren't in %build; only in %install. --- cfitsio.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cfitsio.spec b/cfitsio.spec index 7f1802a..fd55978 100644 --- a/cfitsio.spec +++ b/cfitsio.spec @@ -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 - 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 - 3.006-3 - Point to f95 instead of g95 as per bugzilla bug 185107