We use 'ln' in post-install and have to add corresponding dependency.
Also notice a double-dependency on kmod and pciutils and kill the redundancy.
Make dependencies be 1 per line to avoid possible copypaste errors.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Group: System Environment/Kernel
BuildRoot: %{_tmppath}/%{name}-%{version}
Source0: %{name}-%{version}.tar.gz
-BuildRequires: kernel-adaptation-intel-automotive-devel, kmod
-Requires: pciutils, kmod
+BuildRequires: kernel-adaptation-intel-automotive-devel
+BuildRequires: kmod
+Requires: pciutils
+Requires: kmod
+Requires(post): /bin/ln
%if %{kernel_number_str} != ""
Requires: kernel-adaptation-intel-automotive = %{kernel_number}
%else
-Requires: pciutils, kmod, kernel-adaptation-intel-automotive
+Requires: kernel-adaptation-intel-automotive
%endif
%description