| 1 |
Name: azure-vm-utils |
| 2 |
Version: %{__git_version} |
| 3 |
Release: %{__git_release}%{?dist} |
| 4 |
Summary: Utilities and udev rules for Linux on Azure |
| 5 |
|
| 6 |
License: MIT |
| 7 |
URL: https://github.com/Azure/%{name} |
| 8 |
Source0: %{name}_dev.tgz |
| 9 |
|
| 10 |
BuildRequires: cmake |
| 11 |
BuildRequires: gcc |
| 12 |
BuildRequires: json-c-devel |
| 13 |
BuildRequires: libcmocka-devel |
| 14 |
|
| 15 |
%description |
| 16 |
A collection of utilities and udev rules to make the most of the Linux |
| 17 |
experience on Azure. |
| 18 |
|
| 19 |
%package selftest |
| 20 |
Summary: Self-test script for Azure VM Utils |
| 21 |
Requires: %{name} = %{version}-%{release} |
| 22 |
%if 0%{?rhel} == 8 || 0%{?centos} == 8 || 0%{?almalinux} == 8 |
| 23 |
Requires: python39 |
| 24 |
%else |
| 25 |
Requires: python3 >= 3.9 |
| 26 |
%endif |
| 27 |
|
| 28 |
%description selftest |
| 29 |
This package contains the self-test script for the Azure VM Utils package. |
| 30 |
|
| 31 |
%prep |
| 32 |
%autosetup |
| 33 |
|
| 34 |
%build |
| 35 |
%cmake -DVERSION="%{version}-%{release}" -DAZURE_NVME_ID_INSTALL_DIR="%{_bindir}" |
| 36 |
%cmake_build |
| 37 |
|
| 38 |
%install |
| 39 |
%cmake_install |
| 40 |
|
| 41 |
%check |
| 42 |
%ctest |
| 43 |
|
| 44 |
%if 0%{?rhel} == 8 && 0%{?centos} == 8 && 0%{?almalinux} == 8 |
| 45 |
%undefine __brp_mangle_shebangs |
| 46 |
%endif |
| 47 |
|
| 48 |
%files |
| 49 |
%{_exec_prefix}/lib/dracut/modules.d/97azure-disk/module-setup.sh |
| 50 |
%{_exec_prefix}/lib/dracut/modules.d/97azure-unmanaged-sriov/module-setup.sh |
| 51 |
%{_exec_prefix}/lib/systemd/network/01-azure-unmanaged-sriov.network |
| 52 |
%{_exec_prefix}/lib/udev/rules.d/10-azure-unmanaged-sriov.rules |
| 53 |
%{_exec_prefix}/lib/udev/rules.d/80-azure-disk.rules |
| 54 |
%{_bindir}/azure-nvme-id |
| 55 |
%{_mandir}/man8/azure-nvme-id.8.gz |
| 56 |
|
| 57 |
%files selftest |
| 58 |
%{_bindir}/azure-vm-utils-selftest |
| 59 |
%{_mandir}/man8/azure-vm-utils-selftest.8.gz |
| 60 |
|
| 61 |
%changelog |
| 62 |
* Wed Feb 05 2025 Test <[email protected]> - %{__git_version}-%{__git_release} |
| 63 |
- Test test test |