commit dfdd3bd6205594e1461507cbe627bf06cc18c11b7b438019e5bb7cdee840cd8a Author: Adrian Schröter Date: Thu Feb 20 09:21:52 2025 +0100 Sync from SUSE:SLFO:Main azure-vm-utils revision 375469667e7b73ddbf5101589de52117 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/azure-vm-utils-v0.4.0.tar.gz b/azure-vm-utils-v0.4.0.tar.gz new file mode 100644 index 0000000..5568351 --- /dev/null +++ b/azure-vm-utils-v0.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:938c80b47ca50e6f335fc462c420e055b7e1867d5a08fd771fd52c759df2592f +size 15688 diff --git a/azure-vm-utils.changes b/azure-vm-utils.changes new file mode 100644 index 0000000..8569bce --- /dev/null +++ b/azure-vm-utils.changes @@ -0,0 +1,14 @@ +------------------------------------------------------------------- +Mon Jan 20 08:34:25 UTC 2025 - John Paul Adrian Glaubitz + +- Include in SLE-15 and SLFO (jsc#PED-11608) + +------------------------------------------------------------------- +Thu Jan 16 12:23:20 UTC 2025 - John Paul Adrian Glaubitz + +- Add sed invocation to adjust path to bash interpretor on SLE-12 + +------------------------------------------------------------------- +Thu Oct 10 19:47:57 UTC 2024 - Chris Patterson + +- Initial packaging (0.4.0). diff --git a/azure-vm-utils.spec b/azure-vm-utils.spec new file mode 100644 index 0000000..4d376ac --- /dev/null +++ b/azure-vm-utils.spec @@ -0,0 +1,60 @@ +# +# spec file for package azure-vm-utils +# +# Copyright (c) Microsoft Corporation. All rights reserved. +# +# 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/ +# + +Name: azure-vm-utils +Version: 0.4.0 +Release: 0 +Summary: Core utilities and configuration for Linux VMs on Azure + +License: MIT +URL: https://github.com/Azure/%{name} +Source: %{url}/archive/v%{version}/%{name}-v%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: dracut +BuildRequires: gcc +BuildRequires: pkgconfig(libudev) + +%description +This package provides a home for core utilities, udev rules and other +configuration to support Linux VMs on Azure. + +%prep +%autosetup -n %{name}-%{version} +%if 0%{?suse_version} < 1500 +sed -i 's/usr\/bin\/bash/bin\/bash/g' initramfs/dracut/modules.d/97azure-disk/module-setup.sh +%endif + +%build +%cmake -DVERSION="%{version}-%{release}" +%cmake_build + +%install +%cmake_install + +%check +%ctest + +%files +%defattr(-,root,root,-) +%{_mandir}/man8/azure-nvme-id.8.gz +%dir %{_prefix}/lib/dracut/modules.d/97azure-disk +%{_prefix}/lib/dracut/modules.d/97azure-disk/module-setup.sh +%{_sbindir}/azure-nvme-id +%{_udevrulesdir}/80-azure-disk.rules + +%changelog