RPM packaging: update build script

pull/3/head
François Andriot 11 years ago
parent 420b118989
commit d9c948c766

@ -182,12 +182,18 @@ ifneq ($(wildcard /boot/vmlinuz*.el5*),)
$(call buildpkg,3rdparty/sip) $(call buildpkg,3rdparty/sip)
endif endif
sword:
# Build on Fedora >= 20 only
ifneq ($(wildcard /boot/vmlinuz*.fc20*),)
$(call buildpkg,3rdparty/sword)
endif
torsocks: torsocks:
$(call buildpkg,3rdparty/torsocks) $(call buildpkg,3rdparty/torsocks)
wv2: wv2:
# Do NOT build on Mageia # Do NOT build on Mageia or openSUSE
ifeq ($(wildcard /etc/mageia-release),) ifeq ($(wildcard /etc/mageia-release /etc/SuSE-release),)
$(call buildpkg,3rdparty/wv2) $(call buildpkg,3rdparty/wv2)
endif endif
@ -242,7 +248,7 @@ amarok: tdebase
basket: tdebase basket: tdebase
$(call buildpkg,applications/basket) $(call buildpkg,applications/basket)
bibletime: tdebase bibletime: tdebase sword
$(call buildpkg,applications/bibletime) $(call buildpkg,applications/bibletime)
compizconfig-backend-kconfig: tdebase compizconfig-backend-kconfig: tdebase
@ -518,7 +524,7 @@ tdeio-ftps: tdebase
tdeio-locate: tdebase tdeio-locate: tdebase
$(call buildpkg,applications/tdeio-locate) $(call buildpkg,applications/tdeio-locate)
tdeio-sword: tdebase tdeio-sword: tdebase sword
$(call buildpkg,applications/tdeio-sword) $(call buildpkg,applications/tdeio-sword)
tdeio-umountwrapper: tdebase tdeio-umountwrapper: tdebase

@ -5,23 +5,23 @@ TDE_VERSION="${2:-14.0.0}"
[ -z "${PKGNAME}" ] && echo "You must specify a package name !" && exit 1 [ -z "${PKGNAME}" ] && echo "You must specify a package name !" && exit 1
[ -d "${TDE_SPECDIR}" ] || TDE_SPECDIR=~/tde/tde-packaging/redhat [ -d "${PACKAGING_DIR}" ] || PACKAGING_DIR=~/tde/tde-packaging/redhat
# Special case for QT3 # Special case for QT3
if [ "${PKGNAME}" = "qt3" ]; then if [ "${PKGNAME}" = "qt3" ]; then
case "$(rpmdist.sh --dist)" in case "$(rpmdist.sh --dist)" in
.oss*) TDE_SPECDIR=~/tde/tde-packaging/opensuse ;; .oss*) PACKAGING_DIR=~/tde/tde-packaging/opensuse ;;
.mga*|.mdk*|.pclos*) TDE_SPECDIR=~/tde/tde-packaging/mageia ;; .mga*|.mdk*|.pclos*) PACKAGING_DIR=~/tde/tde-packaging/mageia ;;
esac esac
fi fi
SPECFILE=$(find "${TDE_SPECDIR}" -name "${PKGNAME}-${TDE_VERSION}.spec") SPECFILE=$(find "${PACKAGING_DIR}" -name "${PKGNAME}-${TDE_VERSION}.spec")
if [ ! -r "${SPECFILE}" ]; then if [ ! -r "${SPECFILE}" ]; then
SPECFILE=$(find "${TDE_SPECDIR}" -name "${PKGNAME}.spec") SPECFILE=$(find "${PACKAGING_DIR}" -name "${PKGNAME}.spec")
if [ ! -r "${SPECFILE}" ]; then if [ ! -r "${SPECFILE}" ]; then
SPECFILE=$(find "${TDE_SPECDIR}" -name "trinity-${PKGNAME}-${TDE_VERSION}.spec") SPECFILE=$(find "${PACKAGING_DIR}" -name "trinity-${PKGNAME}-${TDE_VERSION}.spec")
if [ ! -r "${SPECFILE}" ]; then if [ ! -r "${SPECFILE}" ]; then
SPECFILE=$(find "${TDE_SPECDIR}" -name "trinity-${PKGNAME}.spec") SPECFILE=$(find "${PACKAGING_DIR}" -name "trinity-${PKGNAME}.spec")
fi fi
fi fi
fi fi

Loading…
Cancel
Save