Name: netcdf-cxx Version: 4.2 Release: 2%{?dist} Summary: Legacy netCDF C++ library Group: Applications/Engineering License: NetCDF URL: http://www.unidata.ucar.edu/software/netcdf/ Source0: ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-cxx-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: netcdf-devel %description Legacy netCDF C++ library. This library is provided for backward compatibility only. New C++ development should be done with the netCDF CXX4 C++ library. %package devel Summary: Development files legacy netCDF C++ library Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package contains the legacy netCDF C++ library header files and shared devel library. %package static Summary: Static libs for legacy netCDF C++ library Group: Development/Libraries Requires: %{name}-devel%{?_isa} = %{version}-%{release} %description static This package contains the netCDF static libs. %prep %setup -q %build %configure make %{?_smp_mflags} %install make install DESTDIR=${RPM_BUILD_ROOT} /bin/rm ${RPM_BUILD_ROOT}%{_libdir}/*.la /bin/rm ${RPM_BUILD_ROOT}%{_infodir}/dir %check make check %clean rm -rf ${RPM_BUILD_ROOT} %post /sbin/ldconfig /sbin/install-info %{_infodir}/%{name}.info \ %{_infodir}/dir 2>/dev/null || : %postun /sbin/ldconfig if [ "$1" = 0 ]; then /sbin/install-info --delete %{_infodir}/%{name}.info \ %{_infodir}/dir 2>/dev/null || : fi %files %defattr(-,root,root,-) %doc COPYRIGHT cxx/README %{_libdir}/libnetcdf_c++.so.* %{_infodir}/%{name}.info* %files devel %defattr(-,root,root,-) %{_includedir}/ncvalues.h %{_includedir}/netcdf.hh %{_includedir}/netcdfcpp.h %{_libdir}/libnetcdf_c++.so %files static %defattr(-,root,root,-) %{_libdir}/libnetcdf_c++.a %changelog * Mon Oct 3 2011 Orion Poplawski - 4.2-2 - Use %%{?_isa} in Requires - Change -static to require the -devel package * Fri Sep 30 2011 Orion Poplawski - 4.2-1 - Initial package