From 17e33eb84a8b3181f885628e35e52cbbde905460 Mon Sep 17 00:00:00 2001 From: orange-snn Date: Mon, 16 Mar 2020 11:30:41 +0800 Subject: [PATCH] disable package --- lorax.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lorax.spec b/lorax.spec index 901faca..5b46b75 100644 --- a/lorax.spec +++ b/lorax.spec @@ -1,9 +1,9 @@ %define debug_package %{nil} - +%define disable_cross 0 Name: lorax Version: 29.16 -Release: 9 +Release: 10 Summary: A set of tools used to create bootable images License: GPLv2+ URL: https://github.com/weldr/lorax @@ -59,6 +59,7 @@ Anaconda's image install feature. The package including lorax-templates-generic lorax-templates-generic,Generic build templates for lorax and livemedia-creator +%if 0%{?disable_cross} %package lmc-virt Summary: livemedia-creator libvirt dependencies Requires: lorax = %{version}-%{release} qemu edk2-ovmf @@ -66,6 +67,7 @@ Recommends: qemu-kvm %description lmc-virt Additional dependencies required by livemedia-creator when using it with qemu. +%endif %package lmc-novirt Summary: livemedia-creator no-virt dependencies @@ -167,7 +169,9 @@ getent passwd weldr >/dev/null 2>&1 || useradd -r -g weldr -d / -s /sbin/nologin %dir %{_datadir}/lorax/templates.d %{_datadir}/lorax/templates.d/* +%if 0%{?disable_cross} %files lmc-virt +%endif %files lmc-novirt @@ -196,6 +200,9 @@ getent passwd weldr >/dev/null 2>&1 || useradd -r -g weldr -d / -s /sbin/nologin %{_mandir}/man1/*.1* %changelog +* Mon Mar 16 2020 songnannan - 29.16-10 +- disbale the virt pacakge + * Mon Feb 24 2020 openEuler Buildteam - 29.16-9 - Type:bugfix - Id:NA -- Gitee