Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dependencies for asset pack generator script #5378

Merged
merged 2 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ assetpack_requires:
perl(CSS::Minifier::XS): '>= 0.01'
perl(JavaScript::Minifier::XS): '>= 0.11'
perl(Mojolicious::Plugin::AssetPack): '>= 1.36'
perl(YAML::PP): '>= 0.026'

build_requires:
rubygem(sass):
Expand Down
2 changes: 1 addition & 1 deletion dist/rpm/openQA-client-test.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Release: 0
Summary: Test package for %{short_name}
License: GPL-2.0-or-later
BuildRequires: %{short_name} == %{version}
ExcludeArch: i586
ExcludeArch: %{ix86}

%description
.
Expand Down
2 changes: 1 addition & 1 deletion dist/rpm/openQA-devel-test.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Release: 0
Summary: Test package for %{short_name}
License: GPL-2.0-or-later
BuildRequires: %{short_name} == %{version}
ExcludeArch: i586
ExcludeArch: %{ix86}
%ifarch ppc ppc64 ppc64le s390x
# missing chromedriver dependency
ExclusiveArch: do_not_build
Expand Down
2 changes: 1 addition & 1 deletion dist/rpm/openQA-test.spec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ BuildRequires: openQA-local-db
%if 0%{?suse_version} > 1500
BuildRequires: user(geekotest)
%endif
ExcludeArch: i586
ExcludeArch: %{ix86}

%description
.
Expand Down
2 changes: 1 addition & 1 deletion dist/rpm/openQA-worker-test.spec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ BuildRequires: %{short_name} == %{version}
%if 0%{?suse_version} > 1500
BuildRequires: user(_openqa-worker)
%endif
ExcludeArch: i586
ExcludeArch: %{ix86}

%description
.
Expand Down
21 changes: 2 additions & 19 deletions dist/rpm/openQA.spec
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
%define python_scripts_requires %{nil}
%endif
# The following line is generated from dependencies.yaml
%define assetpack_requires perl(CSS::Minifier::XS) >= 0.01 perl(JavaScript::Minifier::XS) >= 0.11 perl(Mojolicious::Plugin::AssetPack) >= 1.36
%define assetpack_requires perl(CSS::Minifier::XS) >= 0.01 perl(JavaScript::Minifier::XS) >= 0.11 perl(Mojolicious::Plugin::AssetPack) >= 1.36 perl(YAML::PP) >= 0.026
# The following line is generated from dependencies.yaml
%define common_requires ntp-daemon perl >= 5.20.0 perl(Carp::Always) >= 0.14.02 perl(Config::IniFiles) perl(Config::Tiny) perl(Cpanel::JSON::XS) >= 4.09 perl(Cwd) perl(Data::Dump) perl(Data::Dumper) perl(Digest::MD5) perl(Filesys::Df) perl(Getopt::Long) perl(Minion) >= 10.25 perl(Mojolicious) >= 9.340.0 perl(Regexp::Common) perl(Storable) perl(Time::Moment) perl(Try::Tiny)
# runtime requirements for the main package that are not required by other sub-packages
Expand Down Expand Up @@ -82,7 +82,6 @@ Version: 4.6
Release: 0
Summary: The openQA web-frontend, scheduler and tools
License: GPL-2.0-or-later
Group: Development/Tools/Other
Url: http://os-autoinst.github.io/openQA/
Source0: %{name}-%{version}.tar.xz
# a workaround for set_version looking at random files (so we can't name it .tar.xz)
Expand Down Expand Up @@ -123,14 +122,12 @@ Recommends: rsync
# version of that module. Then when we install on Tumbleweed, it doesn't
# have that older version anymore
#BuildArch: noarch
ExcludeArch: i586
ExcludeArch: %{ix86}
%{?systemd_requires}
%if %{with tests}
BuildRequires: %{test_requires}
%endif
%if 0%{?suse_version} >= 1330
Requires(pre): group(nogroup)
%endif
%if 0%{?suse_version} > 1500
BuildRequires: sysuser-tools
%sysusers_requires
Expand All @@ -157,15 +154,13 @@ operating system.

