Properly handle CentOS Stream

This commit is contained in:
Frédéric Pierret (fepitre) 2021-05-18 18:46:12 +02:00
parent b1d8302b2b
commit 47a35cb836
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2
2 changed files with 9 additions and 0 deletions

View File

@ -13,6 +13,12 @@ QUBESSTATEDIR = $(STATEDIR)/qubes
ifneq (,$(wildcard /etc/fedora-release)) ifneq (,$(wildcard /etc/fedora-release))
DIST = fc$(shell rpm --eval %{fedora}) DIST = fc$(shell rpm --eval %{fedora})
else ifneq (,$(wildcard /etc/centos-release))
ifeq (CentOSStream, $(shell lsb_release -is))
DIST = centos-stream
else
DIST = centos
endif
else ifneq (,$(wildcard /etc/os-release)) else ifneq (,$(wildcard /etc/os-release))
DIST = $(shell grep VERSION_CODENAME= /etc/os-release | cut -d'=' -f2) DIST = $(shell grep VERSION_CODENAME= /etc/os-release | cut -d'=' -f2)
endif endif

View File

@ -176,6 +176,9 @@ BuildRequires: qubes-libvchan-@BACKEND_VMM@-devel
BuildRequires: pam-devel BuildRequires: pam-devel
BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: systemd BuildRequires: systemd
%if 0%{?rhel} >= 8
BuildRequires: redhat-lsb
%endif
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
%description %description