diff --git a/mlnx-ofa_kernel.spec b/kmod-mlnx-ofa_kernel.spec similarity index 99% rename from mlnx-ofa_kernel.spec rename to kmod-mlnx-ofa_kernel.spec index e3c24c4bd1f8a04e8d95a3523f17fb2189de8fdf..9dbe53c9e927adc999d917a12552360e5e47c702 100644 --- a/mlnx-ofa_kernel.spec +++ b/kmod-mlnx-ofa_kernel.spec @@ -26,6 +26,10 @@ # # +# anolis specification +%global pkg mlnx-ofa_kernel +%define anolis_release 1 + # KMP is disabled by default %{!?KMP: %global KMP 0} @@ -70,9 +74,8 @@ %{!?KERNEL_SOURCES: %global KERNEL_SOURCES /lib/modules/%{KVERSION}/source} -%{!?_name: %global _name mlnx-ofa_kernel} -%{!?_version: %global _version 5.8} -%{!?_release: %global _release OFED.5.8.1.1.2.1} +%{!?_name: %global _name kmod-%{pkg}} +%{!?_release: %global _release OFED.5.8.1.1.2.1_%{anolis_release}} %global _kmp_rel %{_release}%{?_kmp_build_num}%{?_dist} %global utils_pname %{_name} @@ -86,7 +89,7 @@ Release: %{_release}%{?_dist} License: GPLv2 Url: http://www.mellanox.com/ Group: System Environment/Base -Source: %{_name}-%{_version}.tgz +Patch0: source-git.patch BuildRoot: %{?build_root:%{build_root}}%{!?build_root:/var/tmp/OFED} Vendor: Mellanox Technologies Obsoletes: kernel-ib @@ -255,7 +258,7 @@ drivers against it. %{!?install_mod_dir: %global install_mod_dir updates} %prep -%setup -n %{_name}-%{_version} +%autosetup -p1 -c -T set -- * mkdir source mv "$@" source/