diff options
author | CoprDistGit <infra@openeuler.org> | 2025-08-06 12:31:55 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-08-06 12:31:55 +0000 |
commit | 1d5b8368b17086e6d579d58684945e6eb6e6ff4c (patch) | |
tree | e38b18dbb79e975196ace5c5944265c09316bfca | |
parent | eebbbeaf595590039c75f3dd0d57e95f1693eb18 (diff) |
automatic import of netcdf-cxxopeneuler25.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | netcdf-cxx.spec | 79 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 81 insertions, 0 deletions
@@ -0,0 +1 @@ +/netcdf-cxx-4.2.tar.gz diff --git a/netcdf-cxx.spec b/netcdf-cxx.spec new file mode 100644 index 0000000..617bafd --- /dev/null +++ b/netcdf-cxx.spec @@ -0,0 +1,79 @@ +Name: netcdf-cxx +Version: 4.2 +Release: 1 +Summary: Legacy netCDF C++ library + +License: NetCDF +URL: http://www.unidata.ucar.edu/software/netcdf/ +Source0: ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-cxx-%{version}.tar.gz + +BuildRequires: make +BuildRequires: gcc-c++ +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 +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: netcdf-devel%{?_isa} + +%description devel +This package contains the legacy netCDF C++ library header files and shared +devel library. + + +%package static +Summary: Static libraries for legacy netCDF C++ library +Requires: %{name}-devel%{?_isa} = %{version}-%{release} + +%description static +This package contains the netCDF static libraries. + + +%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 + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%doc COPYRIGHT cxx/README +%{_libdir}/libnetcdf_c++.so.* + +%files devel +%doc examples man4/%{name}.pdf +%{_includedir}/ncvalues.h +%{_includedir}/netcdf.hh +%{_includedir}/netcdfcpp.h +%{_libdir}/libnetcdf_c++.so +%{_infodir}/%{name}.info* + +%files static +%{_libdir}/libnetcdf_c++.a + + +%changelog +* Thu Mar 24 2022 tanyulong <tanyulong@kylinos.cn> - 4.2-1 +- init package for openEuler @@ -0,0 +1 @@ +d32b20c00f144ae6565d9e98d9f6204c netcdf-cxx-4.2.tar.gz |