From: Jan Rękorajski Date: Fri, 1 May 2015 09:48:18 +0000 (+0200) Subject: - tests require kernel build environment X-Git-Tag: auto/th/kmod-20-2~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=2b79c875129cebefec6e3720cc42860d341a5551;p=packages%2Fkmod.git - tests require kernel build environment --- diff --git a/kmod.spec b/kmod.spec index d1c4ac5..9038b6a 100644 --- a/kmod.spec +++ b/kmod.spec @@ -23,6 +23,7 @@ URL: http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary BuildRequires: autoconf >= 2.60 BuildRequires: automake >= 1:1.11 BuildRequires: gtk-doc >= 1.14 +BuildRequires: kernel-module-build BuildRequires: libtool >= 2:2.0 BuildRequires: pkgconfig BuildRequires: python-devel @@ -140,7 +141,7 @@ sed -i -e 's#testsuite/test-modprobe# #g' Makefile.am --with-zlib %{__make} -%{?with_tests:%{__make} check} +%{?with_tests:%{__make} check KDIR=%{_kernelsrcdir} KVER=%{_kernel_ver}} %install rm -rf $RPM_BUILD_ROOT