|
| 1 | +%global dracutmodulesdir %(pkg-config --variable=dracutmodulesdir dracut || echo '/usr/lib/dracut/modules.d') |
| 2 | + |
| 3 | +Name: azure-vm-utils |
| 4 | +Version: 0.7.0 |
| 5 | +Release: 1%{?dist} |
| 6 | +Summary: Utilities and udev rules for Linux on Azure |
| 7 | +Vendor: Microsoft Corporation |
| 8 | +Distribution: Azure Linux |
| 9 | +License: MIT |
| 10 | +URL: https://github.com/Azure/%{name} |
| 11 | +Source0: https://github.com/Azure/azure-vm-utils/archive/refs/tags/v0.7.0.tar.gz#/%{name}-%{version}.tar.gz |
| 12 | + |
| 13 | +BuildRequires: binutils |
| 14 | +BuildRequires: cmake |
| 15 | +BuildRequires: gcc |
| 16 | +BuildRequires: glibc-devel |
| 17 | +BuildRequires: json-c-devel |
| 18 | +BuildRequires: kernel-headers |
| 19 | +BuildRequires: libcmocka-devel |
| 20 | +BuildRequires: make |
| 21 | +Requires: mdadm |
| 22 | +Requires: util-linux |
| 23 | + |
| 24 | +%description |
| 25 | +A collection of utilities and udev rules to make the most of the Linux |
| 26 | +experience on Azure. |
| 27 | + |
| 28 | +%package selftest |
| 29 | +Summary: Self-test script for Azure VM Utils |
| 30 | +Requires: %{name} = %{version}-%{release} |
| 31 | +Requires: python3 |
| 32 | + |
| 33 | +%description selftest |
| 34 | +This package contains the self-test script for the Azure VM Utils package. |
| 35 | + |
| 36 | +%prep |
| 37 | +%autosetup |
| 38 | + |
| 39 | +%build |
| 40 | +%cmake -DVERSION="%{version}-%{release}" |
| 41 | +%cmake_build |
| 42 | + |
| 43 | +%install |
| 44 | +%cmake_install |
| 45 | +mkdir -p %{buildroot}%{dracutmodulesdir} |
| 46 | +cp -a initramfs/dracut/modules.d/* %{buildroot}%{dracutmodulesdir} |
| 47 | + |
| 48 | +%check |
| 49 | +%ctest |
| 50 | + |
| 51 | +%files |
| 52 | +%{_libdir}/dracut/modules.d/97azure-disk/module-setup.sh |
| 53 | +%{_libdir}/dracut/modules.d/97azure-unmanaged-sriov/module-setup.sh |
| 54 | +%{_libdir}/systemd/network/01-azure-unmanaged-sriov.network |
| 55 | +%{_libdir}/systemd/system/azure-ephemeral-disk-setup.service |
| 56 | +%{_libdir}/udev/rules.d/10-azure-unmanaged-sriov.rules |
| 57 | +%{_libdir}/udev/rules.d/80-azure-disk.rules |
| 58 | +%{_sbindir}/azure-ephemeral-disk-setup |
| 59 | +%{_sbindir}/azure-nvme-id |
| 60 | +%{_mandir}/man8/azure-ephemeral-disk-setup.8.gz |
| 61 | +%{_mandir}/man8/azure-nvme-id.8.gz |
| 62 | +%{_sysconfdir}/azure-ephemeral-disk-setup.conf |
| 63 | + |
| 64 | +%files selftest |
| 65 | +%{_sbindir}/azure-vm-utils-selftest |
| 66 | +%{_mandir}/man8/azure-vm-utils-selftest.8.gz |
| 67 | + |
| 68 | +%changelog |
| 69 | +* Thu Feb 19 2026 Sumit Jena (HCL Technologies Ltd) - 0.7.0-1 |
| 70 | +- Initial Azure Linux import from the source project (license: same as "License" tag). |
| 71 | +- License verified. |
0 commit comments