- Update to 4.0.1

- Fix up URL and Source urls
- Re-enable parallel builds
- Add pkgconfig file
- Add more tests to make check
This commit is contained in:
Orion Poplawski 2009-09-28 17:00:55 +00:00
parent 0f26d07c82
commit 4e474b3990
2 changed files with 40 additions and 25 deletions

View File

@ -1,17 +1,18 @@
Name: netcdf Name: netcdf
Version: 4.0.0 Version: 4.0.1
Release: 2%{?dist} Release: 1%{?dist}
Summary: Libraries for the Unidata network Common Data Form Summary: Libraries for the Unidata network Common Data Form
Group: Applications/Engineering Group: Applications/Engineering
License: NetCDF License: NetCDF
URL: http://my.unidata.ucar.edu/content/software/netcdf/index.html URL: http://www.unidata.ucar.edu/software/netcdf/
Source0: ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.0.tar.gz Source0: ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-%{version}.tar.gz
Patch0: netcdf-4.0.0-gcc4.3-cstring.patch Patch0: netcdf-4.0.0-gcc4.3-cstring.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gcc-gfortran, gawk BuildRequires: gcc-gfortran, gawk
BuildRequires: hdf5-devel BuildRequires: hdf5-devel
BuildRequires: valgrind
%package devel %package devel
Summary: Development files for netcdf Summary: Development files for netcdf
@ -62,20 +63,23 @@ man pages.
%description static %description static
This package contains the netCDF static libs. This package contains the netCDF static libs.
%prep %prep
%setup -q -n netcdf-4.0 %setup -q
%patch0 -p1 %patch0 -p1
%build %build
export FC="gfortran"
export F90="gfortran"
export CPPFLAGS="-fPIC"
export FFLAGS="-fPIC ${RPM_OPT_FLAGS}" export FFLAGS="-fPIC ${RPM_OPT_FLAGS}"
export F90FLAGS="$FFLAGS"
export FCFLAGS="$FFLAGS" export FCFLAGS="$FFLAGS"
%configure --enable-shared %configure CPPFLAGS=-I%{_includedir}/hdf \
LDFLAGS=-L%{_libdir}/hdf \
--enable-shared \
--enable-extra-example-tests \
--enable-valgrind-tests \
# parallel build is broken, .mod file hasn't right deps %%{?_smp_mflags} # parallel build is broken, .mod file hasn't right deps %%{?_smp_mflags}
make make %{?_smp_mflags}
%install %install
make install DESTDIR=${RPM_BUILD_ROOT} make install DESTDIR=${RPM_BUILD_ROOT}
@ -88,6 +92,7 @@ mkdir -p ${RPM_BUILD_ROOT}%{_fmoddir}
/bin/rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.la /bin/rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.la
/bin/rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir /bin/rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
%check %check
make check make check
@ -95,6 +100,7 @@ make check
%clean %clean
rm -rf ${RPM_BUILD_ROOT} rm -rf ${RPM_BUILD_ROOT}
%post %post
/sbin/ldconfig /sbin/ldconfig
/sbin/install-info %{_infodir}/netcdf.info \ /sbin/install-info %{_infodir}/netcdf.info \
@ -107,6 +113,7 @@ if [ "$1" = 0 ]; then
%{_infodir}/dir 2>/dev/null || : %{_infodir}/dir 2>/dev/null || :
fi fi
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc COPYRIGHT README %doc COPYRIGHT README
@ -120,6 +127,7 @@ fi
%{_includedir}/netcdf %{_includedir}/netcdf
%{_fmoddir}/*.mod %{_fmoddir}/*.mod
%{_libdir}/*.so %{_libdir}/*.so
%{_libdir}/pkgconfig/netcdf.pc
%{_mandir}/man3/* %{_mandir}/man3/*
%files static %files static
@ -128,6 +136,13 @@ fi
%changelog %changelog
* Mon Sep 28 2009 Orion Poplawski <orion@cora.nwra.com> - 4.0.1-1
- Update to 4.0.1
- Fix up URL and Source urls
- Re-enable parallel builds
- Add pkgconfig file
- Add more tests to make check
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.0-2 * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

View File

@ -1 +1 @@
afc057b07b6e6843556dcfbc4ced402c netcdf-4.0.tar.gz a251453c5477599f050fa4e593295186 netcdf-4.0.1.tar.gz