|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
Name: cfitsio
|
|
|
|
|
Version: 3.250
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Summary: Library for manipulating FITS data files
|
|
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
@ -50,6 +50,28 @@ BuildArch: noarch
|
|
|
|
|
%description docs
|
|
|
|
|
Stand-alone documentation for cfitsio.
|
|
|
|
|
|
|
|
|
|
%package -n fpack
|
|
|
|
|
Summary: FPACK FITS image compression and decompression utilites
|
|
|
|
|
Group: Applications/Engineering
|
|
|
|
|
|
|
|
|
|
%description -n fpack
|
|
|
|
|
fpack optimally compresses FITS format images and funpack restores them
|
|
|
|
|
to the original state.
|
|
|
|
|
|
|
|
|
|
* Integer format images are losslessly compressed using the Rice
|
|
|
|
|
compression algorithm.
|
|
|
|
|
* typically 30% better compression than GZIP
|
|
|
|
|
* about 3 times faster compression speed than GZIP
|
|
|
|
|
* about the same uncompression speed as GUNZIP
|
|
|
|
|
|
|
|
|
|
* Floating-point format images are compressed with a lossy algorithm
|
|
|
|
|
* truncates the image pixel noise by a user-specified amount to
|
|
|
|
|
produce much higher compression than by lossless techniques
|
|
|
|
|
* the precision of scientific measurements in the compressed image
|
|
|
|
|
(relative to those in the original image) depends on the selected
|
|
|
|
|
amount of compression
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n cfitsio
|
|
|
|
|
%patch0 -p1
|
|
|
|
@ -62,6 +84,9 @@ export FC
|
|
|
|
|
export CC=gcc # fixes -O*, -g
|
|
|
|
|
%configure
|
|
|
|
|
make shared %{?_smp_mflags}
|
|
|
|
|
ln -s libcfitsio.so.0 libcfitsio.so
|
|
|
|
|
make fpack %{?_smp_mflags}
|
|
|
|
|
make funpack %{?_smp_mflags}
|
|
|
|
|
unset FC
|
|
|
|
|
# Manually fix pkgconfig .pc file (BZ 436539)
|
|
|
|
|
sed 's|${prefix}/include|${prefix}/include/%{name}|' cfitsio.pc >cfitsio.pc.new
|
|
|
|
@ -83,6 +108,8 @@ make LIBDIR=%{_lib} INCLUDEDIR=include/%{name} CFITSIO_LIB=%{buildroot}%{_libdir
|
|
|
|
|
pushd %{buildroot}%{_libdir}
|
|
|
|
|
ln -s libcfitsio.so.0 libcfitsio.so
|
|
|
|
|
popd
|
|
|
|
|
mkdir %{buildroot}%{_bindir}
|
|
|
|
|
cp -p f{,un}pack %{buildroot}%{_bindir}/
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
@ -111,7 +138,16 @@ rm -rf %{buildroot}
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc fitsio.doc fitsio.ps cfitsio.doc cfitsio.ps License.txt
|
|
|
|
|
|
|
|
|
|
%files -n fpack
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc fpackguide.pdf License.txt
|
|
|
|
|
%{_bindir}/fpack
|
|
|
|
|
%{_bindir}/funpack
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Jul 27 2010 Orion Poplawski <orion@cora.nwra.com> - 3.250-3
|
|
|
|
|
- Build and ship fpack/funpack in fpack package
|
|
|
|
|
|
|
|
|
|
* Wed Jul 7 2010 Matthew Truch <matt at truch.net> - 3.250-2
|
|
|
|
|
- Include license as %%doc in -static and -docs subpackages.
|
|
|
|
|
|
|
|
|
|