From 39cb24778526700cf8feb86d421b1c2669e8e60a Mon Sep 17 00:00:00 2001 From: mgb01105731 Date: Thu, 17 Apr 2025 16:15:27 +0800 Subject: [PATCH] Add the file path of alinux --- cloud-init.spec | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/cloud-init.spec b/cloud-init.spec index dd12c1a..482ac17 100644 --- a/cloud-init.spec +++ b/cloud-init.spec @@ -1,10 +1,16 @@ -%define anolis_release 3 +%define anolis_release 4 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %define __python /usr/bin/python3 %define init_system systemd +%if 0%{?alinux} +%define file_patch /usr/libexec/cloud-init +%else +%define file_patch /usr/lib/cloud-init +%endif + # See: http://www.zarb.org/~jasonc/macros.php # Or: http://www.rpm.org/max-rpm/ch-rpm-inside.html @@ -171,11 +177,14 @@ fi %dir %{_sharedstatedir}/cloud # Python code is here... %{python_sitelib}/* -/usr/lib/cloud-init/ds-identify -/usr/lib/cloud-init/uncloud-init -/usr/lib/cloud-init/write-ssh-key-fingerprints +%{file_patch}/ds-identify +%{file_patch}/uncloud-init +%{file_patch}/write-ssh-key-fingerprints %changelog +* Thu Apr 17 2025 mgb01105731 - 19.1.17-4 +- Add the file path of alinux + * Mon Mar 11 2024 Bo Ren - 19.1.17-3 - Rebuild with python3.11 -- Gitee