diff --git a/lorax.spec b/lorax.spec index 901facafc38ad5313092984d82921160da5bc036..5af30826808c82d32d7a942614bcfa06bd83a423 100644 --- a/lorax.spec +++ b/lorax.spec @@ -1,9 +1,9 @@ %define debug_package %{nil} - +%global enable_lorax_lmc_virt_package 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 %{enable_lorax_lmc_virt_package} %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 %{enable_lorax_lmc_virt_package} %files lmc-virt +%endif %files lmc-novirt @@ -196,6 +200,12 @@ getent passwd weldr >/dev/null 2>&1 || useradd -r -g weldr -d / -s /sbin/nologin %{_mandir}/man1/*.1* %changelog +* Fri Feb 28 2020 openEuler Buildteam - 29.16-10 +- Type:enhancement +- Id:NA +- SUG:NA +- DESC:disable lmc-virt package + * Mon Feb 24 2020 openEuler Buildteam - 29.16-9 - Type:bugfix - Id:NA