55
66%global KVERSION %{target_kernel_version_full }
77
8- %global _name kernel-mft
9-
10- Name: %{_name }
11- Summary: %{name } Kernel Module for the %{KVERSION } kernel
12- Version: 4.30.0
13- Release: 1%{?dist }
14- License: Dual BSD/GPLv2
15- Group: System Environment/Kernel
8+ Name: mft_kernel
9+ Summary: %{name } Kernel Module for the %{KVERSION } kernel
10+ Version: 4.30.0
11+ Release: 1%{?dist }
12+ License: Dual BSD/GPLv2
13+ Group: System Environment/Kernel
1614
1715#
1816# To populate these sources:
@@ -21,7 +19,7 @@ Group: System Environment/Kernel
2119# 3. Place the unsigned package and signed binary in this spec's folder
2220# 4. Build this spec
2321
24- Source0: %{ name } -%{version }-%{release }.%{_arch }.rpm
22+ Source0: kernel-mft -%{version }-%{release }.%{_arch }.rpm
2523Source1: mst_pci.ko
2624Source2: mst_pciconf.ko
2725Vendor: Microsoft Corporation
@@ -34,6 +32,17 @@ Requires: kmod
3432%description
3533mft kernel module(s)
3634
35+ # Azure Linux attempts to match the spec file name and the "Name" tag.
36+ # Upstream's mft_kernel spec set rpm name as kernel-mft. To comply, we
37+ # set "Name" as mft_kernel but force a build of kernel-mft rpm and
38+ # prevent mft_kernel rpm. A %files section is declared for kernel-mft
39+ # but not for mft_kernel which is the default rpm.
40+ %package -n kernel-mft
41+ Summary: kernel-mft Kernel Module for the %{KVERSION } kernel
42+
43+ %description -n kernel-mft
44+ This package provides a kernel-mft kernel module.
45+
3746%global debug_package %{nil }
3847
3948%prep
@@ -56,9 +65,9 @@ rm -rf %{buildroot}
5665%postun
5766/sbin/depmod %{KVERSION }
5867
59- %files
68+ %files -n kernel-mft
6069%defattr(-,root,root,-)
61- %license %{_datadir }/licenses/%{ name } /COPYING
70+ %license %{_defaultlicensedir }/kernel-mft /COPYING
6271/lib/modules/%{KVERSION }/updates/
6372
6473%changelog
0 commit comments