From 4afeb177db2c5bb912c5b7f9bfd2996511d78ac65cce1410ee99309a3d8acac2 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 f8555e8..94a2843 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