93 lines
2.9 KiB
RPMSpec
93 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package hipblas-common
|
|
#
|
|
# Copyright Fedora Project Authors.
|
|
#
|
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
# of this software and associated documentation files (the "Software"), to
|
|
# deal in the Software without restriction, including without limitation the
|
|
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
# sell copies of the Software, and to permit persons to whom the Software is
|
|
# furnished to do so, subject to the following conditions:
|
|
#
|
|
# The above copyright notice and this permission notice shall be included in
|
|
# all copies or substantial portions of the Software.
|
|
#
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
# THE SOFTWARE.
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC and contributors
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%global upstreamname hipBLAS-common
|
|
%global rocm_release 6.4
|
|
%global rocm_patch 0
|
|
%global rocm_version %{rocm_release}.%{rocm_patch}
|
|
|
|
Name: hipblas-common
|
|
Version: %{rocm_version}
|
|
Release: 4%{?dist}
|
|
Summary: Common files shared by hipBLAS and hipBLASLt
|
|
URL: https://github.com/ROCm/%{upstreamname}
|
|
License: MIT
|
|
|
|
Source0: %{url}/archive/rocm-%{rocm_version}.tar.gz#/%{upstreamname}-%{rocm_version}.tar.gz
|
|
|
|
BuildRequires: cmake
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: rocm-cmake
|
|
|
|
# Only headers, cmake infra
|
|
BuildArch: noarch
|
|
# Only x86_64 works right now:
|
|
ExclusiveArch: x86_64
|
|
|
|
# Problem on SUSE, nothing really to compile so turn jobs off
|
|
%global _smp_mflags %{nil}
|
|
|
|
%description
|
|
%summary
|
|
|
|
%package devel
|
|
Summary: Libraries and headers for %{name}
|
|
Provides: %{name}-static = %{version}-%{release}
|
|
|
|
%description devel
|
|
%{summary}
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{upstreamname}-rocm-%{version}
|
|
|
|
%build
|
|
%cmake -DCMAKE_INSTALL_LIBDIR=share \
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
rm -f %{buildroot}%{_prefix}/share/doc/hipblas-common/LICENSE.md
|
|
|
|
%files devel
|
|
%license LICENSE.md
|
|
%{_includedir}/%{name}
|
|
%{_datadir}/cmake/%{name}
|
|
|
|
%changelog
|