2014-01-23 08:04:33 +01:00
|
|
|
#
|
2014-02-02 08:01:46 +01:00
|
|
|
# spec file for package kernel-obs-qa
|
2014-01-23 08:04:33 +01:00
|
|
|
#
|
2024-01-02 09:37:06 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2014-01-23 08:04:33 +01: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.
|
|
|
|
|
2022-03-17 07:01:51 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-01-23 08:04:33 +01:00
|
|
|
#
|
|
|
|
# needsrootforbuild
|
|
|
|
|
2014-02-02 08:01:46 +01:00
|
|
|
|
2024-07-12 07:28:55 +02:00
|
|
|
%define patchversion 6.9.9
|
2014-04-15 08:02:51 +02:00
|
|
|
%define variant %{nil}
|
|
|
|
|
|
|
|
%include %_sourcedir/kernel-spec-macros
|
|
|
|
|
2014-02-02 08:01:46 +01:00
|
|
|
Name: kernel-obs-qa
|
2024-07-12 07:28:55 +02:00
|
|
|
Version: 6.9.9
|
2024-03-13 09:29:45 +01:00
|
|
|
%if 0%{?is_kotd}
|
2024-07-12 07:28:55 +02:00
|
|
|
Release: <RELEASE>.g8c0f797
|
2024-03-13 09:29:45 +01:00
|
|
|
%else
|
|
|
|
Release: 0
|
|
|
|
%endif
|
|
|
|
Summary: Basic QA tests for the kernel
|
|
|
|
License: GPL-2.0-only
|
|
|
|
Group: SLES
|
2014-02-02 08:01:46 +01:00
|
|
|
BuildRequires: kernel-default
|
2014-04-28 08:02:09 +02:00
|
|
|
# kernel-obs-build must be also configured as VMinstall, but is required
|
|
|
|
# here as well to avoid that qa and build package build parallel
|
|
|
|
BuildRequires: kernel-obs-build
|
2014-02-11 08:03:09 +01:00
|
|
|
BuildRequires: modutils
|
2024-01-06 08:08:15 +01:00
|
|
|
%if ! 0%{?is_kotd} || %{?is_kotd_qa}%{!?is_kotd_qa:0}
|
2024-01-25 17:39:31 +01:00
|
|
|
ExclusiveArch: aarch64 armv6hl armv7hl ppc64le riscv64 s390x x86_64
|
2024-01-06 08:08:15 +01:00
|
|
|
%else
|
|
|
|
ExclusiveArch: do_not_build
|
|
|
|
%endif
|
2014-01-23 08:04:33 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package is using the kernel compiled within Open Build Service(OBS)
|
|
|
|
projects and runs basic tests.
|
|
|
|
|
2024-03-13 09:29:45 +01:00
|
|
|
%files
|
|
|
|
/usr/share/%name
|
|
|
|
|
2014-01-23 08:04:33 +01:00
|
|
|
%prep
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%check
|
|
|
|
# More tests are comming, currently the main test is the existens of
|
|
|
|
# this spec file. It does trigger a build within OBS VM which is using
|
|
|
|
# the kernel of the same project.
|
|
|
|
|
|
|
|
# test suites should be packaged in other packages, but build required
|
|
|
|
# and called here.
|
|
|
|
|
2015-04-17 08:05:31 +02:00
|
|
|
krel=$(uname -r)
|
2021-08-21 10:03:17 +02:00
|
|
|
if test ! -d "/lib/modules/$krel/kernel" && test ! -d "/usr/lib/modules/$krel/kernel"; then
|
2015-04-17 08:05:31 +02:00
|
|
|
echo "Kernel package for $krel not installed; exiting"
|
|
|
|
exit 0
|
2014-04-28 08:02:09 +02:00
|
|
|
fi
|
2015-04-17 08:05:31 +02:00
|
|
|
/sbin/modprobe loop
|
2014-01-23 08:04:33 +01:00
|
|
|
|
|
|
|
%install
|
2014-06-05 08:02:39 +02:00
|
|
|
mkdir -p %{buildroot}/usr/share/%name
|
|
|
|
touch %{buildroot}/usr/share/%name/logfile
|
2014-01-23 08:04:33 +01:00
|
|
|
|
2014-02-02 08:01:46 +01:00
|
|
|
%changelog
|