- 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
Version: 4.0.0
Release: 2%{?dist}
Version: 4.0.1
Release: 1%{?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-4.0.tar.gz
URL: http://www.unidata.ucar.edu/software/netcdf/
Source0: ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-%{version}.tar.gz
Patch0: netcdf-4.0.0-gcc4.3-cstring.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gcc-gfortran, gawk
BuildRequires: hdf5-devel
BuildRequires: valgrind
%package devel
Summary: Development files for netcdf
@ -62,20 +63,23 @@ man pages.
%description static
This package contains the netCDF static libs.
%prep
%setup -q -n netcdf-4.0
%setup -q
%patch0 -p1
%build
export FC="gfortran"
export F90="gfortran"
export CPPFLAGS="-fPIC"
export FFLAGS="-fPIC ${RPM_OPT_FLAGS}"
export F90FLAGS="$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}
make
make %{?_smp_mflags}
%install
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}%{_infodir}/dir
%check
make check
@ -95,6 +100,7 @@ make check
%clean
rm -rf ${RPM_BUILD_ROOT}
%post
/sbin/ldconfig
/sbin/install-info %{_infodir}/netcdf.info \
@ -107,6 +113,7 @@ if [ "$1" = 0 ]; then
%{_infodir}/dir 2>/dev/null || :
fi
%files
%defattr(-,root,root,-)
%doc COPYRIGHT README
@ -120,6 +127,7 @@ fi
%{_includedir}/netcdf
%{_fmoddir}/*.mod
%{_libdir}/*.so
%{_libdir}/pkgconfig/netcdf.pc
%{_mandir}/man3/*
%files static
@ -128,6 +136,13 @@ fi
%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
- 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