summaryrefslogtreecommitdiffstats
path: root/redhat/build/build_rpm_package.sh
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2014-10-04 20:02:44 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2014-10-04 20:02:44 +0200
commit3874a59988bcd5c975928863e9a0cd792cb5f780 (patch)
tree14c337262805710cba274c26fbac9f825ac092d2 /redhat/build/build_rpm_package.sh
parentb33353afb9580b295ace66afb41ea352a305d73f (diff)
downloadtde-packaging-3874a59988bcd5c975928863e9a0cd792cb5f780.tar.gz
tde-packaging-3874a59988bcd5c975928863e9a0cd792cb5f780.zip
RPM Packaging: update R14 packages
Diffstat (limited to 'redhat/build/build_rpm_package.sh')
-rwxr-xr-xredhat/build/build_rpm_package.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/redhat/build/build_rpm_package.sh b/redhat/build/build_rpm_package.sh
index 2eca7cef5..f30a4246b 100755
--- a/redhat/build/build_rpm_package.sh
+++ b/redhat/build/build_rpm_package.sh
@@ -41,7 +41,7 @@ fi
if [ -r "${TEMPDIR}/one.patch" ]; then
sed -i "${TEMPDIR}/"*.spec \
-e "/^Source0:/ s/$/\nPatch0: one.patch/" \
- -e "/%setup/ s/$/\n%patch0 -p1 -b .orig/"
+ -e "/%setup/ s/$/\n%patch0 -p1/"
fi
# Determines if we are running an i386 or x86_64 distro
@@ -66,7 +66,7 @@ rpmbuild -ba \
--define "packager Francois\ Andriot\ <francois.andriot@free.fr>" \
--define "tde_version ${TDE_VERSION}" \
--define "tde_prefix /opt/trinity" \
- --define "preversion ${PREVERSION:\\\"\\\"}" \
+ --define "preversion ${PREVERSION:-\\\"\\\"}" \
${ARGS} \
"${TEMPDIR}/${SPECFILE##*/}"
RET=$?