File mingw64-clpeak.spec of Package mingw64-clpeak

#
# spec file for package mingw64-clpeak
#
# Copyright (c) 2016, Martin Hauke <mardnh@gmx.de>
#
# 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 realname clpeak
%define version_unconverted 0.0.0.git1498370641.8edab23
Name:           mingw64-clpeak
Version:        0.0.0.git1498370641.8edab23
Release:        0
Summary:        Find peak OpenCL capacities like bandwidth & compute
License:        SUSE-Public-Domain
Group:          System/Benchmark
URL:            https://github.com/krrishnarraj/clpeak
Source:         %{realname}-%{version}.tar.xz
BuildRequires:  mingw64-cross-cmake
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-freeocl-devel
BuildRequires:  mingw64-opencl-headers-1_2
BuildArch:      noarch
%_mingw64_package_header_debug
%_mingw64_debug_package

%description
A tool which profiles OpenCL devices to find their peak capacities like
bandwidth & compute.

%prep
%setup -q -n %{realname}-%{version}

%build
%{_mingw64_cmake}
%{_mingw64_cmake_build}

%install
install -Dpm 0755 build/clpeak.exe %{buildroot}%{_mingw64_bindir}/clpeak.exe

%files
%{_mingw64_bindir}/clpeak.exe

%changelog
openSUSE Build Service is sponsored by