File kernel-obs-qa.spec.in of Package kernel-docs-rt (Revision 71cb8e846dd5fff9992b1b3181ab3d0e)
Currently displaying revision 71cb8e846dd5fff9992b1b3181ab3d0e , Show latest
xxxxxxxxxx
1
#
2
# spec file for package kernel-obs-qa
3
#
4
# Copyright (c) @YEAR@ SUSE LINUX GmbH, Nuernberg, Germany.
5
#
6
# All modifications and additions to the file contributed by third parties
7
# remain the property of their copyright owners, unless otherwise agreed
8
# upon. The license for this file, and modifications and additions to the
9
# file, is the same license as for the pristine package itself (unless the
10
# license for the pristine package is not an Open Source License, in which
11
# case the license is the MIT License). An "Open Source License" is a
12
# license that conforms to the Open Source Definition (Version 1.9)
13
# published by the Open Source Initiative.
14
15
# Please submit bugfixes or comments via http://bugs.opensuse.org/
16
#
17
# needsrootforbuild
18
19
20
%define patchversion @PATCHVERSION@
21
%define variant @VARIANT@%{nil}
22
23
%include %_sourcedir/kernel-spec-macros
24
25
Name: kernel-obs-qa
26
BuildRequires: kernel-default
27
# kernel-obs-build must be also configured as VMinstall, but is required
28
# here as well to avoid that qa and build package build parallel
29
BuildRequires: kernel-obs-build
30
BuildRequires: modutils
31
ExclusiveArch: @ARCHS@
32
%if 0%{?suse_version} < 1200
33
# for SLE 11
34
BuildRoot: %{_tmppath}/%{name}-%{version}-build
35
%endif
36
Summary: Basic QA tests for the kernel
37
License: GPL-2.0
38
Group: SLES
39
Version: @RPMVERSION@
40
%if 0%{?is_kotd}
41
Release: <RELEASE>.g@COMMIT@
42
%else
43
Release: @RELEASE@
44
%endif
45
46
%description
47
This package is using the kernel compiled within Open Build Service(OBS)
48
projects and runs basic tests.
49
50
%prep
51
52
%build
53
54
%check
55
# More tests are comming, currently the main test is the existens of
56
# this spec file. It does trigger a build within OBS VM which is using
57
# the kernel of the same project.
58
59
# test suites should be packaged in other packages, but build required
60
# and called here.
61
62
krel=$(uname -r)
63
if test ! -d "/lib/modules/$krel/kernel"; then
64
echo "Kernel package for $krel not installed; exiting"
65
exit 0
66
fi
67
/sbin/modprobe loop
68
69
%install
70
mkdir -p %{buildroot}/usr/share/%name
71
touch %{buildroot}/usr/share/%name/logfile
72
73
%files
74
%defattr(-,root,root)
75
/usr/share/%name
76
77
%changelog
78