From: Stéphane Graber Date: Tue, 7 Jun 2022 05:30:43 +0000 (-0400) Subject: meson: Fix RPM spec variables X-Git-Tag: lxc-5.0.0~9^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e18dbec746c0c30fb84d11d9ed7a29fed7ef7ca2;p=thirdparty%2Flxc.git meson: Fix RPM spec variables Signed-off-by: Stéphane Graber --- diff --git a/meson.build b/meson.build index 58736f17c..54db06b28 100644 --- a/meson.build +++ b/meson.build @@ -28,6 +28,7 @@ version_data = configuration_data() version_data.set('LXC_VERSION_MAJOR', '4') version_data.set('LXC_VERSION_MINOR', '0') version_data.set('LXC_VERSION_MICRO', '0') +version_data.set('LXC_VERSION_BETA', '') version_data.set('LXC_ABI', liblxc_version) version_data.set('LXC_DEVEL', '1') version_data.set('LXC_VERSION', meson.project_version()) @@ -685,8 +686,14 @@ install_emptydir(join_paths(localstatedir, 'cache', 'lxc')) install_emptydir(join_paths(localstatedir, 'lib', 'lxc')) # RPM spec file. +specconf = configuration_data() +specconf.set('LXC_VERSION_BASE', meson.project_version()) +specconf.set('LXC_VERSION_BETA', version_data.get('LXC_VERSION_BETA')) +specconf.set('PACKAGE', meson.project_name()) +specconf.set('LXC_DISTRO_SYSCONF', conf.get('LXC_DISTRO_SYSCONF')) + configure_file( - configuration: conf, + configuration: specconf, input: 'lxc.spec.in', output: 'lxc.spec', install: false)