summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2014-10-10 23:30:34 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2014-10-10 23:30:34 +0200
commit139ae8cb8c30774a4b8258c8eb9b224b02aa984e (patch)
tree35722c16846fcb7a6cf0b3d0cc06baa4d8529508
parenta6fb26841dd725f7ecbb5d3053747670fa0041cf (diff)
downloadtde-packaging-139ae8cb8c30774a4b8258c8eb9b224b02aa984e.tar.gz
tde-packaging-139ae8cb8c30774a4b8258c8eb9b224b02aa984e.zip
RPM Packages: update build scripts
-rwxr-xr-xredhat/build/build_rpm_package.sh2
-rwxr-xr-xredhat/build/get_rpm_package_name.sh11
2 files changed, 9 insertions, 4 deletions
diff --git a/redhat/build/build_rpm_package.sh b/redhat/build/build_rpm_package.sh
index f30a4246b..718efa648 100755
--- a/redhat/build/build_rpm_package.sh
+++ b/redhat/build/build_rpm_package.sh
@@ -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=$?
diff --git a/redhat/build/get_rpm_package_name.sh b/redhat/build/get_rpm_package_name.sh
index c6221420d..507dc7665 100755
--- a/redhat/build/get_rpm_package_name.sh
+++ b/redhat/build/get_rpm_package_name.sh
@@ -24,14 +24,19 @@ case "${PKGNAME}" in
esac
# Runtime packages
-lib=$(rpm -E %_lib)
+if [ -r /etc/mandriva-release ]; then
+ lib=$(rpm -E %_lib)
+else
+ lib="lib"
+fi
+
case "${PKGNAME}" in
# Some packages have different runtime name than source package.
"avahi-tqt") PKGRUNTIME="${lib}avahi-tqt1";;
"dbus-tqt") PKGRUNTIME="${lib}dbus-tqt-1-0";;
"dbus-1-tqt") PKGRUNTIME="${lib}dbus-1-tqt0";;
"esound") PKGRUNTIME="esound-libs";;
- "koffice") PKGRUNTIME="trinity-koffice-suite";;
+ "koffice") PKGRUNTIME="koffice-suite";;
"libart-lgpl") PKGRUNTIME="${lib}art_lgpl_2-2";;
"tqt3") PKGRUNTIME="${lib}tqt3-mt";;
"tqtinterface") PKGRUNTIME="${lib}tqt4";;
@@ -67,7 +72,7 @@ if [ -n "${DEVEL}" ]; then
"dbus-1-tqt") PKGDEVEL="libdbus-1-tqt-devel";;
"esound") PKGDEVEL="esound-devel";;
"libart-lgpl") PKGDEVEL="libart_lgpl-devel";;
- "tqt3") PKGDEVEL="tqt3-dev-tools tqt3-apps-devel";;
+ "tqt3") PKGDEVEL="tqt3-dev-tools tqt3-apps-devel tqt3-compat-headers";;
# Default case: development package has same name as runtime package, plus '-devel' suffix.
*) PKGDEVEL="${PKGRUNTIME}-devel";;
esac