diff options
author | CoprDistGit <infra@openeuler.org> | 2025-03-13 03:11:13 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-03-13 03:11:13 +0000 |
commit | c3d9050b2de770fca0e9db3584837a5fbf9b8cbe (patch) | |
tree | 3d82fb230ca7ae55165021ce801d524483a2a3b3 | |
parent | c02a5f807070d867d8e88d0bdf9a28b2bacd671d (diff) |
automatic import of Ascend-cann-toolkitopeneuler22.03_LTS
-rw-r--r-- | toolkit.spec | 75 |
1 files changed, 37 insertions, 38 deletions
diff --git a/toolkit.spec b/toolkit.spec index 6798595..07dba94 100644 --- a/toolkit.spec +++ b/toolkit.spec @@ -1,39 +1,38 @@ -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
+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} |