Set lib and include directories manually since configure doesn't let one

bypass the hardcoded defaults.
epel9
Matthew D Truch 19 years ago
parent d74f8671e8
commit 9302152050

@ -1,6 +1,6 @@
Name: cfitsio Name: cfitsio
Version: 3.004 Version: 3.004
Release: 0.8.b Release: 0.9.b
Summary: Library for manipulating FITS data files Summary: Library for manipulating FITS data files
Group: Development/Libraries Group: Development/Libraries
@ -51,13 +51,18 @@ unset FC
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
mkdir -p %{buildroot} mkdir -p %{buildroot}
CFITSIO_LIB = %{buildroot}%{_libdir}
CFITSIO_INCLUDE = %{buildroot}%{_includedir}/%{name}
export CFITSIO_LIB
export CFITSIO_INCLUDE
make install make install
#move headers to correct location (configure doesn't obey --includedir) #move headers to correct location (configure doesn't obey --includedir)
mkdir -p %{buildroot}%{_includedir}/%{name} mkdir -p %{buildroot}%{_libdir}
mv %{buildroot}%{_includedir}/*.h %{buildroot}%{_includedir}/%{name}
pushd %{buildroot}%{_libdir} pushd %{buildroot}%{_libdir}
ln -s libcfitsio.so libcfitsio.so.0 ln -s libcfitsio.so libcfitsio.so.0
popd popd
unset CFITSIO_LIB
unset CFITSIO_INCLUDE
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
@ -76,6 +81,9 @@ rm -rf %{buildroot}
%{_libdir}/libcfitsio.a %{_libdir}/libcfitsio.a
%changelog %changelog
* Sat Nov 12 2005 Matthew Truch <matt at truch.net> - 3.004-0.9.b
- Set libdir and includedir correctly for build process.
* Sat Nov 12 2005 Matthew Truch <matt at truch.net> - 3.004-0.8.b * Sat Nov 12 2005 Matthew Truch <matt at truch.net> - 3.004-0.8.b
- unset FC once we are done with the build - unset FC once we are done with the build

Loading…
Cancel
Save