From 26810624504b164468e99928c1431f44ec369bf5 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Mon, 19 Apr 2010 17:47:36 +0000 Subject: [PATCH] - Explicitly link libnetcdf.so against -lhdf5_hl -lhdf5 --- netcdf-4.1.1-hdf5.patch | 12 ++++++++++++ netcdf.spec | 8 +++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 netcdf-4.1.1-hdf5.patch diff --git a/netcdf-4.1.1-hdf5.patch b/netcdf-4.1.1-hdf5.patch new file mode 100644 index 0000000..c325d10 --- /dev/null +++ b/netcdf-4.1.1-hdf5.patch @@ -0,0 +1,12 @@ +diff -up netcdf-4.1.1/libsrc4/Makefile.in.hdf5 netcdf-4.1.1/libsrc4/Makefile.in +--- netcdf-4.1.1/libsrc4/Makefile.in.hdf5 2010-04-19 09:44:45.333650779 -0600 ++++ netcdf-4.1.1/libsrc4/Makefile.in 2010-04-19 09:44:45.338649501 -0600 +@@ -886,7 +886,7 @@ clean-libLTLIBRARIES: + rm -f "$${dir}/so_locations"; \ + done + libnetcdf.la: $(libnetcdf_la_OBJECTS) $(libnetcdf_la_DEPENDENCIES) +- $(libnetcdf_la_LINK) $(libnetcdf_la_OBJECTS) $(libnetcdf_la_LIBADD) $(LIBS) ++ $(libnetcdf_la_LINK) $(libnetcdf_la_OBJECTS) $(libnetcdf_la_LIBADD) -lhdf5_hl -lhdf5 $(LIBS) + + clean-checkPROGRAMS: + @list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \ diff --git a/netcdf.spec b/netcdf.spec index 389dc79..3a83cc5 100644 --- a/netcdf.spec +++ b/netcdf.spec @@ -1,6 +1,6 @@ Name: netcdf Version: 4.1.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Libraries for the Unidata network Common Data Form Group: Applications/Engineering @@ -10,6 +10,8 @@ Source0: http://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-4.1.1.ta #Use pkgconfig in nc-config to avoid multi-lib issues Patch0: netcdf-4.1-beta2-pkgconfig.patch Patch1: netcdf-4.1.1-fflags.patch +#Explicitly link libnetcdf.so agains -lhdf5_hl -lhdf5, reported upstream +Patch2: netcdf-4.1.1-hdf5.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gcc-gfortran, gawk @@ -76,6 +78,7 @@ This package contains the netCDF static libs. %setup -q %patch0 -p1 -b .pkgconfig %patch1 -p1 -b .fflags +%patch2 -p1 -b .hdf5 %build @@ -158,6 +161,9 @@ fi %changelog +* Mon Apr 19 2010 Orion Poplawski - 4.1.1-3 +- Explicitly link libnetcdf.so against -lhdf5_hl -lhdf5 + * Fri Apr 9 2010 Orion Poplawski - 4.1.1-2 - Add patch to cleanup nc-config --fflags