From 83dccec734b02401bf8d5b6ed8787c3ba74275f0 Mon Sep 17 00:00:00 2001 From: Matthew D Truch Date: Jul 25 2010 16:12:03 +0000 Subject: Package fpack and funpack utilities. --- diff --git a/cfitsio.spec b/cfitsio.spec index d387966..aa0cef8 100644 --- a/cfitsio.spec +++ b/cfitsio.spec @@ -1,6 +1,6 @@ Name: cfitsio Version: 3.240 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Library for manipulating FITS data files Group: Development/Libraries @@ -49,6 +49,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 @@ -60,6 +82,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|${exec_prefix}/lib|${exec_prefix}/%{_lib}|' cfitsio.pc >cfitsio.pc.new @@ -85,6 +110,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} @@ -106,13 +133,23 @@ rm -rf %{buildroot} %files static %defattr(-,root,root,-) +%doc License.txt %{_libdir}/libcfitsio.a %files docs %defattr(-,root,root,-) -%doc fitsio.doc fitsio.ps cfitsio.doc cfitsio.ps +%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 +* Sun Jul 25 2010 Matthew Truch - 3.240-3 +- Package fpack and funpack utilities in fpack package. + * Sun Feb 21 2010 Matthew Truch - 3.240-2 - Fix pkgconfig version number.