diff --git a/.cvsignore b/.cvsignore index 1318d79..3f77f7f 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -netcdf-4.0.1.tar.gz +netcdf-4-daily.tar.gz diff --git a/netcdf-4.0.0-gcc4.3-cstring.patch b/netcdf-4.0.0-gcc4.3-cstring.patch deleted file mode 100644 index 279ca36..0000000 --- a/netcdf-4.0.0-gcc4.3-cstring.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -urN netcdf-4.0-beta2-ORIG/examples/CXX4/sfc_pres_temp_rd.cpp netcdf-4.0-beta2/examples/CXX4/sfc_pres_temp_rd.cpp ---- netcdf-4.0-beta2-ORIG/examples/CXX4/sfc_pres_temp_rd.cpp 2007-07-29 20:18:22.000000000 -0400 -+++ netcdf-4.0-beta2/examples/CXX4/sfc_pres_temp_rd.cpp 2008-05-08 00:30:54.000000000 -0400 -@@ -17,6 +17,7 @@ - */ - - #include -+#include - #include - - using namespace std; diff --git a/netcdf-4.1-beta2-pkgconfig.patch b/netcdf-4.1-beta2-pkgconfig.patch new file mode 100644 index 0000000..5d89306 --- /dev/null +++ b/netcdf-4.1-beta2-pkgconfig.patch @@ -0,0 +1,33 @@ +--- netcdf-4.1-beta2-snapshot2009102000/nc-config.in.pkgconfig 2009-09-24 12:42:06.000000000 -0600 ++++ netcdf-4.1-beta2-snapshot2009102000/nc-config.in 2009-10-24 13:22:26.588585310 -0600 +@@ -8,7 +8,6 @@ + + prefix=@prefix@ + exec_prefix=${prefix} +-libdir=${exec_prefix}/lib + includedir=${prefix}/include + + cc="@CC@" +@@ -16,8 +15,6 @@ + fc="@FC@" + cflags=" -I${includedir}" + fflags="@FFLAGS@ @MOD_FLAG@${includedir}" +-libs="-L${libdir} @NC_LIBS@" +-flibs="-L${libdir} @NC_FLIBS@" + has_dap="@HAS_DAP@" + has_nc2="@HAS_NC2@" + has_nc4="@HAS_NC4@" +@@ -134,11 +131,11 @@ + ;; + + --libs) +- echo $libs ++ pkg-config netcdf --libs + ;; + + --flibs) +- echo $flibs ++ pkg-config netcdf --flibs + ;; + + --has-dap) diff --git a/netcdf.spec b/netcdf.spec index 808d856..31962c5 100644 --- a/netcdf.spec +++ b/netcdf.spec @@ -1,22 +1,29 @@ Name: netcdf -Version: 4.0.1 -Release: 2%{?dist} +Version: 4.1.0 +Release: 0.1.2009111008%{?dist} Summary: Libraries for the Unidata network Common Data Form Group: Applications/Engineering License: NetCDF -URL: http://my.unidata.ucar.edu/content/software/netcdf/index.html -Source0: ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-%{version}.tar.gz -Patch0: netcdf-4.0.0-gcc4.3-cstring.patch +URL: http://www.unidata.ucar.edu/software/netcdf/ +#Source0: ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-%{version}.tar.gz +Source0: ftp://ftp.unidata.ucar.edu/pub/netcdf/snapshot/netcdf-4-daily.tar.gz +#Remove extraneous @FLIBS@ from netcdf.pc. Was reported on mailling list +Patch2: netcdf-4.1-beta2-pkgconfig.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gcc-gfortran, gawk +BuildRequires: hdf-devel BuildRequires: hdf5-devel +BuildRequires: libcurl-devel +BuildRequires: zlib-devel +BuildRequires: valgrind %package devel Summary: Development files for netcdf Group: Development/Libraries Requires: %{name} = %{version}-%{release} +Requires: gcc-gfortran%{_isa} Requires: pkgconfig %package static @@ -63,20 +70,32 @@ man pages. %description static This package contains the netCDF static libs. + %prep -%setup -q -%patch0 -p1 +%setup -q -n netcdf-4.1-snapshot2009111008 +%patch2 -p1 -b .pkgconfig + %build +export F77="gfortran" export FC="gfortran" -export F90="gfortran" -export CPPFLAGS="-fPIC" -export FFLAGS="-fPIC ${RPM_OPT_FLAGS}" -export F90FLAGS="$FFLAGS" +export FFLAGS="${RPM_OPT_FLAGS}" export FCFLAGS="$FFLAGS" -%configure --enable-shared -# parallel build is broken, .mod file hasn't right deps %%{?_smp_mflags} -make +%configure CPPFLAGS=-I%{_includedir}/hdf \ + LDFLAGS=-L%{_libdir}/hdf \ + --enable-shared \ + --enable-netcdf-4 \ + --enable-dap \ + --enable-hdf4 \ + --enable-ncgen4 \ + --enable-extra-example-tests \ + --enable-valgrind-tests \ + --disable-dap-remote-tests +# This goes into the wrong place now +# --enable-docs-install \ + +make #%{?_smp_mflags} + %install make install DESTDIR=${RPM_BUILD_ROOT} @@ -89,6 +108,7 @@ mkdir -p ${RPM_BUILD_ROOT}%{_fmoddir} /bin/rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.la /bin/rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir + %check make check @@ -96,6 +116,7 @@ make check %clean rm -rf ${RPM_BUILD_ROOT} + %post /sbin/ldconfig /sbin/install-info %{_infodir}/netcdf.info \ @@ -108,6 +129,7 @@ if [ "$1" = 0 ]; then %{_infodir}/dir 2>/dev/null || : fi + %files %defattr(-,root,root,-) %doc COPYRIGHT README @@ -130,6 +152,10 @@ fi %changelog +* Wed Nov 11 2009 Orion Poplawski - 4.1.0-0.1.2009111008 +- Update to 4.1.0 beta 2 snapshot +- Enable: netcdf-4, dap, hdf4, ncgen4, a lot more tests + * Sat Jul 25 2009 Fedora Release Engineering - 4.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild diff --git a/sources b/sources index 08c9a41..b0da90f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -a251453c5477599f050fa4e593295186 netcdf-4.0.1.tar.gz +8455dcb7716fefc28eb6d219e4c1f9ce netcdf-4-daily.tar.gz