--- /dev/null
+--- hdf-4.2.10/configure.ac.orig 2014-12-06 11:14:27.307342175 +0100
++++ hdf-4.2.10/configure.ac 2014-12-06 11:38:58.803947089 +0100
+@@ -466,7 +466,7 @@
+ yes)
+ HAVE_SZIP="yes"
+ AC_CHECK_HEADERS([szlib.h], [HAVE_SZLIB_H="yes"], [unset HAVE_SZIP])
+- if test "x$HAVE_SZLIB" = "xyes" -a "x$HAVE_SZLIB_H" = "xyes"; then
++ if test "x$HAVE_SZIP" = "xyes" -a "x$HAVE_SZLIB_H" = "xyes"; then
+ AC_CHECK_LIB([sz], [SZ_BufftoBuffCompress],, [unset HAVE_SZIP])
+ fi
+
Summary(pl.UTF-8): Biblioteka HDF (Hierarchical Data Format)
Name: hdf
Version: 4.2.10
-Release: 1
+Release: 2
Epoch: 1
Group: Libraries
License: Nearly BSD, but changed sources must be marked
Patch1: %{name}-morearchs.patch
Patch2: %{name}-link.patch
Patch3: %{name}-format.patch
+Patch4: %{name}-szip.patch
URL: http://hdf.ncsa.uiuc.edu/
BuildRequires: autoconf >= 2.50
BuildRequires: automake
%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch4 -p1
# evil -R
sed -i '/^if HDF_BUILD_XDR/,/^endif/d;/^if HDF_BUILD_SHARED/,/^endif/d' config/commence.am