-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2439 from os-autoinst/obs-ci-checks
Add test package spec for sub-packages
- Loading branch information
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
%define short_name os-autoinst-devel | ||
Name: %{short_name}-test | ||
Version: 4.6 | ||
Release: 0 | ||
Summary: Test package for %{short_name} | ||
License: GPL-2.0-or-later | ||
BuildRequires: %{short_name} == %{version} | ||
ExcludeArch: %{ix86} | ||
|
||
%description | ||
. | ||
|
||
%prep | ||
# workaround to prevent post/install failing assuming this file for whatever | ||
# reason | ||
touch %{_sourcedir}/%{short_name} | ||
|
||
%build | ||
# just test requirements by installation | ||
|
||
%install | ||
# disable debug packages in package test to prevent error about missing files | ||
%define debug_package %{nil} | ||
|
||
%changelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
%define name_ext -test | ||
%define short_name os-autoinst-openvswitch | ||
Name: %{short_name}%{?name_ext} | ||
Version: 4.6 | ||
Release: 0 | ||
Summary: test package for %{short_name} | ||
License: GPL-2.0-or-later | ||
BuildRequires: %{short_name} | ||
ExcludeArch: %{ix86} | ||
|
||
%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 | ||
/usr/lib/os-autoinst/os-autoinst-openvswitch --help | ||
|
||
%install | ||
# disable debug packages in package test to prevent error about missing files | ||
%define debug_package %{nil} | ||
|
||
%changelog |