summaryrefslogtreecommitdiff
path: root/toolkit.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-03-13 02:52:13 +0000
committerCoprDistGit <infra@openeuler.org>2025-03-13 02:52:13 +0000
commitc02a5f807070d867d8e88d0bdf9a28b2bacd671d (patch)
tree1a7096be3ef57dcf4b57e624df2aad8b83f2ed93 /toolkit.spec
parentba92191f15d7561e32693571a6e27d79d3c8104c (diff)
automatic import of Ascend-cann-toolkit
Diffstat (limited to 'toolkit.spec')
-rw-r--r--toolkit.spec39
1 files changed, 39 insertions, 0 deletions
diff --git a/toolkit.spec b/toolkit.spec
new file mode 100644
index 0000000..6798595
--- /dev/null
+++ b/toolkit.spec
@@ -0,0 +1,39 @@
+Name: Ascend-cann-toolkit
+Version: 8.0.0
+Release: 1%{?dist}
+Summary: Ascend-cann-toolkit
+License: Apache-2.0
+Source0: Ascend-cann-toolkit_8.0.0_linux-aarch64.run
+
+%define PACKAGE_RUN_DIR /usr/local
+
+%description
+This package contains the Ascend CANN (Compute Acceleration Neural Network) Toolkit, version 8.0.0.
+
+%prep
+# No source code to unpack, so nothing to do here
+
+%build
+# No building from source, so nothing to do here
+
+%install
+mkdir -p %{buildroot}/usr/local
+cp Ascend-cann-toolkit_8.0.0_linux-aarch64.run %{buildroot}%{PACKAGE_RUN_DIR}
+
+
+%files
+%{PACKAGE_RUN_DIR}/Ascend-cann-toolkit_8.0.0_linux-aarch64.run
+
+%post
+chmod +x %{PACKAGE_RUN_DIR}/Ascend-cann-toolkit_8.0.0_linux-aarch64.run
+ASCEND_INSTALL_FOR_ALL="true"
+install_for_all_cmd=$([[ x${ASCEND_INSTALL_FOR_ALL} == X"true" ]] && echo "--install-for-all" || echo "")
+%{PACKAGE_RUN_DIR}/Ascend-cann-toolkit_8.0.0_linux-aarch64.run --install --force --quiet --nox11 ${install_for_all_cmd}
+echo "source /usr/local/Ascend/ascend-toolkit/set_env.sh ">> ~/.bashrc
+
+%preun
+
+%postun
+
+%clean
+rm -rf %{buildroot}