2018-09-13 17:12:20 +02:00
|
|
|
#
|
|
|
|
# spec file for package os
|
|
|
|
#
|
2019-01-05 19:22:42 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2018-09-13 17:12: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-11 10:29:36 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-09-13 17:12:20 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define name_ext -test
|
|
|
|
%define short_name os-autoinst
|
|
|
|
Name: %{short_name}%{?name_ext}
|
2019-10-19 19:06:56 +02:00
|
|
|
Version: 4.5.1571474599.7d873cb5
|
2018-09-13 17:12:20 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: test package for os-autoinst
|
2019-07-03 16:34:37 +02:00
|
|
|
#BuildRequires: %{short_name} == %{version}
|
2018-12-11 09:46:10 +01:00
|
|
|
License: GPL-2.0-or-later
|
2019-07-03 16:34:37 +02:00
|
|
|
BuildRequires: %{short_name}
|
2018-09-13 17:12:20 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
# workaround to prevent post/install failing assuming this file for whatever
|
|
|
|
# reason
|
|
|
|
touch %{_sourcedir}/%{short_name}
|
|
|
|
|
|
|
|
%build
|
|
|
|
# call one of the components but not openqa itself which would need a valid
|
|
|
|
# configuration
|
|
|
|
isotovideo --help
|
|
|
|
echo '1;' > main.pm
|
|
|
|
mkdir needles
|
|
|
|
cat - > vars.json <<EOF
|
|
|
|
{
|
|
|
|
"CASEDIR": "/tmp",
|
|
|
|
"PRJDIR": "/tmp"
|
|
|
|
}
|
|
|
|
EOF
|
|
|
|
isotovideo -d casedir=$(pwd -P) productdir=$(pwd -P) |& tee isotovideo.log ||:
|
2018-11-26 22:40:06 +01:00
|
|
|
grep 'no kvm-img/qemu-img found' isotovideo.log
|
2018-09-13 17:12:20 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
# disable debug packages in package test to prevent error about missing files
|
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
%changelog
|