[packages/rocm-cmake] - new

qboosh qboosh at pld-linux.org
Sat Jun 14 16:13:28 CEST 2025


commit 08d5f0cc1cd1425556a380fa677e58530322b23d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jun 14 15:38:12 2025 +0200

    - new

 rocm-cmake.spec | 98 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 98 insertions(+)
---
diff --git a/rocm-cmake.spec b/rocm-cmake.spec
new file mode 100644
index 0000000..228224b
--- /dev/null
+++ b/rocm-cmake.spec
@@ -0,0 +1,98 @@
+# TODO: docs (fulfill dependencies)
+#
+# Conditional build:
+%bcond_with	doc	# documentation
+
+Summary:	CMake modules used within the ROCm libraries
+Summary(pl.UTF-8):	Moduły CMake'a używane w ramach bibliotek ROCm
+Name:		rocm-cmake
+Version:	6.4.1
+Release:	1
+License:	MIT
+Group:		Development/Tools
+#Source0Download: https://github.com/ROCm/rocm-cmake/releases
+Source0:	https://github.com/ROCm/rocm-cmake/archive/rocm-%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	3a31da7cc598908af1f4a9aee2926894
+URL:		https://rocm.docs.amd.com/
+BuildRequires:	cmake >= 3.6
+BuildRequires:	libstdc++-devel
+BuildRequires:	rpmbuild(macros) >= 1.605
+%if %{with doc}
+BuildRequires:	doxygen
+BuildRequires:	python3-sphinxcontrib-moderncmakedomain >= 3.29.0
+# https://github.com/ROCm/rocm-docs-core
+BuildRequires:	rocm-docs-core >= 1.9.2
+BuildRequires:	sphinx-pdg-3
+%endif
+Requires:	cmake >= 3.6
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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.
+
+%description -l pl.UTF-8
+rocm-cmake to zbiór modułów CMake'a do wspólnych zadań budowania i
+rozwijania wewnątrz projektu ROCm. Jest to więc zależność budowania
+dla wielu bibliotek składających się na platformę ROCm.
+
+rocm-cmake NIE jest wymagany do budowania bibliotek czy programów
+UŻYWAJĄCYCH ROCm; jest wymagane do budowania części bibliotek BĘDĄCYCH
+CZĘŚCIĄ ROCm.
+
+%package doc
+Summary:	Documentation for rocm-cmake module
+Summary(pl.UTF-8):	Dokumentacja modułu rocm-cmake
+Group:		Documentation
+
+%description doc
+Documentation for rocm-cmake module.
+
+%description doc -l pl.UTF-8
+Dokumentacja modułu rocm-cmake.
+
+%prep
+%setup -q -n %{name}-rocm-%{version}
+
+%build
+install -d build
+cd build
+%cmake .. \
+	-DSPHINX_EXECUTABLE=sphinx-build-3
+
+%{__make}
+
+%if %{with doc}
+%{__make} sphinx-html
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# packaged as %doc
+%{__rm} $RPM_BUILD_ROOT%{_docdir}/rocm-cmake/LICENSE
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.md LICENSE README.md
+%dir %{_datadir}/rocm
+%{_datadir}/rocm/cmake
+%{_datadir}/rocmcmakebuildtools
+
+%if %{with doc}
+%files doc
+%defattr(644,root,root,755)
+%doc build/docs/...
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rocm-cmake.git/commitdiff/08d5f0cc1cd1425556a380fa677e58530322b23d



More information about the pld-cvs-commit mailing list