|
|
@ -3,13 +3,12 @@
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
Name: hdf
|
|
|
|
Name: hdf
|
|
|
|
Version: 4.2.13
|
|
|
|
Version: 4.2.14
|
|
|
|
Release: 11%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: A general purpose library and file format for storing scientific data
|
|
|
|
Summary: A general purpose library and file format for storing scientific data
|
|
|
|
License: BSD
|
|
|
|
License: BSD
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
URL: https://portal.hdfgroup.org/
|
|
|
|
URL: http://hdfgroup.org/products/hdf4/index.html
|
|
|
|
Source0: https://support.hdfgroup.org/ftp/HDF/releases/HDF%{version}/src/%{name}-%{version}.tar.bz2
|
|
|
|
Source0: ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/%{name}-%{version}.tar.bz2
|
|
|
|
|
|
|
|
Patch0: hdf-4.2.5-maxavailfiles.patch
|
|
|
|
Patch0: hdf-4.2.5-maxavailfiles.patch
|
|
|
|
Patch1: hdf-ppc.patch
|
|
|
|
Patch1: hdf-ppc.patch
|
|
|
|
Patch2: hdf-4.2.4-sparc.patch
|
|
|
|
Patch2: hdf-4.2.4-sparc.patch
|
|
|
@ -46,7 +45,6 @@ grids. You can also mix and match them in HDF files according to your needs.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Summary: HDF development files
|
|
|
|
Summary: HDF development files
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Requires: libjpeg-devel%{?_isa}
|
|
|
|
Requires: libjpeg-devel%{?_isa}
|
|
|
@ -58,27 +56,31 @@ HDF development headers and libraries.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
%patch0 -p1 -b .maxavailfiles
|
|
|
|
%patch0 -p1 -b .maxavailfiles
|
|
|
|
%patch1 -p1 -b .ppc
|
|
|
|
%patch1 -p1 -b .ppc
|
|
|
|
%patch2 -p1 -b .sparc
|
|
|
|
%patch2 -p1 -b .sparc
|
|
|
|
%patch3 -p1 -b .s390
|
|
|
|
%patch3 -p1 -b .s390
|
|
|
|
%patch4 -p1 -b .arm
|
|
|
|
%patch4 -p1 -b .arm
|
|
|
|
%patch5 -p1 -b .destdir
|
|
|
|
%patch5 -p1 -b .destdir
|
|
|
|
%patch6 -p0 -b .examplesdir
|
|
|
|
%patch6 -p1 -b .examplesdir
|
|
|
|
%patch8 -p1 -b .aarch64
|
|
|
|
%patch8 -p1 -b .aarch64
|
|
|
|
%patch9 -p1 -b .ppc64le
|
|
|
|
%patch9 -p1 -b .ppc64le
|
|
|
|
|
|
|
|
|
|
|
|
## Fix syntax error bacause 'CLASSPATH_ENV=$H4_CLASSPATH' line on epel6 builds
|
|
|
|
## Fix syntax error bacause 'CLASSPATH_ENV=$H4_CLASSPATH' line on epel6 builds
|
|
|
|
# Use only if java is disabled
|
|
|
|
# Use only if java is disabled
|
|
|
|
%if 0%{?rhel} < 7
|
|
|
|
%if 0%{?rhel} && 0%{?rhel} < 7
|
|
|
|
%patch10 -p0
|
|
|
|
%patch10 -p0
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
chmod a-x *hdf/*/*.c hdf/*/*.h
|
|
|
|
find . -type f -name "*.h" -exec chmod 0644 '{}' \;
|
|
|
|
|
|
|
|
find . -type f -name "*.c" -exec chmod 0644 '{}' \;
|
|
|
|
|
|
|
|
|
|
|
|
# restore include file timestamps modified by patching
|
|
|
|
# restore include file timestamps modified by patching
|
|
|
|
touch -c -r ./hdf/src/hdfi.h.ppc ./hdf/src/hdfi.h
|
|
|
|
touch -c -r ./hdf/src/hdfi.h.ppc ./hdf/src/hdfi.h
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
|
|
# For destdir/examplesdir patches
|
|
|
|
# For destdir/examplesdir patches
|
|
|
|
autoreconf -vif
|
|
|
|
autoreconf -vif
|
|
|
|
# avoid upstream compiler flags settings
|
|
|
|
# avoid upstream compiler flags settings
|
|
|
@ -103,7 +105,10 @@ touch -c -r mfhdf/fortran/mffunc.inc mfhdf/fortran/mffunc.f90
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
install -pm 644 MANIFEST README.txt release_notes/*.txt %{buildroot}%{_pkgdocdir}/
|
|
|
|
|
|
|
|
|
|
|
|
rm -f %{buildroot}%{_libdir}/%{name}/*.la
|
|
|
|
rm -f %{buildroot}%{_libdir}/%{name}/*.la
|
|
|
|
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
|
|
|
|
|
|
|
|
|
#Don't conflict with netcdf
|
|
|
|
#Don't conflict with netcdf
|
|
|
|
for file in ncdump ncgen; do
|
|
|
|
for file in ncdump ncgen; do
|
|
|
@ -123,33 +128,25 @@ touch -c -r h4config.h h4config.h.tmp
|
|
|
|
mv h4config.h.tmp h4config.h
|
|
|
|
mv h4config.h.tmp h4config.h
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
# ./testdhf fails on f28-i386 only with
|
|
|
|
|
|
|
|
# --> /bin/sh: line 25: 22535 Segmentation fault (core dumped) srcdir="." ./${tname} >> ${log} 2>&1
|
|
|
|
|
|
|
|
# but not by an arch-override=i386 ?!
|
|
|
|
|
|
|
|
%if 0%{?fedora} >= 28
|
|
|
|
|
|
|
|
%ifnarch %{ix86}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
make -j1 check
|
|
|
|
make -j1 check
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?fedora} < 28
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
|
|
|
make -j1 check
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%license COPYING
|
|
|
|
%license COPYING
|
|
|
|
%doc MANIFEST README.txt release_notes/*.txt
|
|
|
|
%{_pkgdocdir}/
|
|
|
|
%exclude %{_defaultdocdir}/%{name}/examples
|
|
|
|
%exclude %{_pkgdocdir}/examples
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_mandir}/man1/*.gz
|
|
|
|
%{_mandir}/man1/*.gz
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/%{name}/
|
|
|
|
%{_includedir}/%{name}/
|
|
|
|
%{_libdir}/%{name}/
|
|
|
|
%{_libdir}/%{name}/
|
|
|
|
%{_defaultdocdir}/%{name}/examples
|
|
|
|
%{_pkgdocdir}/examples/
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Sat Nov 03 2018 Antonio Trande <sagitter@fedoraproject.org> 4.2.14-1
|
|
|
|
|
|
|
|
- Release 4.2.14
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Oct 7 2018 Orion Poplawski <orion@nwra.com> - 4.2.13-11
|
|
|
|
* Sun Oct 7 2018 Orion Poplawski <orion@nwra.com> - 4.2.13-11
|
|
|
|
- Use LIBS instead of LDFLAGS for -ltirpc
|
|
|
|
- Use LIBS instead of LDFLAGS for -ltirpc
|
|
|
|
|
|
|
|
|
|
|
|