Summary: Libraries for the Unidata network Common Data Form Name: netcdf Version: 4.2.1.1 Release: 2%{?_dist_release} Source0: http://www.unidata.ucar.edu/downloads/%{name}/ftp/%{name}-%{version}.tar.gz Group: Applications/Engineering License: NetCDF URL: http://www.unidata.ucar.edu/downloads/netcdf/index.jsp BuildRoot: %{_tmppath}/%{name}-%{version}-root #BuildRequires: gcc-g77 BuildRequires: gcc-gfortran BuildRequires: zlib-devel BuildRequires: hdf5-devel BuildRequires: curl-devel %description 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 Program Center in Boulder, Colorado. NetCDF data is: 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. %package devel Summary: Development files for netcdf Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel This package contains the netCDF header files, libs, and man pages. %prep %setup -q -n %{name}-%{version} %build #cd src %configure \ --enable-shared \ --disable-static \ --enable-netcdf-4 \ --enable-dap %__make %install rm -rf ${RPM_BUILD_ROOT} mkdir ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%{_includedir}/netcdf mkdir -p ${RPM_BUILD_ROOT}%{_libdir} mkdir -p ${RPM_BUILD_ROOT}%{_datadir} mkdir -p ${RPM_BUILD_ROOT}%{_mandir} #cd src %makeinstall INCDIR=${RPM_BUILD_ROOT}%{_includedir}/netcdf \ LIBDIR=${RPM_BUILD_ROOT}%{_libdir} \ MANDIR=${RPM_BUILD_ROOT}%{_mandir} find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; %clean rm -rf ${RPM_BUILD_ROOT} %post -p /sbin/ldconfig %preun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc COPYRIGHT README %{_bindir}/* %{_libdir}/*.so.* %{_mandir}/man1/* %files devel %defattr(-,root,root,-) %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/* %{_mandir}/man3/* %changelog * Sun May 12 2013 Yoji TOYODA 4.2.1.1-2 - add configure options (--enable-netcdf-4, --enable-dap) - add BuildRequires: curl-devel * Sun Oct 28 2012 Yoji TOYODA 4.2.1.1-1 - update to 4.2.1.1 - add BuildRequires: zlib-devel, hdf5-devel * Mon Jan 11 2010 Yoji TOYODA 4.0.1-1 - new upstream release * Sun Oct 5 2008 Ryoichi INAGAKI 3.6.0.p1-1 - new versioning policy * Sat Aug 25 2007 Shu KONNO 3.6.0.p1-0vl2 - changed BuildRequires gcc-g77 to gcc-gfortran * Fri Oct 21 2005 Daisuke SUZUKI 3.6.0.p1-0vl1 - initial build for Vine Linux