2015-04-21 18:20:20 +02:00
|
|
|
#
|
|
|
|
# spec file for package kmod-testsuite
|
|
|
|
#
|
2024-04-05 00:34:58 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
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.
|
|
|
|
|
2018-12-07 20:01:50 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-04-21 18:20:20 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-10-28 10:47:47 +02:00
|
|
|
%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150200
|
|
|
|
%define use_zstd 1
|
|
|
|
%endif
|
|
|
|
|
2015-04-21 18:20:20 +02:00
|
|
|
Name: kmod-testsuite
|
|
|
|
%define lname libkmod2
|
2024-04-05 00:34:58 +02:00
|
|
|
Version: 32
|
2015-04-21 18:22:25 +02:00
|
|
|
Release: 0
|
2015-04-21 18:20:20 +02:00
|
|
|
Summary: Testsuite of the kmod package
|
2021-05-28 00:33:54 +02:00
|
|
|
License: GPL-2.0-or-later AND LGPL-2.1-or-later
|
2015-04-21 18:20:20 +02:00
|
|
|
Group: System/Kernel
|
2019-02-08 02:25:26 +01:00
|
|
|
URL: https://www.kernel.org/pub/linux/utils/kernel/kmod/
|
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
|
2017-07-06 12:22:24 +02:00
|
|
|
Source: https://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-%version.tar.xz
|
|
|
|
Source2: https://www.kernel.org/pub/linux/utils/kernel/kmod/kmod-%version.tar.sign
|
2022-03-28 20:21:02 +02:00
|
|
|
Source3: kmod.keyring
|
2019-05-01 11:18:19 +02:00
|
|
|
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
|
|
|
|
Patch6: 0012-modprobe-print-unsupported-status.patch
|
2023-07-16 19:10:15 +02:00
|
|
|
Patch16: no-stylesheet-download.patch
|
2015-04-21 18:20:20 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2021-09-14 10:50:01 +02:00
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
2019-02-13 00:23:22 +01:00
|
|
|
BuildRequires: kernel-default-devel
|
|
|
|
BuildRequires: libopenssl-devel >= 1.1.0
|
2015-04-21 18:20:20 +02:00
|
|
|
BuildRequires: libtool
|
2021-01-14 13:48:37 +01:00
|
|
|
BuildRequires: libxslt-tools
|
2015-04-21 18:20:20 +02:00
|
|
|
BuildRequires: pkgconfig >= 0.21
|
|
|
|
BuildRequires: xz
|
2016-07-21 11:52:34 +02:00
|
|
|
BuildRequires: pkgconfig(liblzma) >= 4.99
|
2021-10-28 10:47:47 +02:00
|
|
|
%if 0%{?use_zstd}
|
|
|
|
BuildRequires: zstd
|
2021-06-07 09:57:02 +02:00
|
|
|
BuildRequires: pkgconfig(libzstd)
|
2021-10-28 10:47:47 +02:00
|
|
|
%endif
|
2021-06-07 11:26:21 +02:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
2015-04-21 18:20:20 +02:00
|
|
|
Requires: suse-module-tools
|
2018-03-20 11:30:04 +01:00
|
|
|
%if !0%{?is_opensuse}
|
|
|
|
ExcludeArch: %ix86 s390
|
|
|
|
%endif
|
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
|
2018-12-11 00:56:41 +01:00
|
|
|
%autopatch -p1
|
2015-04-21 18:20:20 +02:00
|
|
|
|
|
|
|
%build
|
2022-06-30 18:22:34 +02:00
|
|
|
GTKDOCIZE=/bin/true autoreconf -fi
|
2016-07-21 11:52:34 +02:00
|
|
|
export LDFLAGS="-Wl,-z,relro,-z,now"
|
2015-04-21 18:20:20 +02:00
|
|
|
# The extra --includedir gives us the possibility to detect dependent
|
|
|
|
# packages which fail to properly use pkgconfig.
|
|
|
|
%configure \
|
2016-07-21 11:52:34 +02:00
|
|
|
--with-xz \
|
|
|
|
--with-zlib \
|
2019-02-13 00:23:22 +01:00
|
|
|
--with-openssl \
|
2021-10-28 10:47:47 +02:00
|
|
|
%if 0%{?use_zstd}
|
2021-06-07 09:57:02 +02:00
|
|
|
--with-zstd \
|
2021-10-28 10:47:47 +02:00
|
|
|
%endif
|
2015-04-21 18:20:20 +02:00
|
|
|
--includedir="%_includedir/kmod" \
|
|
|
|
--with-rootlibdir="%_libdir" \
|
2023-07-16 19:10:15 +02:00
|
|
|
%if 0%{?suse_version} > 1500
|
2023-07-24 12:29:19 +02:00
|
|
|
--with-module-directory="%_prefix/lib/modules" \
|
2023-07-16 19:10:15 +02:00
|
|
|
%endif
|
2015-04-21 18:20:20 +02:00
|
|
|
--bindir="%_bindir"
|
2021-05-28 00:33:54 +02:00
|
|
|
%make_build 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
|