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