2005-01-14 09:50:49 +00:00
|
|
|
Name: netcdf
|
2009-09-28 17:00:55 +00:00
|
|
|
Version: 4.0.1
|
|
|
|
Release: 1%{?dist}
|
2008-05-08 04:55:48 +00:00
|
|
|
Summary: Libraries for the Unidata network Common Data Form
|
2005-01-14 09:50:49 +00:00
|
|
|
|
|
|
|
Group: Applications/Engineering
|
|
|
|
License: NetCDF
|
2009-09-28 17:00:55 +00:00
|
|
|
URL: http://www.unidata.ucar.edu/software/netcdf/
|
|
|
|
Source0: ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-%{version}.tar.gz
|
2008-09-03 20:57:47 +00:00
|
|
|
Patch0: netcdf-4.0.0-gcc4.3-cstring.patch
|
2005-01-14 09:50:49 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2007-08-25 20:32:49 +00:00
|
|
|
BuildRequires: gcc-gfortran, gawk
|
2008-05-08 04:55:48 +00:00
|
|
|
BuildRequires: hdf5-devel
|
2009-09-28 17:00:55 +00:00
|
|
|
BuildRequires: valgrind
|
2005-01-14 09:50:49 +00:00
|
|
|
|
2005-01-14 09:52:44 +00:00
|
|
|
%package devel
|
2008-05-08 04:55:48 +00:00
|
|
|
Summary: Development files for netcdf
|
2005-01-14 09:52:44 +00:00
|
|
|
Group: Development/Libraries
|
2005-05-05 20:20:57 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2009-10-27 18:02:01 +00:00
|
|
|
Requires: gcc-gfortran%{_isa}
|
|
|
|
Requires: pkgconfig
|
|
|
|
|
2005-01-14 09:50:49 +00:00
|
|
|
|
2007-03-18 19:20:16 +00:00
|
|
|
%package static
|
2008-05-08 04:55:48 +00:00
|
|
|
Summary: Static libs for netcdf
|
2007-03-18 19:20:16 +00:00
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
2005-01-14 09:50:49 +00:00
|
|
|
%description
|
2008-05-08 04:55:48 +00:00
|
|
|
|
2009-09-28 17:00:55 +00:00
|
|
|
NetCDF (network Common Data Form) is an interface for array-oriented
|
|
|
|
data access and a freely-distributed collection of software libraries
|
|
|
|
for C, Fortran, C++, and perl that provides an implementation of the
|
|
|
|
interface. The NetCDF library also defines a machine-independent
|
|
|
|
format for representing scientific data. Together, the interface,
|
|
|
|
library, and format support the creation, access, and sharing of
|
|
|
|
scientific data. The NetCDF software was developed at the Unidata
|
2008-05-08 04:55:48 +00:00
|
|
|
Program Center in Boulder, Colorado.
|
2005-01-14 09:50:49 +00:00
|
|
|
|
2009-09-28 17:00:55 +00:00
|
|
|
NetCDF data is:
|
2005-01-14 09:50:49 +00:00
|
|
|
|
|
|
|
o Self-Describing: A NetCDF file includes information about the
|
|
|
|
data it contains.
|
|
|
|
|
|
|
|
o Network-transparent: A NetCDF file is represented in a form that
|
|
|
|
can be accessed by computers with different ways of storing
|
|
|
|
integers, characters, and floating-point numbers.
|
|
|
|
|
|
|
|
o Direct-access: A small subset of a large dataset may be accessed
|
|
|
|
efficiently, without first reading through all the preceding
|
|
|
|
data.
|
|
|
|
|
|
|
|
o Appendable: Data can be appended to a NetCDF dataset along one
|
|
|
|
dimension without copying the dataset or redefining its
|
|
|
|
structure. The structure of a NetCDF dataset can be changed,
|
|
|
|
though this sometimes causes the dataset to be copied.
|
|
|
|
|
|
|
|
o Sharable: One writer and multiple readers may simultaneously
|
|
|
|
access the same NetCDF file.
|
|
|
|
|
2005-01-14 09:52:44 +00:00
|
|
|
%description devel
|
2009-09-28 17:00:55 +00:00
|
|
|
This package contains the netCDF header files, shared devel libs, and
|
2007-03-18 19:20:16 +00:00
|
|
|
man pages.
|
2005-01-14 09:52:44 +00:00
|
|
|
|
2007-03-18 19:20:16 +00:00
|
|
|
%description static
|
2008-05-08 04:55:48 +00:00
|
|
|
This package contains the netCDF static libs.
|
2005-01-14 09:50:49 +00:00
|
|
|
|
2009-09-28 17:00:55 +00:00
|
|
|
|
2005-01-14 09:50:49 +00:00
|
|
|
%prep
|
2009-09-28 17:00:55 +00:00
|
|
|
%setup -q
|
2008-05-08 04:55:48 +00:00
|
|
|
%patch0 -p1
|
2005-01-14 09:50:49 +00:00
|
|
|
|
2009-09-28 17:00:55 +00:00
|
|
|
|
2005-01-14 09:50:49 +00:00
|
|
|
%build
|
2009-10-27 18:02:01 +00:00
|
|
|
%configure --enable-shared \
|
2009-09-28 17:00:55 +00:00
|
|
|
--enable-extra-example-tests \
|
2009-10-27 18:02:01 +00:00
|
|
|
--enable-valgrind-tests
|
2008-05-18 15:50:41 +00:00
|
|
|
# parallel build is broken, .mod file hasn't right deps %%{?_smp_mflags}
|
2009-09-28 17:00:55 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
2005-01-14 09:50:49 +00:00
|
|
|
|
|
|
|
%install
|
2008-05-18 15:50:41 +00:00
|
|
|
make install DESTDIR=${RPM_BUILD_ROOT}
|
2008-05-08 04:55:48 +00:00
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_includedir}/netcdf
|
2008-05-18 15:50:41 +00:00
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_fmoddir}
|
2008-05-09 00:29:34 +00:00
|
|
|
/bin/mv ${RPM_BUILD_ROOT}%{_includedir}/*.mod \
|
2008-05-18 15:50:41 +00:00
|
|
|
${RPM_BUILD_ROOT}%{_fmoddir}
|
2007-03-18 19:20:16 +00:00
|
|
|
/bin/mv ${RPM_BUILD_ROOT}%{_includedir}/*.* \
|
2008-05-08 04:55:48 +00:00
|
|
|
${RPM_BUILD_ROOT}%{_includedir}/netcdf
|
2007-03-18 19:20:16 +00:00
|
|
|
/bin/rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.la
|
2008-05-08 04:55:48 +00:00
|
|
|
/bin/rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
|
|
|
|
|
2009-10-27 18:02:01 +00:00
|
|
|
#New with 4.0.1, and not multi-lib compatible
|
|
|
|
/bin/rm -f ${RPM_BUILD_ROOT}%{_bindir}/nc-config
|
|
|
|
|
2009-09-28 17:00:55 +00:00
|
|
|
|
2007-05-21 18:12:31 +00:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
2005-01-14 09:50:49 +00:00
|
|
|
%clean
|
2005-05-05 20:20:57 +00:00
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
2005-01-14 09:50:49 +00:00
|
|
|
|
2009-09-28 17:00:55 +00:00
|
|
|
|
2008-05-08 04:55:48 +00:00
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
2008-05-18 15:50:41 +00:00
|
|
|
/sbin/install-info %{_infodir}/netcdf.info \
|
2008-05-08 04:55:48 +00:00
|
|
|
%{_infodir}/dir 2>/dev/null || :
|
2007-03-18 19:20:16 +00:00
|
|
|
|
2008-05-08 04:55:48 +00:00
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
if [ "$1" = 0 ]; then
|
2008-05-18 15:50:41 +00:00
|
|
|
/sbin/install-info --delete %{_infodir}/netcdf.info \
|
2008-05-08 04:55:48 +00:00
|
|
|
%{_infodir}/dir 2>/dev/null || :
|
|
|
|
fi
|
2005-01-14 09:50:49 +00:00
|
|
|
|
2009-09-28 17:00:55 +00:00
|
|
|
|
2005-01-14 09:50:49 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2007-03-18 19:20:16 +00:00
|
|
|
%doc COPYRIGHT README
|
2009-10-27 18:02:01 +00:00
|
|
|
%{_bindir}/ncdump
|
|
|
|
%{_bindir}/ncgen
|
2007-03-18 19:20:16 +00:00
|
|
|
%{_libdir}/*.so.*
|
2005-01-14 09:52:44 +00:00
|
|
|
%{_mandir}/man1/*
|
2008-05-08 04:55:48 +00:00
|
|
|
%{_infodir}/*
|
2005-01-14 09:52:44 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2008-05-08 04:55:48 +00:00
|
|
|
%{_includedir}/netcdf
|
2008-05-18 15:50:41 +00:00
|
|
|
%{_fmoddir}/*.mod
|
2007-03-18 19:20:16 +00:00
|
|
|
%{_libdir}/*.so
|
2009-09-28 17:00:55 +00:00
|
|
|
%{_libdir}/pkgconfig/netcdf.pc
|
2005-01-14 09:52:44 +00:00
|
|
|
%{_mandir}/man3/*
|
2005-01-14 09:50:49 +00:00
|
|
|
|
2007-03-18 19:20:16 +00:00
|
|
|
%files static
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_libdir}/*.a
|
|
|
|
|
2005-01-14 09:50:49 +00:00
|
|
|
|
|
|
|
%changelog
|
2009-10-27 18:02:01 +00:00
|
|
|
* Tue Oct 27 2009 Orion Poplawski <orion@cora.nwra.com> - 4.0.1-2
|
|
|
|
- Don't ship multi-lib incompatible nc-config
|
|
|
|
- Require gcc-gfortran for -devel (bug #483469)
|
|
|
|
|
2009-09-28 17:00:55 +00:00
|
|
|
* 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
|
|
|
|
|
2009-02-26 05:06:01 +00:00
|
|
|
* 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
|
|
|
|
|
2008-09-03 20:57:47 +00:00
|
|
|
* Wed Sep 3 2008 Orion Poplawski <orion@cora.nwra.com> - 4.0.0-1
|
|
|
|
- Update to 4.0 final
|
2008-09-03 20:58:16 +00:00
|
|
|
- Drop netcdf-3 symlink (bug #447158)
|
2008-09-03 20:57:47 +00:00
|
|
|
- Update cstring patch, partially upstreamed
|
|
|
|
|
2008-05-29 12:51:18 +00:00
|
|
|
* Thu May 29 2008 Balint Cristian <rezso@rdsor.ro> - 4.0.0-0.6.beta2
|
|
|
|
- fix symlink to netcdf-3
|
|
|
|
|
2008-05-18 15:50:41 +00:00
|
|
|
* Sun May 18 2008 Patrice Dumas <pertusus@free.fr> - 4.0.0-0.5.beta2
|
|
|
|
- use %%{_fmoddir}
|
|
|
|
- don't use %%makeinstall
|
|
|
|
|
2008-05-15 12:31:35 +00:00
|
|
|
* Thu May 15 2008 Balint Cristian <rezso@rdsor.ro> - 4.0.0-0.4.beta2
|
|
|
|
- re-enable ppc64 since hdf5 is now present for ppc64
|
|
|
|
|
2008-05-09 00:29:34 +00:00
|
|
|
* Thu May 8 2008 Ed Hill <ed@eh3.com> - 4.0.0-0.3.beta2
|
|
|
|
- make package compliant with bz # 373861
|
|
|
|
|
|
|
|
* Thu May 8 2008 Ed Hill <ed@eh3.com> - 4.0.0-0.2.beta2
|
2008-05-08 05:15:58 +00:00
|
|
|
- ExcludeArch: ppc64 since it doesn't (for now) have hdf5
|
|
|
|
|
2008-05-08 04:55:48 +00:00
|
|
|
* Wed May 7 2008 Ed Hill <ed@eh3.com> - 4.0.0-0.1.beta2
|
|
|
|
- try out upstream 4.0.0-beta2
|
|
|
|
|
2008-04-02 19:50:36 +00:00
|
|
|
* Wed Apr 2 2008 Orion Poplawski <orion@cora.nwra.com> - 3.6.2-7
|
|
|
|
- Change patch to include <cstring>
|
2008-04-02 20:02:07 +00:00
|
|
|
- Remove %%{?_smp_mflags} - not parallel build safe (fortran modules)
|
2008-04-02 19:50:36 +00:00
|
|
|
|
2008-02-21 03:00:59 +00:00
|
|
|
* Wed Feb 20 2008 Ed Hill <ed@eh3.com> - 3.6.2-6
|
|
|
|
- add patch that (hopefully?) allows the GCC 4.3 build to proceed
|
|
|
|
|
2008-02-19 02:23:35 +00:00
|
|
|
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.6.2-5
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2007-08-25 20:32:49 +00:00
|
|
|
* Sat Aug 25 2007 Ed Hill <ed@eh3.com> - 3.6.2-4
|
|
|
|
- add BR: gawk
|
|
|
|
|
2007-08-25 19:50:07 +00:00
|
|
|
* Sat Aug 25 2007 Ed Hill <ed@eh3.com> - 3.6.2-3
|
|
|
|
- rebuild for BuildID
|
|
|
|
|
2007-05-21 18:12:31 +00:00
|
|
|
* Mon May 21 2007 Orion Poplawski <orion@cora.nwra.com> - 3.6.2-2
|
|
|
|
- Run checks
|
|
|
|
|
2007-03-18 19:20:16 +00:00
|
|
|
* Sat Mar 17 2007 Ed Hill <ed@eh3.com> - 3.6.2-1
|
|
|
|
- 3.6.2 has a new build system supporting shared libs
|
|
|
|
|
2006-09-02 16:12:55 +00:00
|
|
|
* Sat Sep 2 2006 Ed Hill <ed@eh3.com> - 3.6.1-4
|
|
|
|
- switch to compat-gcc-34-g77 instead of compat-gcc-32-g77
|
|
|
|
|
2006-09-02 15:46:37 +00:00
|
|
|
* Sat Sep 2 2006 Ed Hill <ed@eh3.com> - 3.6.1-3
|
|
|
|
- rebuild for imminent FC-6 release
|
|
|
|
|
2006-05-11 20:21:22 +00:00
|
|
|
* Thu May 11 2006 Ed Hill <ed@eh3.com> - 3.6.1-2
|
|
|
|
- add missing BuildRequires for the g77 interface
|
|
|
|
|
2006-04-22 02:32:57 +00:00
|
|
|
* Fri Apr 21 2006 Ed Hill <ed@eh3.com> - 3.6.1-1
|
|
|
|
- update to upstream 3.6.1
|
|
|
|
|
2006-02-17 02:45:55 +00:00
|
|
|
* Thu Feb 16 2006 Ed Hill <ed@eh3.com> - 3.6.0-10.p1
|
|
|
|
- rebuild for new GCC
|
|
|
|
|
2005-12-22 18:49:04 +00:00
|
|
|
* Thu Dec 22 2005 Orion Poplawski <orion@cora.nwra.com> - 3.6.0-9.p1
|
|
|
|
- rebuild for gcc4.1
|
|
|
|
|
2005-10-16 06:11:56 +00:00
|
|
|
* Sun Oct 16 2005 Ed Hill <ed@eh3.com> - 3.6.0-8.p1
|
2009-09-28 17:00:55 +00:00
|
|
|
- building the library twice (once each for g77 and gfortran)
|
2005-10-16 06:11:56 +00:00
|
|
|
fixes an annoying problem for people who need both compilers
|
|
|
|
|
2005-09-29 18:15:30 +00:00
|
|
|
* Fri Sep 29 2005 Ed Hill <ed@eh3.com> - 3.6.0-7.p1
|
|
|
|
- add FFLAGS="-fPIC"
|
|
|
|
|
2005-06-13 18:41:13 +00:00
|
|
|
* Fri Jun 13 2005 Ed Hill <ed@eh3.com> - 3.6.0-6.p1
|
|
|
|
- rebuild
|
|
|
|
|
2005-06-03 16:21:21 +00:00
|
|
|
* Fri Jun 3 2005 Ed Hill <ed@eh3.com> - 3.6.0-5.p1
|
|
|
|
- bump for the build system
|
|
|
|
|
2005-05-09 20:35:09 +00:00
|
|
|
* Mon May 9 2005 Ed Hill <ed@eh3.com> - 3.6.0-4.p1
|
|
|
|
- remove hard-coded dist/fedora macros
|
|
|
|
|
2005-05-05 20:20:57 +00:00
|
|
|
* Wed May 5 2005 Ed Hill <ed@eh3.com> - 3.6.0-3.p1
|
|
|
|
- make netcdf-devel require netcdf (bug #156748)
|
|
|
|
- cleanup environment and paths
|
|
|
|
|
2005-04-06 03:33:33 +00:00
|
|
|
* Tue Apr 5 2005 Ed Hill <ed@eh3.com> - 0:3.6.0-2.p1
|
|
|
|
- update for gcc-gfortran
|
|
|
|
- fix file permissions
|
|
|
|
|
|
|
|
* Sat Mar 5 2005 Ed Hill <ed@eh3.com> - 0:3.6.0-1.p1
|
|
|
|
- update for 3.6.0-p1 large-files-bug fix and remove the Epoch
|
|
|
|
|
2005-01-14 09:52:44 +00:00
|
|
|
* Sun Dec 12 2004 Ed Hill <eh3@mit.edu> - 0:3.6.0-0.2.beta6
|
|
|
|
- fix naming scheme for pre-releases (per Michael Schwendt)
|
|
|
|
|
|
|
|
* Sat Dec 11 2004 Ed Hill <eh3@mit.edu> - 0:3.6.0beta6-0.fdr.2
|
|
|
|
- For Fortran, use only g77 (ignore gfortran, even if its installed)
|
|
|
|
|
|
|
|
* Tue Dec 7 2004 Ed Hill <eh3@mit.edu> - 0:3.6.0beta6-0.fdr.1
|
|
|
|
- remove "BuildRequires: gcc4-gfortran"
|
|
|
|
|
|
|
|
* Sat Dec 4 2004 Ed Hill <eh3@mit.edu> - 0:3.6.0beta6-0.fdr.0
|
|
|
|
- upgrade to 3.6.0beta6
|
2009-09-28 17:00:55 +00:00
|
|
|
- create separate devel package that does *not* depend upon
|
|
|
|
the non-devel package and put the headers/libs in "netcdf-3"
|
2005-01-14 09:52:44 +00:00
|
|
|
subdirs for easy co-existance with upcoming netcdf-4
|
|
|
|
|
|
|
|
* Thu Dec 2 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.12
|
2008-05-18 15:50:41 +00:00
|
|
|
- remove unneeded %%configure flags
|
2005-01-14 09:52:44 +00:00
|
|
|
|
|
|
|
* Wed Dec 1 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.11
|
|
|
|
- headers in /usr/include/netcdf, libs in /usr/lib/netcdf
|
|
|
|
|
|
|
|
* Mon Oct 4 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.10
|
2009-09-28 17:00:55 +00:00
|
|
|
- Put headers in their own directory but leave the libraries in the
|
2008-05-18 15:50:41 +00:00
|
|
|
%%{_libdir} -- there are only two libs and the majority of other
|
2005-01-14 09:52:44 +00:00
|
|
|
"*-devel" packages follow this pattern
|
|
|
|
|
|
|
|
* Sun Oct 3 2004 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:3.5.1-0.fdr.9
|
|
|
|
- add patch to install lib and headers into own tree
|
|
|
|
|
2005-01-14 09:50:49 +00:00
|
|
|
* Sun Aug 1 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.8
|
|
|
|
- added -fPIC so x86_64 build works with nco package
|
|
|
|
|
|
|
|
* Fri Jul 30 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.7
|
|
|
|
- fix typo in the x86_64 build and now works on x86_64
|
|
|
|
|
|
|
|
* Thu Jul 15 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.6
|
|
|
|
- fix license
|
|
|
|
|
|
|
|
* Thu Jul 15 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.5
|
|
|
|
- fix (hopefully?) x86_64 /usr/lib64 handling
|
|
|
|
|
|
|
|
* Thu Jul 15 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.4
|
|
|
|
- replace paths with macros
|
|
|
|
|
|
|
|
* Thu Jul 15 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.3
|
|
|
|
- fix spelling
|
|
|
|
|
|
|
|
* Thu Jul 15 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.2
|
2008-05-18 15:50:41 +00:00
|
|
|
- removed "--prefix=/usr" from %%configure
|
2005-01-14 09:50:49 +00:00
|
|
|
|
|
|
|
* Wed Jul 14 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.1
|
|
|
|
- Remove unnecessary parts and cleanup for submission
|
|
|
|
|
|
|
|
* Wed Jul 14 2004 Ed Hill <eh3@mit.edu> - 0:3.5.1-0.fdr.0
|
|
|
|
- Initial RPM release.
|