|
@@ -1,40 +1,49 @@
|
|
-Summary: Libraries for the Unidata network Common Data Form
|
|
|
|
-Name: netcdf
|
|
|
|
-Version: 4.3.2
|
|
|
|
-Release: 1%{?_dist_release}
|
|
|
|
|
|
+%define pkg_name netcdf
|
|
|
|
+%define pkg_version 4.3.2
|
|
|
|
+%define pkg_release 2%{?_dist_release}
|
|
|
|
|
|
-License: NetCDF
|
|
|
|
-Group: System Environment/Libraries
|
|
|
|
-URL: http://www.unidata.ucar.edu/downloads/netcdf/index.jsp
|
|
|
|
|
|
+Summary: Libraries for the Unidata network Common Data Form
|
|
|
|
+Name: %{pkg_name}
|
|
|
|
+Version: %{pkg_version}
|
|
|
|
+Release: %{pkg_release}
|
|
|
|
+
|
|
|
|
+License: NetCDF
|
|
|
|
+Group: System Environment/Libraries
|
|
|
|
+URL: http://www.unidata.ucar.edu/downloads/netcdf/index.jsp
|
|
|
|
+
|
|
|
|
+Source0: ftp://ftp.unidata.ucar.edu/pub/netcdf/%{name}-%{version}.tar.gz
|
|
|
|
|
|
-Source0: ftp://ftp.unidata.ucar.edu/pub/netcdf/%{name}-%{version}.tar.gz
|
|
|
|
# Use pkgconfig in nc-config to avoid multi-lib issues
|
|
# Use pkgconfig in nc-config to avoid multi-lib issues
|
|
-Patch0: netcdf-pkgconfig.patch
|
|
|
|
|
|
+Patch0: netcdf-pkgconfig.patch
|
|
# Upstream patch to support hdf5 1.8.13 mpio change
|
|
# Upstream patch to support hdf5 1.8.13 mpio change
|
|
-Patch1: netcdf-mpio.patch
|
|
|
|
-
|
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
-BuildRequires: chrpath
|
|
|
|
-BuildRequires: curl-devel
|
|
|
|
-BuildRequires: doxygen
|
|
|
|
-BuildRequires: gawk
|
|
|
|
-BuildRequires: hdf-devel
|
|
|
|
-BuildRequires: hdf5-devel
|
|
|
|
-BuildRequires: m4
|
|
|
|
-BuildRequires: zlib-devel
|
|
|
|
-Requires: hdf5
|
|
|
|
|
|
+Patch1: netcdf-mpio.patch
|
|
|
|
+
|
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
+
|
|
|
|
+BuildRequires: chrpath
|
|
|
|
+BuildRequires: curl-devel
|
|
|
|
+BuildRequires: doxygen
|
|
|
|
+BuildRequires: gawk
|
|
|
|
+BuildRequires: hdf-devel
|
|
|
|
+BuildRequires: hdf5-devel
|
|
|
|
+BuildRequires: m4
|
|
|
|
+BuildRequires: libjpeg-turbo-devel
|
|
|
|
+BuildRequires: zlib-devel
|
|
|
|
+
|
|
|
|
+Requires: hdf5
|
|
|
|
+
|
|
|
|
|
|
%description
|
|
%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
|
|
|
|
|
|
+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.
|
|
Program Center in Boulder, Colorado.
|
|
|
|
|
|
-NetCDF data is:
|
|
|
|
|
|
+NetCDF data is:
|
|
|
|
|
|
o Self-Describing: A NetCDF file includes information about the
|
|
o Self-Describing: A NetCDF file includes information about the
|
|
data it contains.
|
|
data it contains.
|
|
@@ -57,19 +66,18 @@ NetCDF data is:
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
%package devel
|
|
-Summary: Development files for netcdf
|
|
|
|
-Group: Development/Libraries
|
|
|
|
-Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
+Summary: Development files for netcdf
|
|
|
|
+Group: Development/Libraries
|
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
%description devel
|
|
%description devel
|
|
-This package contains the netCDF header files, libs, and man
|
|
|
|
-pages.
|
|
|
|
|
|
+This package contains the netCDF header files, libs, and man pages.
|
|
|
|
|
|
|
|
|
|
%package static
|
|
%package static
|
|
-Summary: Static libs for netcdf
|
|
|
|
-Group: Development/Libraries
|
|
|
|
-Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
+Summary: Static libs for netcdf
|
|
|
|
+Group: Development/Libraries
|
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
%description static
|
|
%description static
|
|
This package contains the netCDF C static libs.
|
|
This package contains the netCDF C static libs.
|
|
@@ -80,10 +88,9 @@ This package contains the netCDF C static libs.
|
|
%patch0 -p1 -b .pkgconfig
|
|
%patch0 -p1 -b .pkgconfig
|
|
%patch1 -p1 -b .mpio
|
|
%patch1 -p1 -b .mpio
|
|
|
|
|
|
-
|
|
|
|
%build
|
|
%build
|
|
export LDFLAGS="-L%{_libdir}/hdf"
|
|
export LDFLAGS="-L%{_libdir}/hdf"
|
|
-export CPPFLAGS=-I%{_includedir}/hdf
|
|
|
|
|
|
+export CPPFLAGS=-I%{_includedir}/hdf
|
|
export LIBS="-ldf -ljpeg"
|
|
export LIBS="-ldf -ljpeg"
|
|
%configure \
|
|
%configure \
|
|
--enable-shared \
|
|
--enable-shared \
|
|
@@ -93,26 +100,26 @@ export LIBS="-ldf -ljpeg"
|
|
--enable-hdf4 \
|
|
--enable-hdf4 \
|
|
--disable-dap-remote-tests
|
|
--disable-dap-remote-tests
|
|
|
|
|
|
-make %{?_smp_mflags}
|
|
|
|
|
|
+%{__make} %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
|
-make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
+%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
|
|
+%{__make} install DESTDIR=${RPM_BUILD_ROOT}
|
|
|
|
|
|
-chrpath --delete $RPM_BUILD_ROOT/%{_bindir}/nc{copy,dump,gen,gen3}
|
|
|
|
-rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
-rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|
|
|
|
|
+chrpath --delete ${RPM_BUILD_ROOT}%{_bindir}/nc{copy,dump,gen,gen3}
|
|
|
|
+%{__rm} -f ${RPM_BUILD_ROOT}%{_libdir}/*.la
|
|
|
|
+%{__rm} -f ${RPM_BUILD_ROOT}%{_infodir}/dir
|
|
|
|
|
|
%check
|
|
%check
|
|
-make check
|
|
|
|
|
|
+%{__make} check
|
|
|
|
|
|
%clean
|
|
%clean
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
+%{__rm} -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
-%post -p /sbin/ldconfig
|
|
|
|
|
|
+%post -p %{_syssbindir}/ldconfig
|
|
|
|
|
|
-%postun -p /sbin/ldconfig
|
|
|
|
|
|
+%postun -p %{_syssbindir}/ldconfig
|
|
|
|
|
|
|
|
|
|
%files
|
|
%files
|
|
@@ -134,6 +141,9 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sun Jul 01 2018 Toshiaki Ara <ara_t@384.jp> 4.3.2-2
|
|
|
|
+- rebuild under hdf5-1.8.20
|
|
|
|
+
|
|
* Sun Jan 25 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 4.3.2-1
|
|
* Sun Jan 25 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 4.3.2-1
|
|
- updated to 4.3.2
|
|
- updated to 4.3.2
|
|
- built with hdf and hdf5
|
|
- built with hdf and hdf5
|