Browse Source

Use correct outdir

pull/2049/head
Max Prokhorov 6 years ago
parent
commit
3c10661d81
1 changed files with 2 additions and 4 deletions
  1. 6
      rpm/genrpm.sh

6
rpm/genrpm.sh

@ -6,14 +6,13 @@ NAME=shadowsocks-libev
SELF=$(readlink -f -- "$0")
HERE=$(dirname -- "$SELF")
OUTDIR="${HERE}"/SRPMS
SOURCES="${HERE}"/SOURCES
SPEC_TEMPLATE="${HERE}"/SPECS/${NAME}.spec.in
SPEC_FILE="${SPEC_TEMPLATE%%.in}"
GIT_VERSION=$("${HERE}"/../scripts/git_version.sh)
OPT_OUTDIR="${OUTDIR}"
OPT_OUTDIR="${HERE}/SRPMS"
OPT_USE_SYSTEM_LIB=0
OUT_BUILD_RPM=0
@ -38,8 +37,7 @@ build_src_rpm()
build_rpm()
{
echo "${OPT_USE_SYSTEM_LIB}"
rpmbuild --rebuild "${OUTDIR}"/${name_version}.src.rpm \
rpmbuild --rebuild "${OPT_OUTDIR}"/${name_version}.src.rpm \
--define "%_topdir ${HERE}" \
--define "%use_system_lib ${OPT_USE_SYSTEM_LIB}"
}

Loading…
Cancel
Save