rpms/wcstools/F-11 wcstools3-bug559863.patch, NONE, 1.1 sources, 1.7, 1.8 wcstools.spec, 1.16, 1.17 wcstools3-bug232413.patch, 1.1, NONE wcstools3-codewarn.patch, 1.5, NONE

Sergio Pascual sergiopr at fedoraproject.org
Wed Feb 3 18:27:57 UTC 2010


Author: sergiopr

Update of /cvs/pkgs/rpms/wcstools/F-11
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv28592

Modified Files:
	sources wcstools.spec 
Added Files:
	wcstools3-bug559863.patch 
Removed Files:
	wcstools3-bug232413.patch wcstools3-codewarn.patch 
Log Message:
* Tue Feb 03 2010 Sergio Pascual <sergiopr at fedoraproject.org> 3.8.1-1
- New upstream source
- Patch to fix bz #559863 from upstream


wcstools3-bug559863.patch:
 wcs.c     |   44 +++++++++++++++++++++++++++-----------------
 wcsinit.c |   25 +++++++++++--------------
 2 files changed, 38 insertions(+), 31 deletions(-)

--- NEW FILE wcstools3-bug559863.patch ---
diff -ur wcstools-3.8.1/libwcs/wcs.c wcstools-3.8.1.new/libwcs/wcs.c
--- wcstools-3.8.1/libwcs/wcs.c	2008-02-27 20:07:29.000000000 +0100
+++ wcstools-3.8.1.new/libwcs/wcs.c	2010-02-03 18:44:51.000000000 +0100
@@ -1,8 +1,8 @@
 /*** File libwcs/wcs.c
- *** July 25, 2007
+ *** February 3, 2010
  *** By Doug Mink, dmink at cfa.harvard.edu
  *** Harvard-Smithsonian Center for Astrophysics
- *** Copyright (C) 1994-2007
+ *** Copyright (C) 1994-2010
  *** Smithsonian Astrophysical Observatory, Cambridge, MA, USA
 
     This library is free software; you can redistribute it and/or
@@ -90,7 +90,6 @@
 static char wcserrmsg[80];
 static char wcsfile[256]={""};
 static void wcslibrot();
-void wcsrotset();
 static int wcsproj0 = 0;
 static int izpix = 0;
 static double zpix = 0.0;
@@ -334,7 +333,6 @@
     int i, iproj;
     int nctype = 32;
     char ctypes[32][4];
-    char dtypes[10][4];
 
     /* Initialize projection types */
     strcpy (ctypes[0], "LIN");
@@ -370,27 +368,28 @@
     strcpy (ctypes[30], "PLT");
     strcpy (ctypes[31], "TNX");
 
-    /* Initialize distortion types */
-    strcpy (dtypes[1], "SIP");
+    /* First coordinate type */
 
     if (!strncmp (ctype1, "LONG",4))
 	strncpy (ctype1, "XLON",4);
 
-    strcpy (wcs->ctype[0], ctype1);
-    strcpy (wcs->c1type, ctype1);
-    strcpy (wcs->ptype, ctype1);
-
     /* Linear coordinates */
-    if (!strncmp (ctype1,"LINEAR",6))
+    if (!strncmp (ctype1,"LINEAR",6)) {
 	wcs->prjcode = WCS_LIN;
+	strcpy (wcs->ctype[0], "LINEAR");
+	}
 
     /* Pixel coordinates */
-    else if (!strncmp (ctype1,"PIXEL",6))
+    else if (!strncmp (ctype1,"PIXEL",5)) {
 	wcs->prjcode = WCS_PIX;
+	strcpy (wcs->ctype[0], "PIXEL");
+	}
 
     /*Detector pixel coordinates */
