File clpeak.spec of Package clpeak

#
# spec file for package clpeak
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2015, 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/
#


Name:           clpeak
Version:        1.0+git.20170525
Release:        0
Summary:        Find peak OpenCL capacities like bandwidth & compute
License:        SUSE-Public-Domain
Group:          System/Benchmark
Url:            https://github.com/krrishnarraj/clpeak
Source:         %{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  opencl-headers
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(OpenCL)
BuildRequires:  pkgconfig(gl)

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

%prep
%setup -q

%build
# Disable optimisation for current cpu
sed -i "s|-march=native||g" CMakeLists.txt
%cmake
%make_jobs

%install
install -D -p -m 0755 build/%{name} \
  %{buildroot}%{_bindir}/%{name}

%files
%defattr (-,root,root)
%doc README.md LICENSE STATUS results
%{_bindir}/%{name}

%changelog
openSUSE Build Service is sponsored by