[packages/netcdf] - updated to 4.9.3 (new soname)
qboosh
qboosh at pld-linux.org
Tue Sep 23 21:31:17 CEST 2025
commit b9703994690bbc3eff93d5de5775aefb71ff22b1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Sep 23 21:34:16 2025 +0200
- updated to 4.9.3 (new soname)
netcdf.spec | 40 +++++++++++++++++++++++++++++++---------
size_t.patch | 11 -----------
2 files changed, 31 insertions(+), 20 deletions(-)
---
diff --git a/netcdf.spec b/netcdf.spec
index 56cafe5..dfaccbc 100644
--- a/netcdf.spec
+++ b/netcdf.spec
@@ -4,23 +4,27 @@
# Conditional build:
%bcond_with hdf4 # HDF4 read support (needs hdf built with "--disable-netcdf")
%bcond_with pnetcdf # parallel I/O for classic CDF files using PnetCDF
+%bcond_with aws_s3 # S3 support via aws-sdk-cpp
%bcond_without tests # unit tests (endoder-enabled szip needed)
%bcond_with tests_net # remote tests (Internet access required)
#
Summary: NetCDF: Network Common Data Form
Summary(pl.UTF-8): NetCDF: obsługa wspólnego sieciowego formatu danych
Name: netcdf
-Version: 4.9.2
-Release: 2
+Version: 4.9.3
+Release: 1
License: BSD
Group: Libraries
-Source0: https://downloads.unidata.ucar.edu/netcdf-c/%{version}/%{name}-c-%{version}.tar.gz
-# Source0-md5: f48ee01534365006934f0c63d4055ea0
-Patch0: size_t.patch
+#Source0Download: https://github.com/Unidata/netcdf-c/releases
+Source0: https://github.com/Unidata/netcdf-c/archive/v%{version}/%{name}-c-%{version}.tar.gz
+# Source0-md5: bc9eb96e1983bf90fb3a99cc358c5ac3
Patch1: disable-bad-test.patch
URL: https://www.unidata.ucar.edu/software/netcdf/
BuildRequires: autoconf >= 2.59
BuildRequires: automake
+%{?with_aws_s3:BuildRequires: aws-sdk-cpp-devel}
+BuildRequires: bzip2-devel
+BuildRequires: c-blosc-devel
BuildRequires: curl-devel >= 7.66
BuildRequires: doxygen
%{?with_hdf4:BuildRequires: hdf-devel >= 4}
@@ -29,9 +33,11 @@ BuildRequires: libaec-szip-devel >= 1.0
%{?with_hdf4:BuildRequires: libjpeg-devel}
BuildRequires: libstdc++-devel
BuildRequires: libtool >= 2:2.2
+BuildRequires: libzip-devel
%{?with_pnetcdf:BuildRequires: parallel-netcdf-devel >= 1.6.0}
BuildRequires: sed >= 4.0
BuildRequires: texinfo
+BuildRequires: zstd-devel
Requires: curl-libs >= 7.66
%{?with_hdf4:Requires: hdf >= 4}
Requires: hdf5 >= 1.10.3
@@ -89,7 +95,6 @@ Statyczna wersja biblioteki netCDF dla C.
%prep
%setup -q -n %{name}-c-%{version}
-%patch -P 0 -p1
%ifarch %{ix86}
%patch -P 1 -p1
%endif
@@ -106,13 +111,16 @@ Statyczna wersja biblioteki netCDF dla C.
%{__autoheader}
%{__automake}
%{?with_hdf4:CPPFLAGS="%{rpmcppflags} -I/usr/include/hdf"}
+# override defaults plugin_dir=/usr/hdf5/lib/plugin with %{_libdir}/hdf5/plugin to match FHS
%configure \
%{!?with_tests_net:--disable-dap-remote-tests} \
--enable-dap \
--enable-doxygen \
%{?with_hdf4:--enable-hdf4} \
--enable-netcdf-4 \
- %{?with_pnetcdf:--enable-pnetcdf}
+ %{?with_pnetcdf:--enable-pnetcdf} \
+ %{?with_aws_s3:--enable-s3} \
+ --with-plugin-dir=%{_libdir}/hdf5/plugin
# some substitutions are missing when using autotools
%{__sed} -i -e 's, at SHOW_DOXYGEN_TAG_LIST@,NO,' \
@@ -135,6 +143,8 @@ rm -rf $RPM_BUILD_ROOT
# obsoleted by pkg-config
%{__rm} $RPM_BUILD_ROOT%{_libdir}/libnetcdf.la
+# dlopened plugins
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/hdf5/plugin/*.la
# packaged in oc package
%{__rm} $RPM_BUILD_ROOT%{_bindir}/ocprint
@@ -153,7 +163,7 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/ncgen
%attr(755,root,root) %{_bindir}/ncgen3
%attr(755,root,root) %{_libdir}/libnetcdf.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libnetcdf.so.19
+%ghost %{_libdir}/libnetcdf.so.22
%{_libdir}/libnetcdf.settings
%{_mandir}/man1/nccopy.1*
%{_mandir}/man1/ncdump.1*
@@ -164,7 +174,18 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc docs/html/*
%attr(755,root,root) %{_bindir}/nc-config
-%attr(755,root,root) %{_libdir}/libnetcdf.so
+%{_libdir}/libnetcdf.so
+%dir %{_libdir}/hdf5
+%dir %{_libdir}/hdf5/plugin
+%attr(755,root,root) %{_libdir}/hdf5/plugin/lib__nch5blosc.so
+%attr(755,root,root) %{_libdir}/hdf5/plugin/lib__nch5bzip2.so
+%attr(755,root,root) %{_libdir}/hdf5/plugin/lib__nch5deflate.so
+%attr(755,root,root) %{_libdir}/hdf5/plugin/lib__nch5fletcher32.so
+%attr(755,root,root) %{_libdir}/hdf5/plugin/lib__nch5shuffle.so
+%attr(755,root,root) %{_libdir}/hdf5/plugin/lib__nch5szip.so
+%attr(755,root,root) %{_libdir}/hdf5/plugin/lib__nch5zstd.so
+%attr(755,root,root) %{_libdir}/hdf5/plugin/lib__nczhdf5filters.so
+%attr(755,root,root) %{_libdir}/hdf5/plugin/lib__nczstdfilters.so
%{_includedir}/netcdf.h
%{_includedir}/netcdf_aux.h
%{_includedir}/netcdf_dispatch.h
@@ -174,6 +195,7 @@ rm -rf $RPM_BUILD_ROOT
%{_includedir}/netcdf_json.h
%{_includedir}/netcdf_mem.h
%{_includedir}/netcdf_meta.h
+%{_includedir}/netcdf_proplist.h
%{?with_pnetcdf:%{_includedir}/netcdf_par.h}
%{_pkgconfigdir}/netcdf.pc
%{_mandir}/man3/netcdf.3*
diff --git a/size_t.patch b/size_t.patch
deleted file mode 100644
index e47d38c..0000000
--- a/size_t.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- netcdf-c-4.9.2/ncgen/ncgen.h~ 2023-03-13 22:47:11.000000000 +0100
-+++ netcdf-c-4.9.2/ncgen/ncgen.h 2024-12-05 23:22:25.591690673 +0100
-@@ -173,7 +173,7 @@
- int hasvlen; /* 1 => this type contains a vlen*/
- nc_type typecode;
- unsigned long offset; /* fields in struct*/
-- unsigned long alignment;/* fields in struct*/
-+ size_t alignment;/* fields in struct*/
- NCConstant* econst; /* for enum values*/
- Dimset dimset; /* for NC_VAR/NC_FIELD/NC_ATT*/
- size_t size; /* for opaque, compound, etc.*/
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/netcdf.git/commitdiff/b9703994690bbc3eff93d5de5775aefb71ff22b1
More information about the pld-cvs-commit
mailing list