summaryrefslogtreecommitdiffstats
path: root/redhat/build/build_rpm_package.sh
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2014-10-18 15:40:49 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2014-10-18 15:40:49 +0200
commiteed96d448dd5a241eef75fd8b0a5d468c26a0c20 (patch)
tree434a5e0fe05c42d7822016d639b98b6147e4973c /redhat/build/build_rpm_package.sh
parent566a43b9c030ffcefcfafd104f0236371bf96736 (diff)
downloadtde-packaging-eed96d448dd5a241eef75fd8b0a5d468c26a0c20.tar.gz
tde-packaging-eed96d448dd5a241eef75fd8b0a5d468c26a0c20.zip
RPM Packaging: update R14 packages
Diffstat (limited to 'redhat/build/build_rpm_package.sh')
-rwxr-xr-xredhat/build/build_rpm_package.sh26
1 files changed, 18 insertions, 8 deletions
diff --git a/redhat/build/build_rpm_package.sh b/redhat/build/build_rpm_package.sh
index 9aae43d36..0e267111b 100755
--- a/redhat/build/build_rpm_package.sh
+++ b/redhat/build/build_rpm_package.sh
@@ -21,20 +21,27 @@ LOGFILE=/tmp/log.${COMP##*/}
TEMPDIR="$(mktemp -d)"
cp -f ${SPECFILE} ${SOURCES} ${TARBALL} "${TEMPDIR}"
-# Check if there are patches
+# Check if there are local patches
PATCHDIR="${SPECFILE%/*}/patches/${TDE_VERSION}"
PATCHLIST="${PATCHDIR}/patches"
if [ -r "${PATCHLIST}" ]; then
while read l; do
+ APPLY=""
case "${l}" in
""|"#"*);;
- *)
- if [ -r "${PATCHDIR}/${l}" ]; then
- echo "Applying patch '${l}'..."
- cat "${PATCHDIR}/${l}" >>"${TEMPDIR}/one.patch"
- fi
- ;;
+ "*opensuse*") [ -r /etc/SuSE-release ] && APPLY=1;;
+ *) APPLY=1;;
esac
+
+ if [ "${APPLY}" ]; then
+ if [ -r "${PATCHDIR}/${l}" ]; then
+ echo "Applying patch '${l}'..."
+ cat "${PATCHDIR}/${l}" >>"${TEMPDIR}/one.patch"
+ else
+ echo "ERROR: invalid patch '${l}' !!"
+ exit 3
+ fi
+ fi
done < "${PATCHLIST}"
fi
@@ -62,9 +69,12 @@ rpmbuild -ba \
--define "tde_version ${TDE_VERSION}" \
--define "tde_prefix /opt/trinity" \
--define "preversion ${PREVERSION:-}" \
+ --define "with_akode 1" \
--define "with_jack 1" \
+ --define "with_lame 1" \
+ --define "with_mad 1" \
+ --define "with_mpeg 1" \
--define "with_xscreensaver 1" \
- ${ARGS} \
"${TEMPDIR}/${SPECFILE##*/}"
RET=$?