|
|
@@ -1,7 +1,7 @@
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# spec file for package os-autoinst
|
|
|
|
# spec file for package os-autoinst
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# Copyright (c) 2025 SUSE LLC
|
|
|
|
# Copyright (c) 2024 SUSE LLC
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
@@ -17,7 +17,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: os-autoinst
|
|
|
|
Name: os-autoinst
|
|
|
|
Version: 5.1753993900.1487e47
|
|
|
|
Version: 4.6.1725896784.e007c26
|
|
|
|
Release: 0
|
|
|
|
Release: 0
|
|
|
|
Summary: OS-level test automation
|
|
|
|
Summary: OS-level test automation
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
License: GPL-2.0-or-later
|
|
|
@@ -25,21 +25,18 @@ Group: Development/Tools/Other
|
|
|
|
URL: https://github.com/os-autoinst/os-autoinst
|
|
|
|
URL: https://github.com/os-autoinst/os-autoinst
|
|
|
|
Source0: %{name}-%{version}.tar.xz
|
|
|
|
Source0: %{name}-%{version}.tar.xz
|
|
|
|
%{perl_requires}
|
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150400
|
|
|
|
|
|
|
|
# openSUSE Tumbleweed and Leap 15.4
|
|
|
|
%define opencv_require pkgconfig(opencv4)
|
|
|
|
%define opencv_require pkgconfig(opencv4)
|
|
|
|
# exclude additional sub packages that would pull in a lot of extra dependencies on SLE
|
|
|
|
|
|
|
|
%if 0%{?suse_version} && !0%{?is_opensuse}
|
|
|
|
|
|
|
|
%bcond_with devel_package
|
|
|
|
|
|
|
|
%bcond_with deps_package
|
|
|
|
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
%bcond_without devel_package
|
|
|
|
%define opencv_require pkgconfig(opencv)
|
|
|
|
%bcond_without deps_package
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
# The following line is generated from dependencies.yaml
|
|
|
|
# The following line is generated from dependencies.yaml
|
|
|
|
%define build_base_requires %opencv_require gcc-c++ perl(Pod::Html) pkg-config pkgconfig(fftw3) pkgconfig(libpng) pkgconfig(sndfile) pkgconfig(theoraenc)
|
|
|
|
%define build_base_requires %opencv_require gcc-c++ perl(Pod::Html) pkg-config pkgconfig(fftw3) pkgconfig(libpng) pkgconfig(sndfile) pkgconfig(theoraenc)
|
|
|
|
# The following line is generated from dependencies.yaml
|
|
|
|
# The following line is generated from dependencies.yaml
|
|
|
|
%define build_requires %build_base_requires cmake ninja
|
|
|
|
%define build_requires %build_base_requires cmake ninja
|
|
|
|
# The following line is generated from dependencies.yaml
|
|
|
|
# The following line is generated from dependencies.yaml
|
|
|
|
%define main_requires git-core iproute2 jq openssh-clients perl(B::Deparse) perl(Carp) perl(Carp::Always) perl(Config) perl(Cpanel::JSON::XS) perl(Crypt::DES) perl(Cwd) perl(Data::Dumper) perl(Digest::MD5) perl(DynaLoader) perl(English) perl(Errno) perl(Exception::Class) perl(Exporter) perl(ExtUtils::testlib) perl(Fcntl) perl(Feature::Compat::Try) perl(File::Basename) perl(File::Find) perl(File::Map) perl(File::Path) perl(File::Temp) perl(File::Which) perl(File::chdir) perl(IO::Handle) perl(IO::Scalar) perl(IO::Select) perl(IO::Socket) perl(IO::Socket::INET) perl(IO::Socket::UNIX) perl(IPC::Open3) perl(IPC::Run::Debug) perl(IPC::System::Simple) perl(JSON::Validator) perl(List::MoreUtils) perl(List::Util) perl(Mojo::IOLoop::ReadWriteProcess) >= 0.26 perl(Mojo::JSON) perl(Mojo::Log) perl(Mojo::URL) perl(Mojo::UserAgent) perl(Mojolicious) >= 9.340.0 perl(Mojolicious::Lite) perl(Net::DBus) perl(Net::Domain) perl(Net::IP) perl(Net::SNMP) perl(Net::SSH2) perl(POSIX) perl(Scalar::Util) perl(Socket) perl(Socket::MsgHdr) perl(Term::ANSIColor) perl(Thread::Queue) perl(Time::HiRes) perl(Time::Moment) perl(Time::Seconds) perl(XML::LibXML) perl(XML::SemanticDiff) perl(YAML::PP) perl(YAML::XS) perl(autodie) perl(base) perl(constant) perl(integer) perl(strict) perl(version) perl(warnings) perl-base rsync sshpass
|
|
|
|
%define main_requires git-core perl(B::Deparse) perl(Carp) perl(Carp::Always) perl(Config) perl(Cpanel::JSON::XS) perl(Crypt::DES) perl(Cwd) perl(Data::Dumper) perl(Digest::MD5) perl(DynaLoader) perl(English) perl(Errno) perl(Exception::Class) perl(Exporter) perl(ExtUtils::testlib) perl(Fcntl) perl(File::Basename) perl(File::Find) perl(File::Map) perl(File::Path) perl(File::Temp) perl(File::Which) perl(File::chdir) perl(IO::Handle) perl(IO::Scalar) perl(IO::Select) perl(IO::Socket) perl(IO::Socket::INET) perl(IO::Socket::UNIX) perl(IPC::Open3) perl(IPC::Run::Debug) perl(IPC::System::Simple) perl(JSON::Validator) perl(List::MoreUtils) perl(List::Util) perl(Mojo::IOLoop::ReadWriteProcess) >= 0.26 perl(Mojo::JSON) perl(Mojo::Log) perl(Mojo::URL) perl(Mojo::UserAgent) perl(Mojolicious) >= 9.340.0 perl(Mojolicious::Lite) perl(Net::DBus) perl(Net::Domain) perl(Net::IP) perl(Net::SNMP) perl(Net::SSH2) perl(POSIX) perl(Scalar::Util) perl(Socket) perl(Socket::MsgHdr) perl(Term::ANSIColor) perl(Thread::Queue) perl(Time::HiRes) perl(Time::Moment) perl(Time::Seconds) perl(Try::Tiny) perl(XML::LibXML) perl(XML::SemanticDiff) perl(YAML::PP) perl(YAML::XS) perl(autodie) perl(base) perl(constant) perl(integer) perl(strict) perl(version) perl(warnings) perl-base rsync sshpass
|
|
|
|
# all requirements needed by the tests, do not require on this in the package
|
|
|
|
# all requirements needed by the tests, do not require on this in the package
|
|
|
|
# itself or any sub-packages
|
|
|
|
# itself or any sub-packages
|
|
|
|
# SLE is missing spell check requirements
|
|
|
|
# SLE is missing spell check requirements
|
|
|
@@ -54,7 +51,11 @@ Source0: %{name}-%{version}.tar.xz
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
%define spellcheck_requires %{nil}
|
|
|
|
%define spellcheck_requires %{nil}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?sle_version} < 150200 && !0%{?is_opensuse}
|
|
|
|
|
|
|
|
%bcond_without yamllint
|
|
|
|
|
|
|
|
%else
|
|
|
|
%bcond_with yamllint
|
|
|
|
%bcond_with yamllint
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%if %{with yamllint}
|
|
|
|
%if %{with yamllint}
|
|
|
|
# The following line is generated from dependencies.yaml
|
|
|
|
# The following line is generated from dependencies.yaml
|
|
|
|
%define yamllint_requires python3-yamllint
|
|
|
|
%define yamllint_requires python3-yamllint
|
|
|
@@ -66,13 +67,11 @@ Source0: %{name}-%{version}.tar.xz
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
%bcond_with black
|
|
|
|
%bcond_with black
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
# SLE is missing Python and Lua support requirements
|
|
|
|
# SLE is missing Python support requirements
|
|
|
|
%if 0%{?is_opensuse}
|
|
|
|
%if 0%{?is_opensuse}
|
|
|
|
%bcond_without python_support
|
|
|
|
%bcond_without python_support
|
|
|
|
%bcond_without lua_support
|
|
|
|
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
%bcond_with python_support
|
|
|
|
%bcond_with python_support
|
|
|
|
%bcond_with lua_support
|
|
|
|
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%if %{with python_support}
|
|
|
|
%if %{with python_support}
|
|
|
|
# The following line is generated from dependencies.yaml
|
|
|
|
# The following line is generated from dependencies.yaml
|
|
|
@@ -80,12 +79,6 @@ Source0: %{name}-%{version}.tar.xz
|
|
|
|
%else
|
|
|
|
%else
|
|
|
|
%define python_support_requires %{nil}
|
|
|
|
%define python_support_requires %{nil}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%if %{with lua_support}
|
|
|
|
|
|
|
|
# The following line is generated from dependencies.yaml
|
|
|
|
|
|
|
|
%define lua_support_requires perl(Inline::Lua)
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
%define lua_support_requires %{nil}
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{with black}
|
|
|
|
%if %{with black}
|
|
|
|
# The following line is generated from dependencies.yaml
|
|
|
|
# The following line is generated from dependencies.yaml
|
|
|
|
%define python_style_requires python3-black
|
|
|
|
%define python_style_requires python3-black
|
|
|
@@ -113,13 +106,13 @@ Source0: %{name}-%{version}.tar.xz
|
|
|
|
%define test_non_s390_requires %{nil}
|
|
|
|
%define test_non_s390_requires %{nil}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
# The following line is generated from dependencies.yaml
|
|
|
|
# The following line is generated from dependencies.yaml
|
|
|
|
%define test_base_requires %main_requires cpio icewm perl(Benchmark) perl(Devel::Cover) perl(FindBin) perl(Pod::Coverage) perl(Test::Mock::Time) perl(Test::MockModule) perl(Test::MockObject) perl(Test::MockRandom) perl(Test::Mojo) perl(Test::Most) perl(Test::Output) perl(Test::Pod) perl(Test::Strict) perl(Test::Warnings) >= 0.029 procps python3-setuptools qemu >= 4.0 qemu-tools socat xorg-x11-Xvnc xterm xterm-console
|
|
|
|
%define test_base_requires %main_requires cpio icewm perl(Benchmark) perl(Devel::Cover) perl(FindBin) perl(Pod::Coverage) perl(Test::Fatal) perl(Test::Mock::Time) perl(Test::MockModule) perl(Test::MockObject) perl(Test::MockRandom) perl(Test::Mojo) perl(Test::Most) perl(Test::Output) perl(Test::Pod) perl(Test::Strict) perl(Test::Warnings) >= 0.029 procps python3-setuptools qemu >= 4.0 qemu-tools socat xorg-x11-Xvnc xterm xterm-console
|
|
|
|
# The following line is generated from dependencies.yaml
|
|
|
|
# The following line is generated from dependencies.yaml
|
|
|
|
%define test_version_only_requires perl(Mojo::IOLoop::ReadWriteProcess) >= 0.28
|
|
|
|
%define test_version_only_requires perl(Mojo::IOLoop::ReadWriteProcess) >= 0.28
|
|
|
|
# The following line is generated from dependencies.yaml
|
|
|
|
# The following line is generated from dependencies.yaml
|
|
|
|
%define test_requires %build_requires %lua_support_requires %ocr_requires %python_support_requires %spellcheck_requires %test_base_requires %test_non_s390_requires %yamllint_requires ffmpeg python3-Pillow-tk
|
|
|
|
%define test_requires %build_requires %ocr_requires %spellcheck_requires %test_base_requires %test_non_s390_requires %yamllint_requires python3-Pillow-tk
|
|
|
|
# The following line is generated from dependencies.yaml
|
|
|
|
# The following line is generated from dependencies.yaml
|
|
|
|
%define devel_requires %python_style_requires %test_requires ShellCheck file perl(Code::TidyAll) perl(Devel::Cover) perl(Module::CPANfile) perl(Perl::Tidy) perl(Template::Toolkit) perl(Test::CheckGitStatus) sed shfmt
|
|
|
|
%define devel_requires %python_style_requires %test_requires ShellCheck perl(Code::TidyAll) perl(Devel::Cover) perl(Module::CPANfile) perl(Perl::Tidy) perl(Template::Toolkit) shfmt
|
|
|
|
%define s390_zvm_requires /usr/bin/xkbcomp /usr/bin/Xvnc x3270 icewm xterm xterm-console xdotool fonts-config mkfontdir mkfontscale openssh-clients
|
|
|
|
%define s390_zvm_requires /usr/bin/xkbcomp /usr/bin/Xvnc x3270 icewm xterm xterm-console xdotool fonts-config mkfontdir mkfontscale openssh-clients
|
|
|
|
%define ipmi_requires ipmitool
|
|
|
|
%define ipmi_requires ipmitool
|
|
|
|
%define qemu_requires qemu-tools e2fsprogs
|
|
|
|
%define qemu_requires qemu-tools e2fsprogs
|
|
|
@@ -135,7 +128,7 @@ Recommends: dumponlyconsole %s390_zvm_requires
|
|
|
|
Recommends: qemu >= 4.0.0
|
|
|
|
Recommends: qemu >= 4.0.0
|
|
|
|
%if %{with python_support}
|
|
|
|
%if %{with python_support}
|
|
|
|
# Optional dependency for Python test API support
|
|
|
|
# Optional dependency for Python test API support
|
|
|
|
Recommends: %python_support_requires
|
|
|
|
Recommends: perl(Inline::Python)
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
# Optional dependency for crop.py
|
|
|
|
# Optional dependency for crop.py
|
|
|
|
Recommends: python3-Pillow-tk
|
|
|
|
Recommends: python3-Pillow-tk
|
|
|
@@ -157,7 +150,6 @@ automated testing frameworks. However, it can just as well be used
|
|
|
|
to test firefox and openoffice operation on top of a newly
|
|
|
|
to test firefox and openoffice operation on top of a newly
|
|
|
|
installed OS.
|
|
|
|
installed OS.
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with devel_package}
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
%package devel
|
|
|
|
Summary: Development package pulling in all build+test dependencies
|
|
|
|
Summary: Development package pulling in all build+test dependencies
|
|
|
|
Group: Development/Tools/Other
|
|
|
|
Group: Development/Tools/Other
|
|
|
@@ -165,7 +157,6 @@ Requires: %devel_requires
|
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
%description devel
|
|
|
|
Development package pulling in all build+test dependencies.
|
|
|
|
Development package pulling in all build+test dependencies.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package openvswitch
|
|
|
|
%package openvswitch
|
|
|
|
Summary: Openvswitch support for os-autoinst
|
|
|
|
Summary: Openvswitch support for os-autoinst
|
|
|
@@ -208,7 +199,6 @@ Requires: swtpm
|
|
|
|
%description swtpm
|
|
|
|
%description swtpm
|
|
|
|
Convenience package providing os-autoinst and swtpm dependencies.
|
|
|
|
Convenience package providing os-autoinst and swtpm dependencies.
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with deps_package}
|
|
|
|
|
|
|
|
%package s390-deps
|
|
|
|
%package s390-deps
|
|
|
|
Summary: Convenience package providing os-autoinst + s390 worker jumphost deps
|
|
|
|
Summary: Convenience package providing os-autoinst + s390 worker jumphost deps
|
|
|
|
Group: Development/Tools/Other
|
|
|
|
Group: Development/Tools/Other
|
|
|
@@ -226,7 +216,6 @@ Requires: os-autoinst
|
|
|
|
|
|
|
|
|
|
|
|
%description ipmi-deps
|
|
|
|
%description ipmi-deps
|
|
|
|
Convenience package providing os-autoinst + ipmi worker jumphost dependencies.
|
|
|
|
Convenience package providing os-autoinst + ipmi worker jumphost dependencies.
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%setup -q
|
|
|
@@ -250,10 +239,6 @@ rm t/27-consoles-vmware.t
|
|
|
|
%if %{without ocr}
|
|
|
|
%if %{without ocr}
|
|
|
|
rm t/02-test_ocr.t
|
|
|
|
rm t/02-test_ocr.t
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
%if 0%{?qemu_user_space_build}
|
|
|
|
|
|
|
|
# qemu emulation always starts a separate thread
|
|
|
|
|
|
|
|
rm t/28-signalblocker.t
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%define __builder ninja
|
|
|
|
%define __builder ninja
|
|
|
@@ -352,9 +337,7 @@ fi
|
|
|
|
%config /etc/dbus-1/system.d/org.opensuse.os_autoinst.switch.conf
|
|
|
|
%config /etc/dbus-1/system.d/org.opensuse.os_autoinst.switch.conf
|
|
|
|
%{_sbindir}/rcos-autoinst-openvswitch
|
|
|
|
%{_sbindir}/rcos-autoinst-openvswitch
|
|
|
|
|
|
|
|
|
|
|
|
%if %{with devel_package}
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%files devel
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch x86_64
|
|
|
|
%ifarch x86_64
|
|
|
|
%files qemu-kvm
|
|
|
|
%files qemu-kvm
|
|
|
|
|
|
|
|
|
|
|
@@ -362,10 +345,9 @@ fi
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files swtpm
|
|
|
|
%files swtpm
|
|
|
|
%if %{with deps_package}
|
|
|
|
|
|
|
|
%files s390-deps
|
|
|
|
%files s390-deps
|
|
|
|
|
|
|
|
|
|
|
|
%files ipmi-deps
|
|
|
|
%files ipmi-deps
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|