rpms/ncl/devel Site.local.ncl, NONE, 1.1 ncarg-4.4.1-deps.patch, NONE, 1.1 ncarg-4.4.2-ppc64.patch, NONE, 1.1 ncl-5.0.0-atlas.patch, NONE, 1.1 ncl-5.0.0-build_n_scripts.patch, NONE, 1.1 ncl-5.0.0-flex.patch, NONE, 1.1 ncl-5.0.0-hdf.patch, NONE, 1.1 ncl-5.0.0-netcdff.patch, NONE, 1.1 ncl-5.0.0-no_install_dep.patch, NONE, 1.1 ncl-5.0.0-paths.patch, NONE, 1.1 ncl-5.0.0-png.patch, NONE, 1.1 ncl-5.0.0-triangle.patch, NONE, 1.1 ncl-5.0.0-wrapit.patch, NONE, 1.1 ncl.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Orion Poplawski (orion)
fedora-extras-commits at redhat.com
Thu Feb 28 22:12:14 UTC 2008
Author: orion
Update of /cvs/pkgs/rpms/ncl/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15300/devel
Modified Files:
.cvsignore sources
Added Files:
Site.local.ncl ncarg-4.4.1-deps.patch ncarg-4.4.2-ppc64.patch
ncl-5.0.0-atlas.patch ncl-5.0.0-build_n_scripts.patch
ncl-5.0.0-flex.patch ncl-5.0.0-hdf.patch
ncl-5.0.0-netcdff.patch ncl-5.0.0-no_install_dep.patch
ncl-5.0.0-paths.patch ncl-5.0.0-png.patch
ncl-5.0.0-triangle.patch ncl-5.0.0-wrapit.patch ncl.spec
Log Message:
Initial import
--- NEW FILE Site.local.ncl ---
#define YmakeRoot $(DESTDIR)@prefix@
#define ManRoot $(DESTDIR)@mandir@
#define LibRoot $(DESTDIR)@libdir@/ncarg
#define SharePath $(DESTDIR)@datadir@
#define BuildWithF90 TRUE
#define IncSearch -I/usr/include/netcdf-3
#define LibSearch -L at libdir@/hdf
#define BuildUdunits TRUE
#define UdUnitslib
#define BuildV5D FALSE
#define BuildHDFEOS FALSE
#define BuildTRIANGLE 0
#define V5Dlib
#define BuildDODS TRUE
ncarg-4.4.1-deps.patch:
--- NEW FILE ncarg-4.4.1-deps.patch ---
--- ncarg-4.4.1/common/src/fontcap/yMakefile.deps 2005-02-07 10:51:56.000000000 -0700
+++ ncarg-4.4.1/common/src/fontcap/yMakefile 2007-01-19 16:49:01.000000000 -0700
@@ -41,7 +41,7 @@
# Rule for processing fontcaps
.SUFFIXES: .fc
-.fc:
+.fc: $(FONTC)
@echo " Processing fontcap $@"
@$(FONTC) $< $@
ncarg-4.4.2-ppc64.patch:
--- NEW FILE ncarg-4.4.2-ppc64.patch ---
--- ncarg-4.4.2/config/ymake.ppc64 2006-05-02 08:16:20.000000000 -0600
+++ ncarg-4.4.2/config/ymake 2007-06-27 10:28:13.000000000 -0600
@@ -364,19 +364,13 @@
case x*86:
case i*64:
case x*64:
- case p*64:
+ case ppc*:
case alpha:
set model = $mach
set arch = $mach
set sysincs = LINUX
set vendor = IBM
breaksw
- case ppc:
- set model = $mach
- set arch = $mach
- set sysincs = YDLINUX
- set vendor = APPLE
- breaksw
default:
echo "$0 : Unknown machine type" > /dev/tty
exit 1
ncl-5.0.0-atlas.patch:
--- NEW FILE ncl-5.0.0-atlas.patch ---
--- ncl_ncarg-5.0.0/config/Project.atlas 2007-12-14 07:59:49.000000000 -0700
+++ ncl_ncarg-5.0.0/config/Project 2007-12-14 08:02:47.000000000 -0700
@@ -402,8 +402,8 @@
NIOLIB = -lnio
NCLLIB =
NCLAPILIB = -lNGncl
-BLASLIB = -lblas_ncl
-LAPACKLIB = -llapack_ncl
+BLASLIB = -lblas
+LAPACKLIB = -llapack
SPHERELIB = -lsphere3.1_dp
FFTPACK5LIB = -lfftpack5_dp
@@ -446,8 +446,8 @@
XCBLIB = _UseLib(-L$(XCBLIBSRC),-lXcb)
NCLLIB = _UseLib(-L$(NCLLIBSRC),-lncl)
NCLAPILIB = _UseLib(-L$(NCLLIBSRC),-lnclapi)
-BLASLIB = _UseLib(-L$(BLASSRC),-lblas_ncl)
-LAPACKLIB = _UseLib(-L$(LAPACKSRC),-llapack_ncl)
+BLASLIB = _UseLib(-L%LIBDIR%/atlas,-lblas)
+LAPACKLIB = _UseLib(-L%LIBDIR%/atlas,-llapack)
SPHERELIB = _UseLib(-L$(SPHERESRC),-lsphere3.1_dp)
FFTPACK5LIB = _UseLib(-L$(FFTPACK5SRC),-lfftpack5_dp)
ncl-5.0.0-build_n_scripts.patch:
--- NEW FILE ncl-5.0.0-build_n_scripts.patch ---
diff -up ncl_ncarg-5.0.0/ni/src/scripts/yMakefile.build_n_scripts ncl_ncarg-5.0.0/ni/src/scripts/yMakefile
--- ncl_ncarg-5.0.0/ni/src/scripts/yMakefile.build_n_scripts 2008-02-01 12:21:57.000000000 +0100
+++ ncl_ncarg-5.0.0/ni/src/scripts/yMakefile 2008-02-01 12:21:26.000000000 +0100
@@ -7,6 +7,12 @@ SCRIPTS2 = WRAPIT ncl_filedump ncl_grib2
MAN1 = ng4ex nhlcc nhlf77 nhlf90
+InstallTarget($(SCRIPTS1),$(INSTALL_BIN),$(BINPATH))
+InstallTarget($(SCRIPTS2),$(INSTALL_BIN),$(BINPATH))
+CleanFilesTarget($(SCRIPTS1))
+InstallManPages($(MAN1),$(FORMAT_EXT),$(MAN1PATH),$(MAN1_SECTION))
+FormatManPages($(MAN1),.m,.p)
+
nhlf77: nhlf77.csh Makefile
@sed \
-e 's+SED_FC+$(F77)+' \
@@ -70,12 +76,6 @@ FORMAT_EXT = .p
FORMAT_EXT = .m
#endif
-InstallTarget($(SCRIPTS1),$(INSTALL_BIN),$(BINPATH))
-InstallTarget($(SCRIPTS2),$(INSTALL_BIN),$(BINPATH))
-CleanFilesTarget($(SCRIPTS1))
-InstallManPages($(MAN1),$(FORMAT_EXT),$(MAN1PATH),$(MAN1_SECTION))
-FormatManPages($(MAN1),.m,.p)
-
#if !defined(CRAY)
ng4ex: ng4ex.csh Makefile
@sed \
ncl-5.0.0-flex.patch:
--- NEW FILE ncl-5.0.0-flex.patch ---
--- ncl_ncarg-5.0.0/ni/src/ncl/Symbol.h.flex 2007-07-13 11:12:28.000000000 -0600
+++ ncl_ncarg-5.0.0/ni/src/ncl/Symbol.h 2007-12-13 12:32:10.000000000 -0700
@@ -523,7 +523,7 @@
#ifndef YY_INPUT
#define YY_INPUT(buf,result,max_size) \
- if ( yy_current_buffer->yy_is_interactive ) \
+ if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*', n; \
for ( n = 0; n < max_size && \
ncl-5.0.0-hdf.patch:
--- NEW FILE ncl-5.0.0-hdf.patch ---
--- ncl_ncarg-5.0.0/ni/src/ncl/NclHDF.c.hdf 2007-06-20 19:35:32.000000000 -0600
+++ ncl_ncarg-5.0.0/ni/src/ncl/NclHDF.c 2007-12-13 12:43:33.000000000 -0700
@@ -63,7 +63,7 @@
NclQuark var_path;
nc_type data_type;
int n_dims;
- int dim[MAX_VAR_DIMS];
+ int dim[H4_MAX_VAR_DIMS];
int natts;
HDFAttInqRecList *att_list;
};
@@ -308,9 +308,9 @@
#endif
{
- char buffer[MAX_NC_NAME];
+ char buffer[H4_MAX_NC_NAME];
char *tp, *cp;
- char len = MIN(MAX_NC_NAME - 2,strlen(hdf_name));
+ char len = MIN(H4_MAX_NC_NAME - 2,strlen(hdf_name));
strncpy(buffer,hdf_name,len);
cp = tp = buffer;
@@ -342,7 +342,7 @@
*cp = '\0';
if (ncl_class) {
- len = MIN(MAX_NC_NAME - 1,len + 2 + strlen(ncl_class));
+ len = MIN(H4_MAX_NC_NAME - 1,len + 2 + strlen(ncl_class));
strncat(cp,"__",len);
cp += 2;
*cp = '\0';
@@ -460,9 +460,9 @@
int32 sd_id, sds_id, sds_ref;
intn status;
int32 n_datasets, n_file_attrs, index;
- int32 dim_sizes[MAX_VAR_DIMS];
+ int32 dim_sizes[H4_MAX_VAR_DIMS];
int32 rank, data_type, n_attrs;
- char name[MAX_NC_NAME]; int i;
+ char name[H4_MAX_NC_NAME]; int i;
/********************* End of variable declaration ***********************/
/* * Open the file and initialize the SD interface. */
sd_id = SDstart (path, DFACC_READ);
@@ -647,8 +647,8 @@
HDFFileRecord *tmp = (HDFFileRecord*) rec;
int cdfid;
int dummy;
- char buffer[MAX_NC_NAME];
- char buffer2[MAX_NC_NAME];
+ char buffer[H4_MAX_NC_NAME];
+ char buffer2[H4_MAX_NC_NAME];
int i,j,has_scalar_dim = 0,nvars = 0;
long tmp_size;
HDFAttInqRecList **stepalptr;
@@ -1247,7 +1247,7 @@
int cdfid = -1;
int ret = -1,i;
int no_stride = 1;
- long count[MAX_NC_DIMS];
+ long count[H4_MAX_NC_DIMS];
stepvl = rec->vars;
while(stepvl != NULL) {
@@ -1467,7 +1467,7 @@
HDFFileRecord *rec = (HDFFileRecord*)therec;
int cdfid;
HDFVarInqRecList *stepvl;
- long count[MAX_NC_DIMS];
+ long count[H4_MAX_NC_DIMS];
int i,n_elem = 1,no_stride = 1;
int ret;
@@ -1950,7 +1950,7 @@
HDFVarInqRecList *stepvl = NULL;
int cdfid,i,ret;
nc_type *the_data_type;
- int dim_ids[MAX_NC_DIMS];
+ int dim_ids[H4_MAX_NC_DIMS];
HDFDimInqRecList* stepdl = NULL;
int add_scalar_dim = 0;
--- ncl_ncarg-5.0.0/ni/src/ncl/NclHDFEOS.c.hdf 2007-06-20 19:35:32.000000000 -0600
+++ ncl_ncarg-5.0.0/ni/src/ncl/NclHDFEOS.c 2007-12-13 12:42:42.000000000 -0700
@@ -67,7 +67,7 @@
NclQuark var_class_name;
int32 typenumber;
int32 n_dims;
- int32 dim[MAX_VAR_DIMS];
+ int32 dim[H4_MAX_VAR_DIMS];
int32 n_int_atts;
HDFEOSAttInqRecList *att_int_list;
};
ncl-5.0.0-netcdff.patch:
--- NEW FILE ncl-5.0.0-netcdff.patch ---
diff -up ncl_ncarg-5.0.0/ni/src/scripts/nhlf77.csh.netcdff ncl_ncarg-5.0.0/ni/src/scripts/nhlf77.csh
--- ncl_ncarg-5.0.0/ni/src/scripts/nhlf77.csh.netcdff 2008-02-01 23:55:21.000000000 +0100
+++ ncl_ncarg-5.0.0/ni/src/scripts/nhlf77.csh 2008-02-01 23:57:23.000000000 +0100
@@ -64,7 +64,7 @@ foreach arg ($argv)
case "-netcdf":
case "-cdf":
- set extra_libs = "$extra_libs SED_NCDFLIBS"
+ set extra_libs = "$extra_libs SED_NCDFLIBS -lnetcdff"
breaksw
case "-hdf":
diff -up ncl_ncarg-5.0.0/ni/src/scripts/ng4ex.csh.netcdff ncl_ncarg-5.0.0/ni/src/scripts/ng4ex.csh
ncl-5.0.0-no_install_dep.patch:
--- NEW FILE ncl-5.0.0-no_install_dep.patch ---
diff -up ncl_ncarg-5.0.0/config/Rules.no_install_dep ncl_ncarg-5.0.0/config/Rules
--- ncl_ncarg-5.0.0/config/Rules.no_install_dep 2008-02-01 11:46:09.000000000 +0100
+++ ncl_ncarg-5.0.0/config/Rules 2008-02-01 11:46:20.000000000 +0100
@@ -79,7 +79,7 @@ all::]\
]\
all-local:: names]\
]\
-install-local:: names]\
+install-local:: ]\
MakeDir(dest)]\
@for name in names; do \ ]\
if (test -f $$name.$(EXE_SUFFIX)) then \ ]\
ncl-5.0.0-paths.patch:
--- NEW FILE ncl-5.0.0-paths.patch ---
diff -up ncl_ncarg-5.0.0/ni/src/examples/gsun/gsn_code.ncl.paths ncl_ncarg-5.0.0/ni/src/examples/gsun/gsn_code.ncl
--- ncl_ncarg-5.0.0/ni/src/examples/gsun/gsn_code.ncl.paths 2008-02-01 17:20:00.000000000 +0100
+++ ncl_ncarg-5.0.0/ni/src/examples/gsun/gsn_code.ncl 2008-02-01 17:20:58.000000000 +0100
@@ -1937,8 +1937,8 @@ begin
lines = new(30+natt,string) ; Roughly how many lines we need
nlines = 0
- write_lines("load " + q + "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" + q, lines, nlines)
- write_lines("load " + q + "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" + q, lines, nlines)
+ write_lines("load " + q + "$NCARG_ROOT/share/ncarg/nclscripts/csm/gsn_code.ncl" + q, lines, nlines)
+ write_lines("load " + q + "$NCARG_ROOT/share/ncarg/nclscripts/csm/gsn_csm.ncl" + q, lines, nlines)
write_lines("", lines, nlines)
write_lines("begin", lines, nlines)
write_lines(";", lines, nlines)
diff -up ncl_ncarg-5.0.0/config/ymake.paths ncl_ncarg-5.0.0/config/ymake
--- ncl_ncarg-5.0.0/config/ymake.paths 2006-05-02 16:16:20.000000000 +0200
+++ ncl_ncarg-5.0.0/config/ymake 2008-02-01 15:19:00.000000000 +0100
@@ -185,6 +185,13 @@ if ($useinstalled != 0) then
endif
set defines = ($defines -D_InstBin\=$bin_dir)
+ set share_dir = `ncargpath share`
+ if ($status != 0) then
+ echo "$0 : Unable to find NCARG_SHARE dir" > /dev/tty
+ exit 1
+ endif
+ set defines = ($defines -D_InstShare\=$share_dir)
+
set inc_dir = `ncargpath include`
if ($status != 0) then
echo "$0 : Unable to find NCARG_INCLUDE dir" > /dev/tty
diff -up ncl_ncarg-5.0.0/config/Template.paths ncl_ncarg-5.0.0/config/Template
--- ncl_ncarg-5.0.0/config/Template.paths 2005-08-19 19:32:45.000000000 +0200
+++ ncl_ncarg-5.0.0/config/Template 2008-02-01 15:19:00.000000000 +0100
@@ -160,6 +160,14 @@ NGCOMM##################################
#endif /* _IgnoreYmakeRoot */
#endif /* BinRoot */
+#ifndef ShareRoot
+#ifndef _IgnoreYmakeRoot
+#define ShareRoot YmakeRoot/share
+#else
+#define ShareRoot _InstShare
+#endif /* _IgnoreYmakeRoot */
+#endif /* ShareRoot */
+
#ifndef LibRoot
#ifndef _IgnoreYmakeRoot
#define LibRoot YmakeRoot/lib
@@ -210,6 +218,14 @@ NGCOMM##################################
#endif
#endif
+#ifndef SharePath
+#ifdef _UseRootPath
+#define SharePath RootPath/share
+#else
+#define SharePath ShareRoot
+#endif
+#endif
+
#ifndef LibPath
#ifdef _UseRootPath
#define LibPath RootPath/lib
@@ -573,6 +589,7 @@ MANROOT = ManRoot
TMPROOT = TmpRoot
ROOTPATH = RootPath
+SHAREPATH = SharePath
BINPATH = BinPath
LIBPATH = LibPath
INCPATH = IncPath
diff -up ncl_ncarg-5.0.0/config/Project.paths ncl_ncarg-5.0.0/config/Project
--- ncl_ncarg-5.0.0/config/Project.paths 2007-10-11 18:38:32.000000000 +0200
+++ ncl_ncarg-5.0.0/config/Project 2008-02-01 15:19:00.000000000 +0100
@@ -227,7 +227,8 @@ ROBJDIR = robj
WWWDIR = ngwww
XAPPDIR = xapp
-LIBNCARGROOT = $(LIBROOT)/$(NCARGDIR)
+LIBNCARGROOT = $(SHAREPATH)/$(NCARGDIR)
+LIBNCARGARCH = $(LIBPATH)/$(NCARGDIR)
CONFIGROOT = $(LIBNCARGROOT)/$(CONFIGDIR)
DBROOT = $(LIBNCARGROOT)/$(DBDIR)
FONTCAPROOT = $(LIBNCARGROOT)/$(FONTCAPDIR)
@@ -235,7 +236,7 @@ GRAPHCAPROOT = $(LIBNCARGROOT)/$(GRAPHC
DATAROOT = $(LIBNCARGROOT)/$(DATADIR)
DOCROOT = $(LIBNCARGROOT)/$(DOCDIR)
EXAMPLESROOT = $(LIBNCARGROOT)/$(EXAMPLESDIR)
-ROBJROOT = $(LIBNCARGROOT)/$(ROBJDIR)
+ROBJROOT = $(LIBNCARGARCH)/$(ROBJDIR)
TESTSROOT = $(LIBNCARGROOT)/$(TESTSDIR)
TUTORIALROOT = $(LIBNCARGROOT)/$(TUTORIALDIR)
WWWROOT = $(LIBNCARGROOT)/$(WWWDIR)
@@ -244,7 +245,7 @@ HLUEXROOT = $(LIBNCARGROOT)/$(HLUEXDIR)
RESFILEROOT = $(LIBNCARGROOT)/$(RESDIR)
NCLEXROOT = $(LIBNCARGROOT)/$(NCLEXDIR)
GRIB2CODETABLEROOT = $(LIBNCARGROOT)/$(GRIB2CODETABLEDIR)
-LIBNCARGPATH = $(LIBPATH)/$(NCARGDIR)
+LIBNCARGPATH = $(SHAREPATH)/$(NCARGDIR)
CONFIGPATH = $(LIBNCARGPATH)/$(CONFIGDIR)
DBPATH = $(LIBNCARGPATH)/$(DBDIR)
FONTCAPPATH = $(LIBNCARGPATH)/$(FONTCAPDIR)
@@ -252,7 +253,7 @@ GRAPHCAPPATH = $(LIBNCARGPATH)/$(GRAPHC
DATAPATH = $(LIBNCARGPATH)/$(DATADIR)
DOCPATH = $(LIBNCARGPATH)/$(DOCDIR)
EXAMPLESPATH = $(LIBNCARGPATH)/$(EXAMPLESDIR)
-ROBJPATH = $(LIBNCARGPATH)/$(ROBJDIR)
+ROBJPATH = $(LIBNCARGARCH)/$(ROBJDIR)
TESTSPATH = $(LIBNCARGPATH)/$(TESTSDIR)
TUTORIALPATH = $(LIBNCARGPATH)/$(TUTORIALDIR)
WWWPATH = $(LIBNCARGPATH)/$(WWWDIR)
@@ -272,7 +273,7 @@ USRRESFILE = "~/.hluresfile"
NCARGURL = "ngurl"
NCARGSITEFILE = "ncargsite"
-ROOTPATHCHECK = "/lib/ncarg/fontcaps/font1"
+ROOTPATHCHECK = "/share/ncarg/fontcaps/font1"
/*
* This huge define is used to define all the Environment variables
@@ -314,10 +315,11 @@ NGENV_DESCRIPT = \
"usrresfile",NULL,NULL,$(USRRESFILE),NULL, \
"gks_output",NULL,NULL,"gmeta",NULL, \
"bin",NULL,"root",NULL,NULL, \
- "lib",NULL,"root",NULL,NULL, \
+ "lib",NULL,NULL,"$(LIBROOT)",NULL, \
"include",NULL,"root",NULL,NULL, \
+ "share",NULL,"root",NULL,NULL, \
"man",NULL,"root",NULL,NULL, \
- "ncarg",NULL,"lib",NULL,NULL, \
+ "ncarg",NULL,"share",NULL,NULL, \
"config",NULL,"ncarg",NULL,NULL, \
"data",NULL,"ncarg",NULL,NULL, \
"database",NULL,"ncarg",NULL,NULL, \
ncl-5.0.0-png.patch:
--- NEW FILE ncl-5.0.0-png.patch ---
--- ncl_ncarg-5.0.0/config/Project.png 2007-12-14 08:03:39.000000000 -0700
+++ ncl_ncarg-5.0.0/config/Project 2007-12-14 08:04:02.000000000 -0700
@@ -170,7 +170,7 @@
#endif /* HDFEOSlib */
#ifndef GRIB2lib
-#define GRIB2lib -lgrib2c -ljasper
+#define GRIB2lib -lgrib2c -ljasper -lpng
#endif /* GRIB2lib */
#ifndef NetCDFlib
ncl-5.0.0-triangle.patch:
--- NEW FILE ncl-5.0.0-triangle.patch ---
--- ncl_ncarg-5.0.0/ni/src/lib/hlu/CnTriMeshRenderer.c.orig 2007-11-13 15:00:42.000000000 -0700
+++ ncl_ncarg-5.0.0/ni/src/lib/hlu/CnTriMeshRenderer.c 2007-11-13 15:01:05.000000000 -0700
@@ -30,8 +30,10 @@
#include <ncarg/hlu/CurvilinearTransObj.h>
#include <ncarg/hlu/SphericalTransObj.h>
#include <ncarg/hlu/TriMeshTransObj.h>
+#ifdef BuildTRIANGLE
#define REAL double
#include <ncarg/hlu/triangle.h>
+#endif
#define Oset(field) \
NhlOffset(NhlCnTriMeshRendererLayerRec,cntrimeshrenderer.field)
ncl-5.0.0-wrapit.patch:
--- NEW FILE ncl-5.0.0-wrapit.patch ---
--- ncl_ncarg-5.0.0/ni/src/mkwrap/yMakefile.wrapit 2007-12-14 15:00:17.000000000 -0700
+++ ncl_ncarg-5.0.0/ni/src/mkwrap/yMakefile 2007-12-14 15:00:41.000000000 -0700
@@ -55,11 +55,11 @@
GEN_SRCS = y.tab.c lex.yy.c
-STATIC_SRCS = Symbol.c wrapit.c
+STATIC_SRCS = Symbol.c wrapit77.c
GEN_OBJS = y.tab.o lex.yy.o
-STATIC_OBJS = Symbol.o wrapit.o
+STATIC_OBJS = Symbol.o wrapit77.o
OBJS = $(GEN_OBJS) $(STATIC_OBJS)
--- NEW FILE ncl.spec ---
Name: ncl
Version: 5.0.0
Release: 9%{?dist}
Summary: NCAR Command Language and NCAR Graphics
Group: Applications/Engineering
License: BSD
URL: http://www.ncl.ucar.edu
# You must register for a free account at http://www.earthsystemgrid.org/ before being able to download the source.
Source0: http://datanode.ucar.edu/data/xserve/ncl/5.0.0/binaries/source/ncl_ncarg_src-5.0.0.tar.gz
Source1: Site.local.ncl
# ymake uses cpp with some defines on the command line to generate a
# Makefile which consists in:
# Template: command line defines
# Site.conf
# LINUX
# Site.conf
# Template: generic defaults, including default paths
# Project
# Rules
# yMakefile
# Template: some rules
#
# install paths are set up in Project. Paths used in code are also in
# Project, in NGENV_DESCRIPT.
Patch0: ncl-5.0.0-paths.patch
Patch1: ncarg-4.4.1-deps.patch
Patch2: ncarg-4.4.2-ppc64.patch
Patch4: ncl-5.0.0-triangle.patch
Patch5: ncl-5.0.0-flex.patch
Patch6: ncl-5.0.0-hdf.patch
Patch7: ncl-5.0.0-atlas.patch
Patch8: ncl-5.0.0-png.patch
Patch9: ncl-5.0.0-wrapit.patch
# don't have the installation target depends on the build target since
# for library it implies running ranlib and modifying the library timestamp
Patch10: ncl-5.0.0-no_install_dep.patch
# put install and build rules before script rules such that the default rule
# is all
Patch11: ncl-5.0.0-build_n_scripts.patch
Patch12: ncl-5.0.0-netcdff.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: /bin/csh, gcc-gfortran, netcdf-devel, hdf-devel >= 4.2r2, libjpeg-devel
BuildRequires: g2clib-devel, libnc-dap-devel, librx-devel, atlas-devel
# imake needed for makedepend
BuildRequires: imake, libXt-devel, libXaw-devel, libXext-devel, libXpm-devel
BuildRequires: byacc, flex
Provides: ncarg = %{version}-%{release}
Obsoletes: ncarg < %{version}-%{release}
%description
The NCAR Command Language (NCL) is a free interpreted language designed
specifically for scientific data processing and visualization. NCL has robust
file input and output. It can read and write netCDF-3, netCDF-4 classic (as
of version 4.3.1), HDF4, binary, and ASCII data, and read HDF-EOS2, GRIB1 and
GRIB2 (as of version 4.3.0). The graphics are world class and highly
customizable.
As of version 5.0.0, NCL and NCAR Graphics are released as one package.
The software comes with a couple of useful command line tools:
* ncl_filedump - prints the contents of supported files (netCDF, HDF,
GRIB1, GRIB2, HDF-EOS2, and CCM History Tape)
* ncl_convert2nc - converts one or more GRIB1, GRIB2, HDF and/or HDF-EOS
files to netCDF formatted files.
%package devel
Summary: Development files for NCL and NCAR Graphics
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: libXext-devel
Provides: ncl-static = %{version}-%{release}
Provides: ncarg-devel = %{version}-%{release}
Obsoletes: ncarg-devel < %{version}-%{release}
%description devel
%{summary}.
%package examples
Summary: Example programs and data using NCL
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description examples
Example programs and data using NCL.
%prep
%setup -q -n ncl_ncarg-%{version}
#%patch0 -p1 -b .rpmroot
%patch0 -p1 -b .paths
%patch1 -p1 -b .deps
%patch2 -p1 -b .ppc64
%patch4 -p1 -b .triangle
%patch5 -p1 -b .flex
%patch6 -p1 -b .hdf
%patch7 -p1 -b .atlas
%patch8 -p1 -b .png
%patch9 -p1 -b .wrapit
%patch10 -p1 -b .no_install_dep
%patch11 -p1 -b .build_n_scripts
%patch12 -p1 -b .netcdff
#Move wrapit.c to wrapit77.c to avoid flex make rule issues
#This works in combination with the wrapit patch
mv ni/src/mkwrap/wrapit.c ni/src/mkwrap/wrapit77.c
#Use ppc config if needed
%ifarch ppc ppc64
cp config/LINUX.ppc32.GNU config/LINUX
%endif
#Fixup LINUX config
sed -i -e '/StdDefines/s/-DSYSV//' config/LINUX
#Fixup libdir for atlas lib locations
sed -i -e s,%LIBDIR%,%{_libdir}, config/Project
rm -rf external/blas external/lapack
# fix the install directories
sed -e 's;@prefix@;%{_prefix};' \
-e 's;@mandir@;%{_mandir};' \
-e 's;@datadir@;%{_datadir};' \
-e 's;@libdir@;%{_libdir};' \
%{SOURCE1} > config/Site.local
pushd ni/src/examples
for file in */*.ncl; do
sed -i -e 's;load "\$NCARG_ROOT/lib/ncarg/nclex\([^ ;]*\);loadscript(ncargpath("nclex") + "\1);' \
-e 's;"\$NCARG_ROOT/lib/ncarg/\(data\|database\);ncargpath("\1") + ";' \
$file
done
popd
%build
# short-cicuit:
./config/ymkmf
# ./config/ymkmf could be also short circuited, since it does:
# (cd ./config; make -f Makefile.ini clean all)
# ./config/ymake -config ./config -Curdir . -Topdir .
make Build CCOPTIONS="$RPM_OPT_FLAGS -fPIC" F77=gfortran F77_LD=gfortran\
CTOFLIBS="-lgfortran" FCOPTIONS="$RPM_OPT_FLAGS -fPIC -fno-second-underscore -fno-range-check" \
COPT= FOPT=
%install
rm -rf $RPM_BUILD_ROOT
export NCARG=`pwd`
make install DESTDIR=$RPM_BUILD_ROOT
#mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
#install -m 0644 ncarg.csh ncarg.sh $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
# Don't conflict with allegro-devel (generic API names)
for manpage in $RPM_BUILD_ROOT%{_mandir}/man3/*
do
manname=`basename $manpage`
mv $manpage $RPM_BUILD_ROOT%{_mandir}/man3/%{name}_$manname
done
# Remove $RPM_BUILD_ROOT from MakeNcl
#sed -i -e s,$RPM_BUILD_ROOT,,g $RPM_BUILD_ROOT%{_bindir}/MakeNcl
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc COPYING Copyright README
#%{_sysconfdir}/profile.d/ncarg.*sh
%{_bindir}/ConvertMapData
%{_bindir}/WriteLineFile
%{_bindir}/WriteNameFile
%{_bindir}/WritePlotcharData
%{_bindir}/cgm2ncgm
%{_bindir}/ctlib
%{_bindir}/ctrans
%{_bindir}/ezmapdemo
%{_bindir}/fcaps
%{_bindir}/findg
%{_bindir}/fontc
%{_bindir}/gcaps
%{_bindir}/graphc
%{_bindir}/ictrans
%{_bindir}/idt
%{_bindir}/med
%{_bindir}/ncargfile
%{_bindir}/ncargpath
%{_bindir}/ncargrun
%{_bindir}/ncargversion
%{_bindir}/ncargworld
%{_bindir}/ncarlogo2ps
%{_bindir}/ncarvversion
%{_bindir}/ncgm2cgm
%{_bindir}/ncgmstat
%{_bindir}/ncl
%{_bindir}/ncl_convert2nc
%{_bindir}/ncl_filedump
%{_bindir}/ncl_grib2nc
%{_bindir}/nnalg
%{_bindir}/pre2ncgm
%{_bindir}/pre2ncgm.prog
%{_bindir}/psblack
%{_bindir}/psplit
%{_bindir}/pswhite
%{_bindir}/pwritxnt
%{_bindir}/ras2ccir601
%{_bindir}/rascat
%{_bindir}/rasgetpal
%{_bindir}/rasls
%{_bindir}/rassplit
%{_bindir}/rasstat
%{_bindir}/rasview
%{_bindir}/tdpackdemo
%{_bindir}/tgks0a
%{_bindir}/tlocal
%dir %{_datadir}/ncarg
%{_datadir}/ncarg/colormaps/
%{_datadir}/ncarg/data/
%{_datadir}/ncarg/database/
%{_datadir}/ncarg/fontcaps/
%{_datadir}/ncarg/graphcaps/
%{_datadir}/ncarg/grib2_codetables/
%{_datadir}/ncarg/nclscripts/
%{_datadir}/ncarg/ngwww/
%{_datadir}/ncarg/sysresfile/
%{_datadir}/ncarg/udunits/
%{_datadir}/ncarg/xapp/
%{_mandir}/man1/*.gz
%{_mandir}/man5/*.gz
%{_bindir}/scrip_check_input
%files devel
%defattr(-,root,root,-)
%{_bindir}/MakeNcl
%{_bindir}/WRAPIT
%{_bindir}/ncargcc
%{_bindir}/ncargf77
%{_bindir}/ncargf90
%{_bindir}/nhlcc
%{_bindir}/nhlf77
%{_bindir}/nhlf90
%{_bindir}/wrapit77
%{_includedir}/ncarg/
%dir %{_libdir}/ncarg
%{_libdir}/ncarg/libcgm.a
%{_libdir}/ncarg/libfftpack5_dp.a
%{_libdir}/ncarg/libhlu.a
%{_libdir}/ncarg/libncarg.a
%{_libdir}/ncarg/libncarg_c.a
%{_libdir}/ncarg/libncarg_gks.a
%{_libdir}/ncarg/libncarg_ras.a
%{_libdir}/ncarg/libncl.a
%{_libdir}/ncarg/libnclapi.a
%{_libdir}/ncarg/libnio.a
%{_libdir}/ncarg/libngmath.a
%{_libdir}/ncarg/libnfp.a
%{_libdir}/ncarg/libnfpfort.a
%{_libdir}/ncarg/libsphere3.1_dp.a
%{_libdir}/ncarg/ncarg/robj/
%{_mandir}/man3/*.gz
%files examples
%defattr(-,root,root,-)
%{_bindir}/ncargex
%{_bindir}/ng4ex
%{_datadir}/ncarg/examples/
%{_datadir}/ncarg/hluex/
%{_datadir}/ncarg/nclex/
%{_datadir}/ncarg/resfiles/
%{_datadir}/ncarg/tests/
%{_datadir}/ncarg/tutorial/
%changelog
* Mon Feb 18 2008 - Orion Poplawski <orion at cora.nwra.com> - 5.0.0-9
- Rename Site.local to Site.local.ncl
- Add comment for imake BR
* Wed Feb 6 2008 - Orion Poplawski <orion at cora.nwra.com> - 5.0.0-8
- Move examples into separate sub-package
* Fri Feb 1 2008 - Patrice Dumas <pertusus at free.fr> - 5.0.0-7
- put noarch files in datadir
- avoid compilation in %%install
* Mon Jan 14 2008 - Orion Poplawski <orion at cora.nwra.com> - 5.0.0-6
- Make BR hdf-devel >= 4.2r2.
* Fri Dec 14 2007 - Orion Poplawski <orion at cora.nwra.com> - 5.0.0-5
- Fixup wrapit flex compilation
* Fri Dec 14 2007 - Orion Poplawski <orion at cora.nwra.com> - 5.0.0-4
- Actually get ncl to build
* Sun Nov 18 2007 - Orion Poplawski <orion at cora.nwra.com> - 5.0.0-3
- Move robj to -devel
- Provide ncl-static in ncl-devel
- Turn on BuildUdunits. Turn off BuildV5D.
- Drop config/LINUX patch, use sed
* Wed Nov 14 2007 - Orion Poplawski <orion at cora.nwra.com> - 5.0.0-2
- Fixup profile.d script permissions, Group, move aed.a to devel
* Tue Nov 6 2007 - Orion Poplawski <orion at cora.nwra.com> - 5.0.0-1
- Initial ncl package, based on ncarg
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/ncl/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 28 Feb 2008 19:52:39 -0000 1.1
+++ .cvsignore 28 Feb 2008 22:11:41 -0000 1.2
@@ -0,0 +1 @@
+ncl_ncarg_src-5.0.0.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/ncl/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 28 Feb 2008 19:52:39 -0000 1.1
+++ sources 28 Feb 2008 22:11:41 -0000 1.2
@@ -0,0 +1 @@
+3a1bfbab90ebce230c1f494949534f8a ncl_ncarg_src-5.0.0.tar.gz
More information about the fedora-extras-commits
mailing list