packaging: add dependency on ln
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 7 Sep 2012 09:05:53 +0000 (12:05 +0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Mon, 10 Sep 2012 07:42:37 +0000 (10:42 +0300)
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>
packaging/intel-emgd-kmod.spec

index b0bb402..34bc126 100644 (file)
@@ -35,12 +35,15 @@ Vendor: Intel
 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