RPM: update build scripts

pull/3/head
François Andriot 7 years ago
parent 488d114950
commit f604d2d72f

@ -1,7 +1,8 @@
SHELL := /bin/bash SHELL := /bin/bash
PACKAGING_DIR := $(shell cd ..; pwd) PACKAGING_DIR := $(shell cd ..; pwd)
PATH := $(PATH):$(shell pwd)/build PATH := $(PATH):$(shell pwd)/build
TDE_VERSION := 14.0.3 TDE_VERSION := 14.0.4
DIST := $(shell rpm -E %dist)
buildpkg = \ buildpkg = \
@echo "Now processing '$(1)' [from $(PACKAGING_DIR)]."; \ @echo "Now processing '$(1)' [from $(PACKAGING_DIR)]."; \

@ -85,7 +85,7 @@ if [ -n "${DEVEL}" ]; then
# Some other packags NOT having development package # Some other packags NOT having development package
case "${PKGNAME}" in case "${PKGNAME}" in
"cmake"|"cscope"|"hal-info"|"lilypond"|"mftrace"|"pcsc-perl"|"rdiff-backup"|"torsocks") exit 0;; "autoconf"|"cmake"|"cscope"|"hal-info"|"lilypond"|"mftrace"|"pcsc-perl"|"rdiff-backup"|"torsocks") exit 0;;
"tqca-tls"|"tdeadmin"|"tdetoys"|"tde-i18n"*|"tdeaddons"|"tdeartwork"|"libtqt-perl"|"kipi-plugins") exit 0;; "tqca-tls"|"tdeadmin"|"tdetoys"|"tde-i18n"*|"tdeaddons"|"tdeartwork"|"libtqt-perl"|"kipi-plugins") exit 0;;
esac esac
@ -116,4 +116,3 @@ if [ -n "${DEVEL}" ]; then
# Finally, other packages do have a '-devel' # Finally, other packages do have a '-devel'
echo "${PREFIX}${PKGDEVEL}" echo "${PREFIX}${PKGDEVEL}"
fi fi

@ -60,4 +60,5 @@ dlpreopen=''
libdir='${LIBDIR}' libdir='${LIBDIR}'
EOF EOF
sudo mv "/tmp/$LIB.$$" "${FILE}" [ $(whoami) = "root" ] || SUDO="sudo"
$SUDO mv "/tmp/$LIB.$$" "${FILE}"

@ -14,7 +14,7 @@ mkdir -p "${HOME}/rpmbuild/RPMS/RPMS${DIST}.tde-${TDE_VERSION}"
mkdir -p "${HOME}/rpmbuild/SRPMS/SRPMS${DIST}.tde-${TDE_VERSION}" mkdir -p "${HOME}/rpmbuild/SRPMS/SRPMS${DIST}.tde-${TDE_VERSION}"
mkdir -p "/dev/shm/docker" mkdir -p "/dev/shm/docker"
docker run -t -i \ docker run -t -i --rm \
-h "${IMAGE}" \ -h "${IMAGE}" \
-v /dev/shm/docker:/tmp:z \ -v /dev/shm/docker:/tmp:z \
-u trinity \ -u trinity \

Loading…
Cancel
Save