91 lines
3.1 KiB
RPMSpec
91 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package rocm-cmake
|
|
#
|
|
# 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.
|
|
#
|
|
|
|
# there is no debug package - this is just cmake modules
|
|
# 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 debug_package %{nil}
|
|
|
|
%global rocm_release 6.4
|
|
%global rocm_patch 0
|
|
%global rocm_version %{rocm_release}.%{rocm_patch}
|
|
|
|
Name: rocm-cmake
|
|
Version: %{rocm_version}
|
|
Release: 5%{?dist}
|
|
Summary: CMake modules for common build and development tasks for ROCm
|
|
License: MIT
|
|
URL: https://github.com/ROCm/rocm-cmake
|
|
Source: %{url}/archive/rocm-%{version}.tar.gz#/rocm-cmake-rocm-%{version}.tar.gz
|
|
# https://github.com/ROCm/rocm-cmake/issues/276
|
|
Patch0: 0001-rocm-cmake-follow-cmake-install-rules.patch
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: cmake
|
|
Requires: cmake
|
|
|
|
%description
|
|
rocm-cmake is a collection of CMake modules for common build and development
|
|
tasks within the ROCm project. It is therefore a build dependency for many of
|
|
the libraries that comprise the ROCm platform.
|
|
|
|
rocm-cmake is not required for building libraries or programs that use ROCm; it
|
|
is required for building some of the libraries that are a part of ROCm.
|
|
|
|
%prep
|
|
%autosetup -p1 -n rocm-cmake-rocm-%{version}
|
|
|
|
%build
|
|
%cmake
|
|
%cmake_build
|
|
|
|
%install
|
|
%cmake_install
|
|
|
|
rm -f %{buildroot}%{_prefix}/share/doc/rocm-cmake/LICENSE
|
|
|
|
%files
|
|
%dir %{_datadir}/rocm
|
|
%dir %{_datadir}/rocmcmakebuildtools
|
|
|
|
%doc CHANGELOG.md
|
|
%license LICENSE
|
|
%{_datadir}/rocm/*
|
|
%{_datadir}/rocmcmakebuildtools/*
|
|
|
|
%changelog
|