Removed check at runtime of the version of the program

epel9
Pasrario 13 years ago
parent b4ad256a92
commit 2c14e2aa97

@ -0,0 +1,13 @@
diff -ur cfitsio/longnam.h cfitsio.new/longnam.h
--- cfitsio/longnam.h 2011-05-19 22:52:26.000000000 +0200
+++ cfitsio.new/longnam.h 2012-07-06 00:03:02.512327034 +0200
@@ -19,7 +19,8 @@
file that was used to build the CFITSIO library is the same version
as included when compiling the application program
*/
-#define fits_open_file(A, B, C, D) ffopentest( CFITSIO_VERSION, A, B, C, D)
+//#define fits_open_file(A, B, C, D) ffopentest( CFITSIO_VERSION, A, B, C, D)
+#define fits_open_file ffopen
#define fits_open_data ffdopn
#define fits_open_table fftopn

@ -8,6 +8,7 @@ URL: http://heasarc.gsfc.nasa.gov/fitsio/
Source0: ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3300.tar.gz Source0: ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3300.tar.gz
Patch0: cfitsio.patch Patch0: cfitsio.patch
Patch1: cfitsio-zlib.patch Patch1: cfitsio-zlib.patch
Patch2: cfitsio-noversioncheck.patch
BuildRequires: gcc-gfortran zlib-devel BuildRequires: gcc-gfortran zlib-devel
Requires(post): /sbin/ldconfig Requires(post): /sbin/ldconfig
@ -74,6 +75,7 @@ compression algorithm.
%setup -q -n cfitsio %setup -q -n cfitsio
%patch0 -p1 %patch0 -p1
%patch1 -p1 %patch1 -p1
%patch2 -p1
# Fixing cfitsio.pc.in # Fixing cfitsio.pc.in
sed -e 's|includedir=@includedir@|includedir=@includedir@/cfitsio|' -i cfitsio.pc.in sed -e 's|includedir=@includedir@|includedir=@includedir@/cfitsio|' -i cfitsio.pc.in
sed -e 's|Libs: -L${libdir} -lcfitsio @LIBS@|Libs: -L${libdir} -lcfitsio|' -i cfitsio.pc.in sed -e 's|Libs: -L${libdir} -lcfitsio @LIBS@|Libs: -L${libdir} -lcfitsio|' -i cfitsio.pc.in
@ -141,6 +143,9 @@ cp -p f{,un}pack %{buildroot}%{_bindir}/
%{_bindir}/funpack %{_bindir}/funpack
%changelog %changelog
* Wed Aug 29 2012 Sergio Pascual <sergiopr@fedoraproject.org> - 3.310-2
- Removed check at runtime of the version of the program
* Wed Aug 29 2012 Sergio Pascual <sergiopr@fedoraproject.org> - 3.310-1 * Wed Aug 29 2012 Sergio Pascual <sergiopr@fedoraproject.org> - 3.310-1
- New upstream version - New upstream version

Loading…
Cancel
Save