File libhsaruntime.spec of Package libhsaruntime

# spec file for package libhsaruntime
# Copyright (c) 2016 SUSE LINUX 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

Name:           libhsa-runtime64-1
Version:        1.0.0
Release:        0
Summary:        HSA Runtime
License:        AMD
Group:          System/Libraries
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  libelf-devel
BuildRequires:  libhsakmt1 = 1.1.0
BuildRequires:  libhsakmt1-devel = 1.1.0
BuildRequires:  unzip


This repository contains the HSA Runtime source code, released primarily for user reference and experimentation purposes.

%setup -q -n ROCR-Runtime-hof-finalizer/src

HSA_BUILD_INC_PATH=%{_includedir} HSA_BUILD_LIB_PATH=%{_libdir} cmake CMakeLists.txt
make %{?_smp_mflags}

mkdir -p %{buildroot}%{_libdir}
install core/* %{buildroot}%{_libdir}