blob: 617bafd47dd0d6d14f5a89692edb35f3eedfdc5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
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
|