2015-04-21 18:20:20 +02:00
|
|
|
#
|
|
|
|
# spec file for package kmod-testsuite
|
|
|
|
#
|
2016-02-09 16:34:35 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-04-21 18:20:20 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: kmod-testsuite
|
|
|
|
%define lname libkmod2
|
2015-12-07 16:04:47 +01:00
|
|
|
Version: 22
|
2015-04-21 18:22:25 +02:00
|
|
|
Release: 0
|
2015-04-21 18:20:20 +02:00
|
|
|
Summary: Testsuite of the kmod package
|
|
|
|
License: LGPL-2.1+ and GPL-2.0+
|
|
|
|
Group: System/Kernel
|
|
|
|
Url: http://www.jonmasters.org/blog/2011/12/20/libkmod-replaces-module-init-tools/
|
2015-12-07 16:04:47 +01:00
|
|
|
#Announce: https://lwn.net/Articles/664801/
|
2015-04-21 18:20:20 +02:00
|
|
|
|
|
|
|
#Git-Web: http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary
|
|
|
|
#Git-Clone: git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod
|
|
|
|
Source: ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/kmod-%version.tar.xz
|
|
|
|
Source2: ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/kmod-%version.tar.sign
|
|
|
|
Patch1: 0002-modprobe-Recognize-allow-unsupported-modules-on-comm.patch
|
|
|
|
Patch2: 0003-libkmod-config-Recognize-allow_unsupported_modules-i.patch
|
|
|
|
Patch3: 0009-libkmod-Implement-filtering-of-unsupported-modules-o.patch
|
|
|
|
Patch4: 0010-modprobe-Implement-allow-unsupported-modules.patch
|
|
|
|
Patch5: 0011-Do-not-filter-unsupported-modules-when-running-a-van.patch
|
|
|
|
Patch7: 0001-use-correct-sort-method-in-test-array.patch
|
2016-06-17 17:29:31 +02:00
|
|
|
Patch8: depmod-Ignore_PowerPC64_ABIv2_.TOC.symbol.patch
|
|
|
|
Patch9: 0001-libkmod-Handle-long-lines-in-proc-modules.patch
|
2015-04-21 18:20:20 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: git-core
|
|
|
|
BuildRequires: kernel-default-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig >= 0.21
|
|
|
|
BuildRequires: xz
|
|
|
|
Requires: suse-module-tools
|
2015-11-07 11:56:11 +01:00
|
|
|
%define kdir /usr/src/linux-obj/%_target_cpu/default
|
2015-04-21 18:20:20 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This spec file does not produce any binary RPMs. It just builds kmod and
|
|
|
|
runs its testsuite. It has been split off the kmod package to avoid a
|
|
|
|
buildloop with the kernel.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n kmod-%version
|
2016-06-17 17:29:31 +02:00
|
|
|
%patch -P 1 -P 2 -P 3 -P 4 -P 5 -P 7 -P 8 -P 9 -p1
|
2015-04-21 18:20:20 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
|
|
|
# The extra --includedir gives us the possibility to detect dependent
|
|
|
|
# packages which fail to properly use pkgconfig.
|
|
|
|
%configure \
|
2016-07-21 11:48:01 +02:00
|
|
|
--without-xz \
|
|
|
|
--without-zlib \
|
2015-04-21 18:20:20 +02:00
|
|
|
--includedir="%_includedir/kmod" \
|
|
|
|
--with-rootlibdir="%_libdir" \
|
|
|
|
--bindir="%_bindir"
|
2015-11-07 11:56:11 +01:00
|
|
|
make %{?_smp_mflags} V=1 KDIR="%kdir"
|
2015-04-21 18:20:20 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
# empty
|
|
|
|
|
|
|
|
%check
|
2016-04-01 09:56:24 +02:00
|
|
|
%ifarch ppc64
|
|
|
|
make check V=1 KDIR="%kdir" || echo "Warning: bypass boo#897845"
|
|
|
|
%else
|
2015-11-07 11:56:11 +01:00
|
|
|
make check V=1 KDIR="%kdir"
|
2016-04-01 09:56:24 +02:00
|
|
|
%endif
|
2015-04-21 18:20:20 +02:00
|
|
|
|
|
|
|
%changelog
|