2014-04-28 08:02:09 +02:00
|
|
|
#
|
|
|
|
# spec file for package kernel-obs-qa
|
|
|
|
#
|
2015-01-07 08:02:51 +01:00
|
|
|
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2014-04-28 08:02:09 +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/
|
|
|
|
#
|
|
|
|
# needsrootforbuild
|
|
|
|
|
|
|
|
|
2015-04-17 08:05:31 +02:00
|
|
|
%define patchversion 4.0.0
|
2014-04-28 08:02:09 +02:00
|
|
|
%define variant %{nil}
|
|
|
|
|
|
|
|
%include %_sourcedir/kernel-spec-macros
|
|
|
|
|
|
|
|
Name: kernel-obs-qa-xen
|
|
|
|
BuildRequires: kernel-xen
|
|
|
|
# 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
|
|
|
|
BuildRequires: modutils
|
|
|
|
ExclusiveArch: %ix86 x86_64
|
|
|
|
%if 0%{?suse_version} < 1200
|
|
|
|
# for SLE 11
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%endif
|
|
|
|
Summary: Basic QA tests for the kernel
|
|
|
|
License: GPL-2.0
|
|
|
|
Group: SLES
|
2015-04-17 08:05:31 +02:00
|
|
|
Version: 4.0.0
|
2014-04-28 08:02:09 +02:00
|
|
|
%if 0%{?is_kotd}
|
2015-04-17 08:05:31 +02:00
|
|
|
Release: <RELEASE>.g49e42b3
|
2014-04-28 08:02:09 +02:00
|
|
|
%else
|
2014-11-01 08:04:35 +01:00
|
|
|
Release: 0
|
2014-04-28 08:02:09 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package is using the kernel compiled within Open Build Service(OBS)
|
|
|
|
projects and runs basic tests.
|
|
|
|
|
|
|
|
%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)
|
|
|
|
if test ! -d "/lib/modules/$krel/kernel"; then
|
|
|
|
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-04-28 08:02:09 +02:00
|
|
|
|
|
|
|
%install
|
2014-06-05 08:02:39 +02:00
|
|
|
mkdir -p %{buildroot}/usr/share/%name
|
|
|
|
touch %{buildroot}/usr/share/%name/logfile
|
2014-04-28 08:02:09 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2014-06-05 08:02:39 +02:00
|
|
|
/usr/share/%name
|
2014-04-28 08:02:09 +02:00
|
|
|
|
|
|
|
%changelog
|