File mingw32-metis.spec of Package mingw32-metis
#
# spec file for package mingw32-metis
#
# 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 _basename metis
Name: mingw32-%{_basename}
Version: 5.1.0
Release: 0
#!BuildIgnore: post-build-checks
Summary: Serial Graph Partitioning and Fill-reducing Matrix Ordering
License: Apache-2.0
Group: Productivity/Scientific/Math
Url: http://glaros.dtc.umn.edu/gkhome/metis/metis/overview
Source0: http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-%{version}.tar.gz
Patch0: metis-mingw.patch
Patch1: metis-cmake.patch
Patch2: metis-programs-no-compilation-time.patch
BuildRequires: mingw32-cross-cmake
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem
%_mingw32_package_header_debug
BuildArch: noarch
%description
METIS is a family of programs for partitioning unstructured graphs and hypergraph
and computing fill-reducing orderings of sparse matrices. The underlying algorithms
used by METIS are based on the state-of-the-art multilevel paradigm that has been
shown to produce high quality results and scale to very large problems.
%package devel
Summary: Metis development files
Group: Development/Libraries/C and C++
%description devel
METIS is a family of programs for partitioning unstructured graphs and hypergraph
and computing fill-reducing orderings of sparse matrices. The underlying algorithms
used by METIS are based on the state-of-the-art multilevel paradigm that has been
shown to produce high quality results and scale to very large problems.
%_mingw32_debug_package
%prep
%setup -q -n %{_basename}-%{version}
%patch -P 0 -p1
%patch -P 1 -p1
%patch -P 2 -p1
%build
%{_mingw32_cmake}
%{_mingw32_cmake_build}
%install
%{_mingw32_cmake_install}
mkdir -p %{buildroot}%{_mingw32_bindir}
mv %{buildroot}%{_mingw32_libdir}/*.dll %{buildroot}%{_mingw32_bindir}/
%files
%defattr(-,root,root,-)
%{_mingw32_bindir}/libmetis.dll
%{_mingw32_bindir}/gpmetis.exe
%{_mingw32_bindir}/ndmetis.exe
%{_mingw32_bindir}/mpmetis.exe
%{_mingw32_bindir}/m2gmetis.exe
%{_mingw32_bindir}/graphchk.exe
%{_mingw32_bindir}/cmpfillin.exe
%doc LICENSE.txt
%files devel
%defattr(-,root,root,-)
%{_mingw32_libdir}/libmetis.dll.a
%{_mingw32_includedir}/metis.h
%changelog