|
|
|
@ -1,13 +1,11 @@
|
|
|
|
|
Name: cfitsio
|
|
|
|
|
Version: 3.490
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Version: 4.0.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Library for manipulating FITS data files
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://heasarc.gsfc.nasa.gov/fitsio/
|
|
|
|
|
Source0: http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-3.49.tar.gz
|
|
|
|
|
# Unbundles zlib
|
|
|
|
|
Patch0: cfitsio-zlib.patch
|
|
|
|
|
Source0: http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/cfitsio-%{version}.tar.gz
|
|
|
|
|
# Remove soname version check
|
|
|
|
|
Patch1: cfitsio-noversioncheck.patch
|
|
|
|
|
# Some rearrangements in pkg-config file
|
|
|
|
@ -17,9 +15,12 @@ Patch3: cfitsio-ldflags.patch
|
|
|
|
|
# Remove rpath
|
|
|
|
|
Patch4: cfitsio-remove-rpath.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc-gfortran zlib-devel
|
|
|
|
|
BuildRequires: bzip2-devel
|
|
|
|
|
BuildRequires: gcc-gfortran
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
BuildRequires: bzip2-devel
|
|
|
|
|
BuildRequires: curl-devel
|
|
|
|
|
##BuildRequires: pkgconfig(curl)
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
CFITSIO is a library of C and FORTRAN subroutines for reading and writing
|
|
|
|
@ -73,28 +74,17 @@ compression algorithm.
|
|
|
|
|
(relative to those in the original image) depends on the selected
|
|
|
|
|
amount of compression
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n cfitsio-3.49
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
%setup -q
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
%patch2 -p1
|
|
|
|
|
%patch3 -p1
|
|
|
|
|
%patch4 -p1
|
|
|
|
|
|
|
|
|
|
# remove bundled zlib
|
|
|
|
|
# not all the files inside zlib belong to zlib
|
|
|
|
|
pushd zlib
|
|
|
|
|
rm adler32.c crc32.c deflate.c infback.c inffast.c inflate.c inflate.h \
|
|
|
|
|
inftrees.c inftrees.h zlib.h deflate.h trees.c trees.h uncompr.c zconf.h \
|
|
|
|
|
zutil.c zutil.h crc32.h inffast.h inffixed.h
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure --enable-reentrant --with-bzip2
|
|
|
|
|
make shared %{?_smp_mflags}
|
|
|
|
|
make fpack %{?_smp_mflags}
|
|
|
|
|
make funpack %{?_smp_mflags}
|
|
|
|
|
%configure --enable-reentrant -with-bzip2
|
|
|
|
|
make shared
|
|
|
|
|
make fpack funpack
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make testprog
|
|
|
|
@ -141,6 +131,9 @@ chmod 755 %{buildroot}%{_bindir}/f{,un}pack
|
|
|
|
|
%{_bindir}/funpack
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Fri Dec 03 2021 Sergio Pascual <sergiopr@fedoraproject.org> - 4.0.0-1
|
|
|
|
|
- New upstream version 4.0.0
|
|
|
|
|
|
|
|
|
|
* Sun Aug 01 2021 Sergio Pascual <sergiopr@fedoraproject.org> - 3.490-4
|
|
|
|
|
- Remove rpath in utilities
|
|
|
|
|
|
|
|
|
|