File mingw64-clinfo.spec of Package mingw64-clinfo

#
# spec file for package mingw64-clifo
#
# 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 clinfo
Name:           mingw64-%{realname}
Version:        2.2.18.04.06
Release:        0
Summary:        It reports status information for all installed OpenCL ICDs
License:        SUSE-Public-Domain
Group:          Productivity/Other
URL:            https://github.com/Oblomov/clinfo/
Source:         https://github.com/Oblomov/%{realname}/archive/%{version}.tar.gz#/%{realname}-%{version}.tar.gz
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-dlfcn-win32-devel
BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-freeocl-devel
BuildRequires:  mingw64-opencl-headers-1_2
BuildArch:      noarch
%_mingw64_package_header_debug
%_mingw64_debug_package

%description
A simple OpenCL application that enumerates all possible platform and
device properties. Inspired by AMD's program of the same name, it is
coded in pure C99 and it tries to output all possible information,
including that provided by platform-specific extensions, and not to
crash on platform-unsupported properties (e.g. 1.2 properties on 1.1
platforms).

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

%build
%{_mingw64_make} %{?_smp_mflags}

%install
mkdir -p %{buildroot}/%{_mingw64_bindir}
install -pm 0755 clinfo.exe %{buildroot}/%{_mingw64_bindir}/clinfo.exe

%files
%{_mingw64_bindir}/clinfo.exe

%changelog
openSUSE Build Service is sponsored by