File mingw64-hdf5.spec of Package mingw64-hdf5
#
# spec file for package mingw64-hdf5
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define ver_majmin 1.10
%define _basename hdf5
Name: mingw64-%{_basename}
Version: 1.10.9
Release: 0
#!BuildIgnore: post-build-checks
Summary: A general purpose library and file format for storing scientific data
License: BSD-3-Clause
Group: Development/Libraries/Other
Url: http://www.hdfgroup.org/HDF5/
Source: https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-%ver_majmin/hdf5-%{version}/src/hdf5-%{version}.tar.bz2
BuildRequires: mingw64-cross-cmake
BuildRequires: mingw64-cross-gcc-c++
BuildRequires: mingw64-cross-wine
BuildRequires: mingw64-zlib-devel
%_mingw64_package_header_debug
BuildArch: noarch
%description
HDF5 is a general purpose library and file format for storing scientific data.
HDF5 can store two primary objects: datasets and groups. A dataset is
essentially a multidimensional array of data elements, and a group is a
structure for organizing objects in an HDF5 file. Using these two basic
objects, one can create and store almost any kind of scientific data
structure, such as images, arrays of vectors, and structured and unstructured
grids. You can also mix and match them in HDF5 files according to your needs.
%package devel
Summary: Hierarchical Data File Format Version 5
Group: Development/Libraries/Parallel
%description devel
The HDF project involves the development and support of software and
file formats for scientific data management. The HDF software includes
I/O libraries and tools for analyzing, visualizing, and converting
scientific data.
This package contains all files needed to create projects that use
hdf5.
%_mingw64_debug_package
%prep
%autosetup -p1 -n %{_basename}-%{version}
%build
%_mingw64_cross_wine_init
%{_mingw64_cmake} \
-DH5_BUILD_HL_LIB=ON \
-DH5_DISABLE_SOME_LDOUBLE_CONV_RUN=1 \
-DH5_DISABLE_SOME_LDOUBLE_CONV_RUN__TRYRUN_OUTPUT="" \
-DH5_ENABLE_Z_LIB_SUPPORT=ON \
-DH5_FP_TO_INTEGER_OVERFLOW_WORKS=1 \
-DH5_FP_TO_ULLONG_ACCURATE=1 \
-DH5_LDOUBLE_TO_INTEGER_WORKS=1 \
-DH5_LDOUBLE_TO_LLONG_ACCURATE=1 \
-DH5_LDOUBLE_TO_LONG_SPECIAL_RUN=1 \
-DH5_LDOUBLE_TO_LONG_SPECIAL_RUN__TRYRUN_OUTPUT="" \
-DH5_LDOUBLE_TO_UINT_ACCURATE=1 \
-DH5_LLONG_TO_LDOUBLE_CORRECT=1 \
-DH5_LONG_TO_LDOUBLE_SPECIAL_RUN=1 \
-DH5_LONG_TO_LDOUBLE_SPECIAL_RUN__TRYRUN_OUTPUT="" \
-DH5_NO_ALIGNMENT_RESTRICTIONS=1 \
-DH5_PRINTF_LL_TEST_COMPILE=1 \
-DH5_PRINTF_LL_TEST_RUN=1 \
-DH5_PRINTF_LL_TEST_RUN__TRYRUN_OUTPUT=1 \
-DH5_ULONG_TO_FLOAT_ACCURATE=1 \
-DHAVE_IOEO_EXITCODE=1 \
-DTEST_LFS_WORKS_RUN=0 \
-DRUN_RESULT_VAR=0 \
-DRUN_RESULT_VAR__TRYRUN_OUTPUT=""
%{_mingw64_cmake_build}
%install
%{_mingw64_cmake_install}
%files
%defattr(-,root,root,-)
%{_mingw64_bindir}/lib*.dll
%{_mingw64_bindir}/*.exe
%doc %{_mingw64_datadir}/COPYING
%doc %{_mingw64_datadir}/RELEASE.txt
%files devel
%defattr(-,root,root,-)
%{_mingw64_libdir}/lib*.a
%{_mingw64_libdir}/libhdf5.settings
%{_mingw64_libdir}/pkgconfig
%{_mingw64_includedir}/*.h
%{_mingw64_prefix}/cmake/
%doc %{_mingw64_datadir}/USING_HDF5_CMake.txt
%doc %{_mingw64_datadir}/USING_HDF5_VS.txt
%changelog