%define major 4 %define libname %mklibname netcdf_c++ %{major} %define develname %mklibname -d netcdf_c++ Summary: Libraries to use the Unidata network Common Data Form (netCDF) Name: netcdf-cxx Version: 4.2 Release: %mkrel 7 Group: Development/C++ License: NetCDF URL: http://www.unidata.ucar.edu/packages/netcdf/index.html Source0: http://www.unidata.ucar.edu/downloads/netcdf/ftp/%{name}-%{version}.tar.gz BuildRequires: netcdf-devel BuildRequires: valgrind BuildRequires: texinfo BuildRequires: tetex-latex BuildRequires: groff %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 -n %{libname} Summary: C++ libraries for netcdf Group: System/Libraries %description -n %{libname} This package contains the netCDF C++ libraries. %package -n %{develname} Summary: Development files for netcdf-c++ Group: Development/C++ Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Conflicts: %{_lib}netcdf-devel < 4.2.1.1 %description -n %{develname} This package contains the netCDF-c++ header files, shared devel libs, and man pages. %prep %setup -q %build %configure2_5x --enable-shared --disable-static %make %check make check %install %makeinstall_std rm -f %{buildroot}%{_libdir}/*.la %files -n %{libname} %{_libdir}/libnetcdf_c++.so.%{major}{,.*} %files -n %{develname} %{_includedir}/*.hh %{_includedir}/*.h %{_infodir}/* %{_libdir}/libnetcdf_c++.so %changelog * Wed Feb 03 2016 umeabot <umeabot> 4.2-7.mga6 + Revision: 933058 - Mageia 6 Mass Rebuild * Wed Oct 15 2014 umeabot <umeabot> 4.2-6.mga5 + Revision: 745091 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 4.2-5.mga5 + Revision: 682846 - Mageia 5 Mass Rebuild * Fri Oct 18 2013 umeabot <umeabot> 4.2-4.mga5 + Revision: 508285 - Mageia 4 Mass Rebuild - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Fri Oct 12 2012 fwang <fwang> 4.2-2.mga3 + Revision: 305124 - update file list - imported package netcdf-cxx