-    else if (strsrch (ctype1,"DET"))
+    else if (strsrch (ctype1,"DET")) {
 	wcs->prjcode = WCS_PIX;
+	strcpy (wcs->ctype[0], "PIXEL");
+	}
 
     /* Set up right ascension, declination, latitude, or longitude */
     else if (ctype1[0] == 'R' || ctype1[0] == 'D' ||
@@ -483,9 +482,13 @@
     /* If not sky coordinates, assume linear */
     else {
 	wcs->prjcode = WCS_LIN;
+	strcpy (wcs->ctype[0], "LINEAR");
 	return (0);
 	}
 
+    strcpy (wcs->c1type, wcs->ctype[0]);
+    strcpy (wcs->ptype, wcs->ctype[0]);
+
     /* Second coordinate type */
     if (!strncmp (ctype2, "NPOL",4)) {
 	ctype2[0] = ctype1[0];
@@ -503,16 +506,18 @@
 	}
     else
 	wcs->latbase = 0;
-    strcpy (wcs->ctype[1], ctype2);
-    strcpy (wcs->c2type, ctype2);
 
     /* Linear coordinates */
-    if (!strncmp (ctype2,"LINEAR",6))
+    if (!strncmp (ctype2,"LINEAR",6)) {
 	wcs->prjcode = WCS_LIN;
+	strcpy (wcs->ctype[1], "LINEAR");
+	}
 
     /* Pixel coordinates */
-    else if (!strncmp (ctype2,"PIXEL",6))
+    else if (!strncmp (ctype2,"PIXEL",5)) {
 	wcs->prjcode = WCS_PIX;
+	strcpy (wcs->ctype[1], "PIXEL");
+	}
 
     /* Set up right ascension, declination, latitude, or longitude */
     else if (ctype2[0] == 'R' || ctype2[0] == 'D' ||
@@ -564,7 +569,9 @@
     /* If not sky coordinates, assume linear */
     else {
 	wcs->prjcode = WCS_LIN;
+	strcpy (wcs->ctype[1], "LINEAR");
 	}
+    strcpy (wcs->c2type, wcs->ctype[1]);
 
     /* Set distortion code from CTYPE1 extension */
     setdistcode (wcs, ctype1);
@@ -2934,4 +2941,7 @@
  * Feb 23 2007	Fix bug when checking for "DET" in CTYPEi
  * Apr  2 2007	Fix PC to CD matrix conversion
  * Jul 25 2007	Compute distance between two coordinates using d2v3()
+ *
+ * Jan 11 2010	Move declaration of wcsrotset() to wcs.h
+ * Feb  3 2010	Fix wcstype() to copy only first 8 char of CTYPEs into wcs
  */
diff -ur wcstools-3.8.1/libwcs/wcsinit.c wcstools-3.8.1.new/libwcs/wcsinit.c
--- wcstools-3.8.1/libwcs/wcsinit.c	2009-03-24 20:58:36.000000000 +0100
+++ wcstools-3.8.1.new/libwcs/wcsinit.c	2010-02-03 18:46:16.000000000 +0100
@@ -1,8 +1,8 @@
 /*** File libwcs/wcsinit.c
- *** March 24, 2009
+ *** February 3, 2010
  *** By Doug Mink, dmink at cfa.harvard.edu
  *** Harvard-Smithsonian Center for Astrophysics
- *** Copyright (C) 1998-2009
+ *** Copyright (C) 1998-2010
  *** Smithsonian Astrophysical Observatory, Cambridge, MA, USA
 
     This library is free software; you can redistribute it and/or
@@ -50,7 +50,6 @@
 static void wcseq();
 static void wcseqm();
 static void wcsioset();
-void wcsrotset();
 char wcschar();
 
 /* set up a WCS structure from a FITS image header lhstring bytes long 
@@ -243,9 +242,6 @@
     int nax;
     int twod;
     int iszpx = 0;
-    extern int tnxinit();
-    extern int platepos();
-    extern int dsspos();
 
     wcs = (struct WorldCoor *) calloc (1, sizeof(struct WorldCoor));
 
@@ -423,25 +419,23 @@
 		ctype2[7] = 'N';
 		}
 	    }
-	strcpy (wcs->ctype[0], ctype1);
-	strcpy (wcs->ctype[1], ctype2);
 	if (strsrch (ctype2, "LAT") || strsrch (ctype2, "DEC"))
 	    ilat = 2;
 	else
 	    ilat = 1;
 
-	/* Read third and fourth coordinate types, if present */
-	strcpy (wcs->ctype[2], "");
-	hgetsc (hstring, "CTYPE3", &mchar, 9, wcs->ctype[2]);
-	strcpy (wcs->ctype[3], "");
-	hgetsc (hstring, "CTYPE4", &mchar, 9, wcs->ctype[3]);
-
 	/* Set projection type in WCS data structure */
 	if (wcstype (wcs, ctype1, ctype2)) {
 	    wcsfree (wcs);
 	    return (NULL);
 	    }
 
+	/* Read third and fourth coordinate types, if present */
+	strcpy (wcs->ctype[2], "");
+	hgetsc (hstring, "CTYPE3", &mchar, 9, wcs->ctype[2]);
+	strcpy (wcs->ctype[3], "");
+	hgetsc (hstring, "CTYPE4", &mchar, 9, wcs->ctype[3]);
+
 	/* Get units, if present, for linear coordinates */
 	if (wcs->prjcode == WCS_LIN) {
 	    if (!hgetsc (hstring, "CUNIT1", &mchar, 16, wcs->units[0])) {
@@ -1380,4 +1374,7 @@
  * Jun 27 2008	If NAXIS1 and NAXIS2 not present, check for IMAGEW and IMAGEH
  *
  * Mar 24 2009	Fix dimension bug if NAXISi not present (fix from John Burns)
+ *
+ * Jan 11 2010	Move all external declarations to header files
+ * Feb  3 2010	Do not copy CTYPE1 and CTYPE2 into wcs structure directly
  */


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/wcstools/F-11/sources,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -p -r1.7 -r1.8
--- sources	7 Sep 2007 20:16:11 -0000	1.7
+++ sources	3 Feb 2010 18:27:57 -0000	1.8
@@ -1 +1 @@
-bda2748ab4a60e196e3621cc7fa47eda  wcstools-3.7.0.tar.gz
+f70c3f94dd9ec110515571f336da4110  wcstools-3.8.1.tar.gz


Index: wcstools.spec
===================================================================
RCS file: /cvs/pkgs/rpms/wcstools/F-11/wcstools.spec,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -p -r1.16 -r1.17
--- wcstools.spec	25 Feb 2009 18:14:57 -0000	1.16
+++ wcstools.spec	3 Feb 2010 18:27:57 -0000	1.17
@@ -1,6 +1,6 @@
 Name: wcstools
-Version: 3.7.0
-Release: 7%{?dist}
+Version: 3.8.1
+Release: 1%{?dist}
 Summary: Software utilities to display and manipulate the WCS of a FITS image
 
 Group: Applications/Engineering
@@ -8,8 +8,7 @@ License: GPLv2+
 URL: http://tdc-www.harvard.edu/wcstools
 Source0: http://tdc-www.harvard.edu/software/wcstools/%{name}-%{version}.tar.gz
 Patch0: wcstools3-shared.patch
-Patch1: wcstools3-codewarn.patch
-Patch2: wcstools3-bug232413.patch
+Patch1: wcstools3-bug559863.patch
 Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
 %description
@@ -23,7 +22,6 @@ search star catalogs and manipulate imag
 Summary: Wcstools shared library 
 Group: System Environment/Libraries
 License: LGPLv2+
-Obsoletes: libwcs < 3.7.0-4
 
 Requires(post): /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
@@ -36,15 +34,13 @@ Summary: Libraries, includes, etc. used 
 Group: Development/Libraries
 License: LGPLv2+
 Requires: %{name}-libs = %{version}-%{release}
-Obsoletes: libwcs-devel < 3.7.0-4
 %description devel
-This are the files needed to develop an application using wcstools.
+These are the files needed to develop an application using wcstools.
 
 %prep
 %setup -q
 %patch0 -p1
 %patch1 -p1
-%patch2 -p1
 
 %build
 %{__make} CC="%{__cc}" CFLAGS="%{optflags} -fPIC" all
@@ -69,23 +65,27 @@ This are the files needed to develop an 
 
 %files
 %doc NEWS COPYING Readme Programs
-%defattr(-,root,root)
+%defattr(-,root,root,-)
 %{_bindir}/*
 %{_mandir}/man1/*
 
 %files libs
-%defattr(-,root,root)
+%defattr(-,root,root,-)
 %doc libwcs/COPYING
 %{_libdir}/*.so.*
 
 %files devel
 %doc libwcs/COPYING libwcs/NEWS
-%defattr(-,root,root)
+%defattr(-,root,root,-)
 %{_libdir}/*.so
 %{_includedir}/wcs
 
 
 %changelog
+* Tue Feb 03 2010 Sergio Pascual <sergiopr at fedoraproject.org> 3.8.1-1
+- New upstream source
+- Patch to fix bz #559863 from upstream
+
 * Wed Feb 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 3.7.0-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 


--- wcstools3-bug232413.patch DELETED ---


--- wcstools3-codewarn.patch DELETED ---



More information about the scm-commits mailing list