|
@@ -1,19 +1,25 @@
|
|
Name: cfitsio
|
|
Name: cfitsio
|
|
|
|
+Version: 3.370
|
|
|
|
+Release: 1%{?_dist_release}
|
|
Summary: Library for manipulating FITS data files
|
|
Summary: Library for manipulating FITS data files
|
|
Summary(ja): FITS データファイルを処理するためのライブラリ
|
|
Summary(ja): FITS データファイルを処理するためのライブラリ
|
|
-Version: 3.280
|
|
|
|
-Release: 1%{?_dist_release}
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
License: MIT
|
|
License: MIT
|
|
URL: http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html
|
|
URL: http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html
|
|
|
|
|
|
-Source0: ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3280.tar.gz
|
|
+Source0: ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3370.tar.gz
|
|
-Patch0: cfitsio.patch
|
|
+# Unbundles zlib
|
|
-Patch1: cfitsio-pkgconfig.patch
|
|
+Patch0: cfitsio-zlib.patch
|
|
|
|
+# Remove soname version check
|
|
|
|
+Patch1: cfitsio-noversioncheck.patch
|
|
|
|
+# Some rearrangements in pkg-config file
|
|
|
|
+Patch2: cfitsio-pkgconfig.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: gcc-gfortran
|
|
BuildRequires: gcc-gfortran
|
|
|
|
+BuildRequires: bzip2-devel
|
|
|
|
+BuildRequires: zlib-devel
|
|
|
|
|
|
Requires(post): /sbin/ldconfig
|
|
Requires(post): /sbin/ldconfig
|
|
Requires(postun): /sbin/ldconfig
|
|
Requires(postun): /sbin/ldconfig
|
|
@@ -30,6 +36,7 @@ community.
|
|
|
|
|
|
%package devel
|
|
%package devel
|
|
Summary: Headers required when building programs against cfitsio
|
|
Summary: Headers required when building programs against cfitsio
|
|
|
|
+Summary(ja): cfitsio を用いるプログラムのビルドに必要なヘッダファイル
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: pkgconfig
|
|
Requires: pkgconfig
|
|
@@ -39,6 +46,7 @@ Headers required when building a program against the cfitsio library.
|
|
|
|
|
|
%package static
|
|
%package static
|
|
Summary: Static cfitsio library
|
|
Summary: Static cfitsio library
|
|
|
|
+Summary(ja): cfitsio の静的ライブラリ
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
|
|
|
|
@@ -47,30 +55,59 @@ Static cfitsio library; avoid use if possible.
|
|
|
|
|
|
%package docs
|
|
%package docs
|
|
Summary: Documentation for cfitsio
|
|
Summary: Documentation for cfitsio
|
|
-Group: Development/Libraries
|
|
+Summary(ja): cfitsio のドキュメント
|
|
|
|
+Group: Documentation
|
|
BuildArch: noarch
|
|
BuildArch: noarch
|
|
|
|
|
|
%description docs
|
|
%description docs
|
|
Stand-alone documentation for cfitsio.
|
|
Stand-alone documentation for cfitsio.
|
|
|
|
|
|
|
|
+%package -n fpack
|
|
|
|
+Summary: FITS image compression and decompression utilities
|
|
|
|
+Group: Applications/Engineering
|
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
|
+
|
|
|
|
+%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
|
|
%patch1 -p1
|
|
%patch1 -p1
|
|
|
|
+%patch2 -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
|
|
%build
|
|
-FC=f95
|
|
+%configure \
|
|
-export FC
|
|
+ --enable-reentrant \
|
|
-export CC=gcc # fixes -O*, -g
|
|
+%ifarch x86_64
|
|
-%configure
|
|
+ --enable-sse2 \
|
|
-make shared %{?_smp_mflags}
|
|
+%endif
|
|
-ln -s libcfitsio.so.0 libcfitsio.so
|
|
+ --with-bzip2
|
|
|
|
+make shared %{?_smp_mflags}
|
|
make fpack %{?_smp_mflags}
|
|
make fpack %{?_smp_mflags}
|
|
make funpack %{?_smp_mflags}
|
|
make funpack %{?_smp_mflags}
|
|
-unset FC
|
|
|
|
-# Manually fix pkgconfig .pc file (BZ 436539, BZ 618291)
|
|
|
|
-sed 's|/usr/include|/usr/include/%{name}|' cfitsio.pc >cfitsio.pc.new
|
|
|
|
-mv cfitsio.pc.new cfitsio.pc
|
|
|
|
|
|
|
|
%check
|
|
%check
|
|
make testprog
|
|
make testprog
|
|
@@ -81,13 +118,17 @@ cmp -s testprog.fit testprog.std
|
|
%install
|
|
%install
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
mkdir -p %{buildroot}
|
|
mkdir -p %{buildroot}
|
|
|
|
+mkdir -p %{buildroot}%{_bindir}
|
|
mkdir -p %{buildroot}%{_libdir}
|
|
mkdir -p %{buildroot}%{_libdir}
|
|
mkdir -p %{buildroot}%{_includedir}/%{name}
|
|
mkdir -p %{buildroot}%{_includedir}/%{name}
|
|
-make LIBDIR=%{_lib} INCLUDEDIR=include/%{name} CFITSIO_LIB=%{buildroot}%{_libdir} \
|
|
+make LIBDIR=%{_lib} INCLUDEDIR=include/%{name} \
|
|
|
|
+ CFITSIO_LIB=%{buildroot}%{_libdir} \
|
|
CFITSIO_INCLUDE=%{buildroot}%{_includedir}/%{name} install
|
|
CFITSIO_INCLUDE=%{buildroot}%{_includedir}/%{name} install
|
|
-pushd %{buildroot}%{_libdir}
|
|
+cp -p f{,un}pack %{buildroot}%{_bindir}
|
|
-ln -s libcfitsio.so.0 libcfitsio.so
|
|
+
|
|
-popd
|
|
+chmod 755 %{buildroot}%{_libdir}/libcfitsio.so.*
|
|
|
|
+chmod 755 %{buildroot}%{_bindir}/f{,un}pack
|
|
|
|
+
|
|
|
|
|
|
%clean
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
@@ -98,7 +139,7 @@ rm -rf %{buildroot}
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%doc README License.txt changes.txt
|
|
+%doc README License.txt docs/changes.txt
|
|
%{_libdir}/libcfitsio.so.*
|
|
%{_libdir}/libcfitsio.so.*
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
@@ -113,9 +154,19 @@ rm -rf %{buildroot}
|
|
|
|
|
|
%files docs
|
|
%files docs
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%doc fitsio.doc fitsio.ps cfitsio.doc cfitsio.ps
|
|
+%doc docs/fitsio.doc docs/fitsio.pdf docs/cfitsio.doc docs/cfitsio.pdf License.txt
|
|
|
|
+
|
|
|
|
+%files -n fpack
|
|
|
|
+%defattr(-,root,root,-)
|
|
|
|
+%doc docs/fpackguide.pdf License.txt
|
|
|
|
+%{_bindir}/fpack
|
|
|
|
+%{_bindir}/funpack
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue Feb 24 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 3.370-1
|
|
|
|
+- new upstream release
|
|
|
|
+- moved docs subpackages to Documentation Group
|
|
|
|
+
|
|
* Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.280-1
|
|
* Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.280-1
|
|
- new upstream release
|
|
- new upstream release
|
|
- added Patch1
|
|
- added Patch1
|