|
|
@ -1,18 +1,15 @@
|
|
|
|
Name: cfitsio
|
|
|
|
Name: cfitsio
|
|
|
|
Version: 3.280
|
|
|
|
Version: 3.290
|
|
|
|
Release: 2%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Library for manipulating FITS data files
|
|
|
|
Summary: Library for manipulating FITS data files
|
|
|
|
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
Group: Development/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/cfitsio3290.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
Patch0: cfitsio.patch
|
|
|
|
Patch0: cfitsio.patch
|
|
|
|
Patch1: cfitsio-pkgconfig.patch
|
|
|
|
Patch1: makefile.patch
|
|
|
|
Patch2: cfitsio-s390.patch
|
|
|
|
Patch2: cfitsio-s390.patch
|
|
|
|
Patch3: makefile.patch
|
|
|
|
|
|
|
|
Patch4: cfitsio-pkgconfig-reentrant.patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc-gfortran
|
|
|
|
BuildRequires: gcc-gfortran
|
|
|
|
Requires(post): /sbin/ldconfig
|
|
|
|
Requires(post): /sbin/ldconfig
|
|
|
@ -80,8 +77,13 @@ compression algorithm.
|
|
|
|
%patch0 -p1
|
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
# Fixing cfitsio.pc.in
|
|
|
|
%patch4 -p1
|
|
|
|
sed -e 's|3.29|3.290|' -i cfitsio.pc.in
|
|
|
|
|
|
|
|
sed -e 's|Libs: -L${libdir} -lcfitsio @LIBS@|Libs: -L${libdir} -lcfitsio|' -i cfitsio.pc.in
|
|
|
|
|
|
|
|
sed -e 's|Libs.private: -lm|Libs.private: @LIBS@ -lm|' -i cfitsio.pc.in
|
|
|
|
|
|
|
|
sed -e 's|Cflags: -I${includedir}|Cflags: -D_REENTRANT -I${includedir}|' -i cfitsio.pc.in
|
|
|
|
|
|
|
|
# Manually fix pkgconfig .pc.in file (BZ 436539, BZ 618291)
|
|
|
|
|
|
|
|
sed -e 's|includedir=@includedir@|includedir=@includedir@/cfitsio|' -i cfitsio.pc.in
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
FC=f95
|
|
|
|
FC=f95
|
|
|
@ -93,9 +95,6 @@ ln -s libcfitsio.so.0 libcfitsio.so
|
|
|
|
make fpack %{?_smp_mflags}
|
|
|
|
make fpack %{?_smp_mflags}
|
|
|
|
make funpack %{?_smp_mflags}
|
|
|
|
make funpack %{?_smp_mflags}
|
|
|
|
unset FC
|
|
|
|
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
|
|
|
@ -116,40 +115,36 @@ popd
|
|
|
|
mkdir %{buildroot}%{_bindir}
|
|
|
|
mkdir %{buildroot}%{_bindir}
|
|
|
|
cp -p f{,un}pack %{buildroot}%{_bindir}/
|
|
|
|
cp -p f{,un}pack %{buildroot}%{_bindir}/
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
%doc README License.txt changes.txt
|
|
|
|
%doc README License.txt changes.txt
|
|
|
|
%{_libdir}/libcfitsio.so.*
|
|
|
|
%{_libdir}/libcfitsio.so.*
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
%{_includedir}/%{name}
|
|
|
|
%{_includedir}/%{name}
|
|
|
|
%{_libdir}/libcfitsio.so
|
|
|
|
%{_libdir}/libcfitsio.so
|
|
|
|
%{_libdir}/pkgconfig/cfitsio.pc
|
|
|
|
%{_libdir}/pkgconfig/cfitsio.pc
|
|
|
|
|
|
|
|
|
|
|
|
%files static
|
|
|
|
%files static
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
%doc License.txt
|
|
|
|
%doc License.txt
|
|
|
|
%{_libdir}/libcfitsio.a
|
|
|
|
%{_libdir}/libcfitsio.a
|
|
|
|
|
|
|
|
|
|
|
|
%files docs
|
|
|
|
%files docs
|
|
|
|
%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
|
|
|
|
%files -n fpack
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
%doc fpackguide.pdf License.txt
|
|
|
|
%doc fpackguide.pdf License.txt
|
|
|
|
%{_bindir}/fpack
|
|
|
|
%{_bindir}/fpack
|
|
|
|
%{_bindir}/funpack
|
|
|
|
%{_bindir}/funpack
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Mon Dec 05 2011 Sergio Pascual <sergiopr@fedoraproject.org> - 3.290-1
|
|
|
|
|
|
|
|
- New upstream version
|
|
|
|
|
|
|
|
- Reorganizing patches
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Oct 29 2011 Sergio Pascual <sergiopr@fedoraproject.org> - 3.280-2
|
|
|
|
* Sat Oct 29 2011 Sergio Pascual <sergiopr@fedoraproject.org> - 3.280-2
|
|
|
|
- Enable multithreading support
|
|
|
|
- Enable multithreading support
|
|
|
|
|
|
|
|
|
|
|
|