|
|
|
@ -1,14 +1,13 @@
|
|
|
|
|
Name: cfitsio
|
|
|
|
|
Version: 3.330
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Summary: Library for manipulating FITS data files
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://heasarc.gsfc.nasa.gov/fitsio/
|
|
|
|
|
Source0: ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3330.tar.gz
|
|
|
|
|
Patch0: cfitsio.patch
|
|
|
|
|
# Unbundles zlib
|
|
|
|
|
Patch1: cfitsio-zlib.patch
|
|
|
|
|
Patch0: cfitsio-zlib.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc-gfortran zlib-devel
|
|
|
|
|
Requires(post): /sbin/ldconfig
|
|
|
|
@ -74,7 +73,6 @@ compression algorithm.
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n cfitsio
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
# Fixing cfitsio.pc.in
|
|
|
|
|
sed -e 's|includedir=@includedir@|includedir=@includedir@/cfitsio|' -i cfitsio.pc.in
|
|
|
|
|
sed -e 's|Libs: -L${libdir} -lcfitsio @LIBS@|Libs: -L${libdir} -lcfitsio|' -i cfitsio.pc.in
|
|
|
|
@ -91,8 +89,8 @@ FC=f95
|
|
|
|
|
export FC
|
|
|
|
|
export CC=gcc # fixes -O*, -g
|
|
|
|
|
%configure --enable-reentrant
|
|
|
|
|
make shared %{?_smp_mflags}
|
|
|
|
|
ln -s libcfitsio.so.0 libcfitsio.so
|
|
|
|
|
make shared %{?_smp_mflags} SHLIB_LD="gcc -shared -Wl,-soname,libcfitsio.so.%{version}" SHLIB_SUFFIX=".so.%{version}"
|
|
|
|
|
ln -s libcfitsio.so.%{version} libcfitsio.so
|
|
|
|
|
make fpack %{?_smp_mflags}
|
|
|
|
|
make funpack %{?_smp_mflags}
|
|
|
|
|
unset FC
|
|
|
|
@ -109,9 +107,9 @@ mkdir -p %{buildroot}
|
|
|
|
|
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
|
|
|
|
|
CFITSIO_INCLUDE=%{buildroot}%{_includedir}/%{name} SHLIB_SUFFIX=".so.%{version}" install
|
|
|
|
|
pushd %{buildroot}%{_libdir}
|
|
|
|
|
ln -s libcfitsio.so.0 libcfitsio.so
|
|
|
|
|
ln -s libcfitsio.so.%{version} libcfitsio.so
|
|
|
|
|
popd
|
|
|
|
|
mkdir %{buildroot}%{_bindir}
|
|
|
|
|
cp -p f{,un}pack %{buildroot}%{_bindir}/
|
|
|
|
@ -142,6 +140,9 @@ cp -p f{,un}pack %{buildroot}%{_bindir}/
|
|
|
|
|
%{_bindir}/funpack
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Mar 17 2013 Sergio Pascual <sergiopr@fedoraproject.org> - 3.330-2
|
|
|
|
|
- Soname contains full package version (upstream doesn't track API changes)
|
|
|
|
|
|
|
|
|
|
* Sun Mar 10 2013 Sergio Pascual <sergiopr@fedoraproject.org> - 3.330-1
|
|
|
|
|
- New upstream version
|
|
|
|
|
- Reverted the patch removing run time check
|
|
|
|
|