[nco/f14] Define ENABLE_NETCDF4 and HAVE_NETCDF4_H, --enable-netcdf4 does not work

Orion Poplawski orion at fedoraproject.org
Thu Jun 23 15:38:44 UTC 2011


commit 70b91296eb2149511dc54c75ae140669f816eadb
Author: Orion Poplawski <orion at cora.nwra.com>
Date:   Thu Jun 23 09:38:07 2011 -0600

    Define ENABLE_NETCDF4 and HAVE_NETCDF4_H, --enable-netcdf4 does not work

 nco.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/nco.spec b/nco.spec
index f450a42..e6aa27a 100644
--- a/nco.spec
+++ b/nco.spec
@@ -1,6 +1,6 @@
 Name:           nco
 Version:        4.0.8
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Suite of programs for manipulating NetCDF/HDF4 files
 Group:          Applications/Engineering
 License:        GPLv3
@@ -70,7 +70,7 @@ This package contains the NCO static libs.
 %if 0%{?rhel} && 0%{?rhel} <= 5
 export CPPFLAGS="-I%{_includedir}/netcdf-3 -I%{_includedir}/udunits2"
 %else
-export CPPFLAGS="-I%{_includedir}/udunits2"
+export CPPFLAGS="-I%{_includedir}/udunits2 -DENABLE_NETCDF4 -DHAVE_NETCDF4_H"
 %endif
 export CFLAGS="$RPM_OPT_FLAGS -fPIC"
 export CXXFLAGS="$RPM_OPT_FLAGS -fpermissive -fPIC"
@@ -133,6 +133,9 @@ fi
 %{_libdir}/libnco*.a
 
 %changelog
+* Thu Jun 23 2011 - Orion Poplawski <orion at cora.nwra.com> - 4.0.8-2
+- Really enable netcdf4 support
+
 * Tue May 17 2011 - Orion Poplawski <orion at cora.nwra.com> - 4.0.8-1
 - Update to 4.0.8
 


More information about the scm-commits mailing list