[cfitsio] Removed check at runtime of the version of the program

Sergio Pascual sergiopr at fedoraproject.org
Wed Aug 29 07:12:10 UTC 2012


commit 2c14e2aa97722f21b944c44a2ef6a3600585a8ff
Author: Pasrario <harenawer at zoho.com>
Date:   Wed Aug 29 09:11:49 2012 +0200

    Removed check at runtime of the version of the program

 cfitsio-noversioncheck.patch |   13 +++++++++++++
 cfitsio.spec                 |    5 +++++
 2 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/cfitsio-noversioncheck.patch b/cfitsio-noversioncheck.patch
new file mode 100644
index 0000000..23779c4
--- /dev/null
+++ b/cfitsio-noversioncheck.patch
@@ -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
diff --git a/cfitsio.spec b/cfitsio.spec
index c194daa..78651da 100644
--- a/cfitsio.spec
+++ b/cfitsio.spec
@@ -8,6 +8,7 @@ URL: http://heasarc.gsfc.nasa.gov/fitsio/
 Source0: ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3300.tar.gz
 Patch0: cfitsio.patch
 Patch1: cfitsio-zlib.patch
+Patch2: cfitsio-noversioncheck.patch
 
 BuildRequires:     gcc-gfortran zlib-devel
 Requires(post):    /sbin/ldconfig
@@ -74,6 +75,7 @@ compression algorithm.
 %setup -q -n cfitsio
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 # Fixing 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
@@ -141,6 +143,9 @@ cp -p f{,un}pack %{buildroot}%{_bindir}/
 %{_bindir}/funpack
 
 %changelog
+* Wed Aug 29 2012 Sergio Pascual <sergiopr at fedoraproject.org> - 3.310-2
+- Removed check at runtime of the version of the program
+
 * Wed Aug 29 2012 Sergio Pascual <sergiopr at fedoraproject.org> - 3.310-1
 - New upstream version
 


More information about the scm-commits mailing list