|
@@ -1,18 +1,22 @@
|
|
Name: cfitsio
|
|
Name: cfitsio
|
|
-Version: 3.240
|
|
|
|
-Release: 2%{?_dist_release}
|
|
|
|
Summary: Library for manipulating FITS data files
|
|
Summary: Library for manipulating FITS data files
|
|
|
|
+Summary(ja): FITS データファイルを処理するためのライブラリ
|
|
|
|
+Version: 3.280
|
|
|
|
+Release: 1%{?_dist_release}
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
-License: GPLv2+
|
|
+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/cfitsio3240.tar.gz
|
|
+
|
|
-Patch: cfitsio.patch
|
|
+Source0: ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3280.tar.gz
|
|
|
|
+Patch0: cfitsio.patch
|
|
|
|
+Patch1: cfitsio-pkgconfig.patch
|
|
|
|
+
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
+BuildRequires: gcc-gfortran
|
|
|
|
|
|
-BuildRequires: gcc-gfortran
|
|
+Requires(post): /sbin/ldconfig
|
|
-Requires(post): /sbin/ldconfig
|
|
+Requires(postun): /sbin/ldconfig
|
|
-Requires(postun): /sbin/ldconfig
|
|
|
|
|
|
|
|
%description
|
|
%description
|
|
CFITSIO is a library of C and FORTRAN subroutines for reading and writing
|
|
CFITSIO is a library of C and FORTRAN subroutines for reading and writing
|
|
@@ -25,8 +29,8 @@ most widely used FITS file programming interface in the astronomical
|
|
community.
|
|
community.
|
|
|
|
|
|
%package devel
|
|
%package devel
|
|
-Group: Development/Libraries
|
|
|
|
Summary: Headers required when building programs against cfitsio
|
|
Summary: Headers required when building programs against cfitsio
|
|
|
|
+Group: Development/Libraries
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: pkgconfig
|
|
Requires: pkgconfig
|
|
|
|
|
|
@@ -34,8 +38,9 @@ Requires: pkgconfig
|
|
Headers required when building a program against the cfitsio library.
|
|
Headers required when building a program against the cfitsio library.
|
|
|
|
|
|
%package static
|
|
%package static
|
|
-Group: Development/Libraries
|
|
|
|
Summary: Static cfitsio library
|
|
Summary: Static cfitsio library
|
|
|
|
+Group: Development/Libraries
|
|
|
|
+Requires: %{name}-devel = %{version}-%{release}
|
|
|
|
|
|
%description static
|
|
%description static
|
|
Static cfitsio library; avoid use if possible.
|
|
Static cfitsio library; avoid use if possible.
|
|
@@ -43,13 +48,15 @@ Static cfitsio library; avoid use if possible.
|
|
%package docs
|
|
%package docs
|
|
Summary: Documentation for cfitsio
|
|
Summary: Documentation for cfitsio
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
|
|
+BuildArch: noarch
|
|
|
|
|
|
%description docs
|
|
%description docs
|
|
Stand-alone documentation for cfitsio.
|
|
Stand-alone documentation for cfitsio.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q -n cfitsio
|
|
%setup -q -n cfitsio
|
|
-%patch -p1
|
|
+%patch0 -p1
|
|
|
|
+%patch1 -p1
|
|
|
|
|
|
%build
|
|
%build
|
|
FC=f95
|
|
FC=f95
|
|
@@ -57,13 +64,12 @@ 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, BZ 618291)
|
|
-sed 's|${exec_prefix}/lib|${exec_prefix}/%{_lib}|' cfitsio.pc >cfitsio.pc.new
|
|
+sed 's|/usr/include|/usr/include/%{name}|' cfitsio.pc >cfitsio.pc.new
|
|
-sed 's|${prefix}/include|${prefix}/include/%{name}|' cfitsio.pc.new >cfitsio.pc
|
|
|
|
-rm -f cfitsio.pc.new
|
|
|
|
-# Manually correct pkgconfig .pc file version
|
|
|
|
-sed 's|3.006|%{version}|' cfitsio.pc >cfitsio.pc.new
|
|
|
|
mv cfitsio.pc.new cfitsio.pc
|
|
mv cfitsio.pc.new cfitsio.pc
|
|
|
|
|
|
%check
|
|
%check
|
|
@@ -110,6 +116,10 @@ rm -rf %{buildroot}
|
|
%doc fitsio.doc fitsio.ps cfitsio.doc cfitsio.ps
|
|
%doc fitsio.doc fitsio.ps cfitsio.doc cfitsio.ps
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sat Sep 3 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.280-1
|
|
|
|
+- new upstream release
|
|
|
|
+- added Patch1
|
|
|
|
+
|
|
* Mon Sep 27 2010 Shu KONNO <owa@bg.wakwak.com> 3.240-2
|
|
* Mon Sep 27 2010 Shu KONNO <owa@bg.wakwak.com> 3.240-2
|
|
- rebuilt with rpm-4.8.1 for pkg-config
|
|
- rebuilt with rpm-4.8.1 for pkg-config
|
|
|
|
|