Provide fpack and funpack executables in separate fpack package. Thanks to

Orion for doing all the work.
epel9
Matthew D Truch 15 years ago
parent 69be18a04c
commit e468c84c41

@ -1,6 +1,6 @@
Name: cfitsio Name: cfitsio
Version: 3.250 Version: 3.250
Release: 2%{?dist} Release: 3%{?dist}
Summary: Library for manipulating FITS data files Summary: Library for manipulating FITS data files
Group: Development/Libraries Group: Development/Libraries
@ -50,6 +50,28 @@ BuildArch: noarch
%description docs %description docs
Stand-alone documentation for cfitsio. 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 %prep
%setup -q -n cfitsio %setup -q -n cfitsio
%patch0 -p1 %patch0 -p1
@ -62,6 +84,9 @@ export FC
export CC=gcc # fixes -O*, -g export CC=gcc # fixes -O*, -g
%configure %configure
make shared %{?_smp_mflags} make shared %{?_smp_mflags}
ln -s libcfitsio.so.0 libcfitsio.so
make fpack %{?_smp_mflags}
make funpack %{?_smp_mflags}
unset FC unset FC
# Manually fix pkgconfig .pc file (BZ 436539) # Manually fix pkgconfig .pc file (BZ 436539)
sed 's|${prefix}/include|${prefix}/include/%{name}|' cfitsio.pc >cfitsio.pc.new 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} pushd %{buildroot}%{_libdir}
ln -s libcfitsio.so.0 libcfitsio.so ln -s libcfitsio.so.0 libcfitsio.so
popd popd
mkdir %{buildroot}%{_bindir}
cp -p f{,un}pack %{buildroot}%{_bindir}/
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
@ -111,7 +138,16 @@ rm -rf %{buildroot}
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc fitsio.doc fitsio.ps cfitsio.doc cfitsio.ps License.txt %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 %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 * Wed Jul 7 2010 Matthew Truch <matt at truch.net> - 3.250-2
- Include license as %%doc in -static and -docs subpackages. - Include license as %%doc in -static and -docs subpackages.

Loading…
Cancel
Save