%package no-selenium-devel
Summary: Development package pulling in all build+test dependencies except chromedriver for Selenium based tests
Group: Development/Tools/Other
Requires: %{devel_no_selenium_requires}

%description no-selenium-devel
Development package pulling in all build+test dependencies except chromedriver for Selenium based tests.

%package devel
Summary: Development package pulling in all build+test dependencies
Group: Development/Tools/Other
Requires: %{devel_requires}
%ifarch s390x
# missing chromedriver dependency
Expand All @@ -177,7 +172,6 @@ Development package pulling in all build+test dependencies.

%package common
Summary: The openQA common tools for web-frontend and workers
Group: Development/Tools/Other
Requires: %{common_requires}
Requires: perl(Mojolicious) >= 8.24

Expand All @@ -187,7 +181,6 @@ openQA workers.

%package worker
Summary: The openQA worker
Group: Development/Tools/Other
%define worker_requires_including_uncovered_in_tests %worker_requires perl(SQL::SplitStatement)
Requires: %{worker_requires_including_uncovered_in_tests}
# FIXME: use proper Requires(pre/post/preun/...)
Expand All @@ -210,7 +203,6 @@ The openQA worker manages test engine (provided by os-autoinst package).

%package client
Summary: Client tools for remote openQA management
Group: Development/Tools/Other
Requires: openQA-common = %{version}
Requires: %client_requires

Expand All @@ -221,7 +213,6 @@ a convenient helper for interacting with openQA webui REST API.
%if %{with python_scripts}
%package python-scripts
Summary: Additional scripts in python
Group: Development/Tools/Other
Requires: %python_scripts_requires

%description python-scripts
Expand All @@ -230,7 +221,6 @@ Additional scripts for the use of openQA in the python programming language.

%package local-db
Summary: Helper package to ease setup of postgresql DB
Group: Development/Tools/Other
Requires: %{name} = %{version}
Requires: postgresql-server
BuildRequires: postgresql-server
Expand All @@ -242,7 +232,6 @@ next to the webui.

%package single-instance
Summary: Convenience package for a single-instance setup using apache proxy
Group: Development/Tools/Other
Provides: %{name}-single-instance-apache
Provides: %{name}-single-instance-apache2
Requires: %{name}-local-db
Expand All @@ -255,7 +244,6 @@ Use this package to setup a local instance with all services provided together.

%package single-instance-nginx
Summary: Convenience package for a single-instance setup using nginx proxy
Group: Development/Tools/Other
Requires: %{name}-local-db
Requires: %{name} = %{version}
Requires: %{name}-worker = %{version}
Expand All @@ -266,23 +254,20 @@ Use this package to setup a local instance with all services provided together.

%package bootstrap
Summary: Automated openQA setup
Group: Development/Tools/Other

%description bootstrap
This can automatically setup openQA - either directly on your system
or within a systemd-nspawn container.

%package doc
Summary: The openQA documentation
Group: Development/Tools/Other

%description doc
Documentation material covering installation, configuration, basic test writing, etc.
Covering both openQA and also os-autoinst test engine.

%package auto-update
Summary: Automatically upgrade and reboot the system when required
Group: Development/Tools/Other
Requires: %{name}-common
Requires: curl
Requires: rebootmgr
Expand All @@ -293,7 +278,6 @@ and rebooting the system if devel:openQA packages are stable.

%package continuous-update
Summary: Continuously update packages from devel:openQA
Group: Development/Tools/Other
Requires: %{name}-common
Requires: curl

Expand All @@ -305,7 +289,6 @@ regardless of whether devel:openQA contains updates.

%package munin
Summary: Munin scripts
Group: Development/Tools/Other
Requires: munin
Requires: munin-node
Requires: curl
Expand Down