Fix up spec file to fix rpmbuild errors, ie install to the correct

directories.
epel9
Matthew D Truch 18 years ago
parent 60877d0028
commit f43a4fc21b

@ -20,23 +20,18 @@ diff -u cfitsio/configure cfitsio-new/configure
lhea_shlib_cflags='-fPIC'
fi
if test "x$lhea_shlib_cflags" != x; then
diff -u cfitsio/Makefile.in cfitsio-new/Makefile.in
--- cfitsio/Makefile.in 2005-04-26 11:48:05.000000000 -0400
+++ cfitsio-new/Makefile.in 2005-11-13 13:52:27.000000000 -0500
@@ -19,8 +19,8 @@
#
CFITSIO_PREFIX = @CFITSIO_PREFIX@
-CFITSIO_LIB = ${CFITSIO_PREFIX}/lib
-CFITSIO_INCLUDE = ${CFITSIO_PREFIX}/include
+CFITSIO_LIB = ${CFITSIO_PREFIX}/${LIBDIR}
+CFITSIO_INCLUDE = ${CFITSIO_PREFIX}/${INCLUDEDIR}
SHELL = /bin/sh
RANLIB = @RANLIB@
@@ -146,4 +146,4 @@
objs: ${CORE_OBJECTS}
${CFITSIO_PREFIX} ${CFITSIO_LIB} ${CFITSIO_INCLUDE}:
- @if [ ! -d $@ ]; then mkdir $@; fi
+ @if [ ! -d $@ ]; then mkdir -p $@; fi
diff -u Makefile.in.orig Makefile.in
--- Makefile.in.orig 2006-10-12 17:14:41.000000000 -0400
+++ Makefile.in 2006-12-05 16:29:51.000000000 -0500
@@ -21,8 +21,8 @@
prefix = @prefix@
exec_prefix = @exec_prefix@
CFITSIO_PREFIX = $(prefix)
-CFITSIO_LIB = $(exec_prefix)/lib
-CFITSIO_INCLUDE = $(prefix)/include
+CFITSIO_LIB = $(exec_prefix)/$(LIBDIR)
+CFITSIO_INCLUDE = $(prefix)/$(INCLUDEDIR)
INSTALL_DIRS = @INSTALL_ROOT@ ${CFITSIO_LIB} ${CFITSIO_LIB}/pkgconfig ${CFITSIO_INCLUDE}

@ -1,12 +1,12 @@
Name: cfitsio
Version: 3.020
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Library for manipulating FITS data files
Group: Development/Libraries
License: GPL
URL: http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html
Source0: ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3006.tar.gz
Source0: ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3020.tar.gz
Patch: cfitsio.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -46,7 +46,10 @@ unset FC
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}
make LIBDIR=%{_lib} INCLUDEDIR=include/%{name} CFITSIO_PREFIX=%{buildroot}%{_prefix} install
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_includedir}/%{name}
make LIBDIR=%{_lib} INCLUDEDIR=include/%{name} CFITSIO_LIB=%{buildroot}%{_libdir} \
CFITSIO_INCLUDE=%{buildroot}%{_includedir}/%{name} install
pushd %{buildroot}%{_libdir}
ln -s libcfitsio.so.0 libcfitsio.so
popd
@ -68,8 +71,13 @@ rm -rf %{buildroot}
%{_includedir}/%{name}
%{_libdir}/libcfitsio.a
%{_libdir}/libcfitsio.so
%{_libdir}/pkgconfig/cfitsio.pc
%changelog
* Fri Dec 8 2006 Matthew Truch <matt at truch.net> - 3.020-2
- Modify spec file to install to correct directories.
- Package cfitsio.pc file in -devel package.
* Wed Dec 6 2006 Matthew Truch <matt at truch.net> - 3.020-1
- Upgrade to revision 3.020 of cfitsio.

Loading…
Cancel
Save