From c1f443cc76b2e40a0a848f35a904c57535059d5f Mon Sep 17 00:00:00 2001 From: cuckoo Date: Mon, 27 Feb 2017 22:07:51 +0800 Subject: [PATCH] use system lib --- rpm/genrpm.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rpm/genrpm.sh b/rpm/genrpm.sh index b80aa0a3..d44c02bf 100755 --- a/rpm/genrpm.sh +++ b/rpm/genrpm.sh @@ -67,7 +67,7 @@ generate_tarball() git ls-tree -dr "v${g_version}" | grep commit \ | while read eat_mod eat_type mod_sha mod_path; do \ [ "${mod_path}" = "" ] && continue || :; \ - (pushd ${mod_path=} \ + (pushd ${mod_path} \ && git archive ${mod_sha} \ --prefix="${tarball_name}/${mod_path}/" \ -o "${tarball_dir}/sub_mod.tar" \ @@ -114,4 +114,5 @@ sed -e "s/^\(Version: \).*$/\1${g_version}/" \ rpmbuild -bb ${spec_path} \ --define "%_topdir ${g_rpmbuild_topdir}" \ - ${g_rpmbuild_conditions} \ + --define "%use_system_lib 1" \ + ${g_rpmbuild_conditions}