Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit 34136ac

Browse files
committed
obs: Add CentOS 8
Build packages for CentOS 8. Fixes #1048 Signed-off-by: Gabriela Cervantes <[email protected]>
1 parent e9dc1c9 commit 34136ac

File tree

5 files changed

+14
-1
lines changed

5 files changed

+14
-1
lines changed

obs-packaging/create-repo-branch.sh

+1
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ main() {
177177
info "Creating/Updating project with name ${project_branch}"
178178
# Update /Create project metadata.
179179
docker_run osc meta prj "${project_branch}" -F meta_project.xml
180+
docker_run osc meta prjconf "${project_branch}" -F projectconfig
180181
for pkg in "${OBS_PKGS_PROJECTS[@]}"; do
181182
if ! pkg_exist "${project_branch}" "${pkg}"; then
182183
echo "Package ${pkg} does not exit in ${project_branch}, creating ..."

obs-packaging/distros_x86_64

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# name::project::repository
66
#
77
CentOS_7::CentOS:CentOS-7::standard
8+
CentOS_8::CentOS:CentOS-8::standard
89
Debian_9::Debian:9.0::standard
910
# Qemu vanilla is broken see https://github.com/kata-containers/packaging/issues/1051
1011
#Debian_10::Debian:10::standard

obs-packaging/linux-container/kata-linux-container.spec-template

+5-1
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,14 @@ BuildRequires: libelf-devel
3030
BuildRequires: fdupes
3131
%endif
3232

33-
%if 0%{?fedora} || 0%{?centos_version}
33+
%if 0%{?fedora} || 0%{?centos} <= 7
3434
BuildRequires: pkgconfig(libelf)
3535
%endif
3636

37+
%if 0%{?centos} >= 8
38+
BuildRequires: elfutils-libelf-devel
39+
%endif
40+
3741
BuildRequires: make >= 3.78
3842
BuildRequires: openssl-devel
3943
BuildRequires: flex

obs-packaging/projectconfig

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ExpandFlags: module:python36-3.6

obs-packaging/qemu-vanilla/qemu-vanilla.spec-template

+6
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,14 @@ BuildRequires : libnuma-devel
4343
%else
4444
BuildRequires : numactl-devel
4545
%endif
46+
47+
%if 0%{?centos} < 8
4648
BuildRequires : python
4749
BuildRequires : python-devel
50+
%else
51+
BuildRequires : python3
52+
BuildRequires : python3-devel
53+
%endif
4854
BuildRequires : zlib-devel
4955
BuildRequires : pkgconfig(pixman-1)
5056
BuildRequires : libpmem-devel

0 commit comments

Comments
 (0)