From 1fe513d649f302dababefc724484e8728fd24d3f Mon Sep 17 00:00:00 2001 From: Matthew D Truch Date: Jul 25 2010 16:14:10 +0000 Subject: Install fpack and funpack utilities in fpack package. --- diff --git a/cfitsio.spec b/cfitsio.spec index cc99a74..eb3e2f5 100644 --- a/cfitsio.spec +++ b/cfitsio.spec @@ -1,6 +1,6 @@ Name: cfitsio Version: 3.240 -Release: 4%{?dist} +Release: 5%{?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 @@ -82,6 +107,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} @@ -110,7 +137,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 +* Sun Jul 25 2010 Matthew Truch - 3.240-5 +- Create fpack package with fpack and funpack utilities. + * Wed Jul 7 2010 Matthew Truch - 3.240-4 - Include License.txt in -static and -docs subpackages.