From 467b681ebe06ab2a3c4359706fecdbccc6039dad Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Thu, 3 Aug 2017 12:59:19 +0000 Subject: [PATCH] Fix build in devel project OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/build?expand=0&rev=323 --- build.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.spec b/build.spec index 3bc152d..300f4dd 100644 --- a/build.spec +++ b/build.spec @@ -124,8 +124,10 @@ chroot or a secure virtualized make CFLAGS="$RPM_BUILD_FLAGS" initvm-all #XXX temporary hack until lua is actually in %if 0%{?suse_version} == 1330 - V=%suse_version - sed -i -e 's/liblua5_3/liblua5_3-5/g' configs/sl${V:0:2}.${V:2:1}.conf +if rpm -q liblua5_3-5; then + V=%suse_version + sed -i -e 's/liblua5_3/liblua5_3-5/g' configs/sl${V:0:2}.${V:2:1}.conf +fi %endif %endif