diff options
author | François Andriot <albator78@libertysurf.fr> | 2015-06-27 13:52:45 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2015-06-27 13:52:45 +0200 |
commit | c04a613301f53ffd04afbcea91569882a9541756 (patch) | |
tree | e847480a2927f8ddd4a9b930296129fb3359fcaf /redhat | |
parent | 332ffaead4bd07de1dca11c1be5ae4d21c9374e9 (diff) | |
download | tde-packaging-c04a613301f53ffd04afbcea91569882a9541756.tar.gz tde-packaging-c04a613301f53ffd04afbcea91569882a9541756.zip |
RPM packaging: update build scripts
Diffstat (limited to 'redhat')
-rw-r--r-- | redhat/Makefile.r14 | 2 | ||||
-rwxr-xr-x | redhat/build/build_rpm_package.sh | 4 | ||||
-rwxr-xr-x | redhat/build/get_source_files.sh | 3 | ||||
-rw-r--r-- | redhat/buildenv.sh | 10 |
4 files changed, 10 insertions, 9 deletions
diff --git a/redhat/Makefile.r14 b/redhat/Makefile.r14 index 4ad1c8649..1b9e44d82 100644 --- a/redhat/Makefile.r14 +++ b/redhat/Makefile.r14 @@ -1,7 +1,7 @@ SHELL := /bin/bash PACKAGING_DIR := $(shell cd ..; pwd) PATH := $(PATH):$(shell pwd)/build -TDE_VERSION = 14.0.0 +TDE_VERSION := 14.0.0 buildpkg = \ @echo "Now processing '$(1)' [from $(PACKAGING_DIR)]."; \ diff --git a/redhat/build/build_rpm_package.sh b/redhat/build/build_rpm_package.sh index 7c4609e8a..2071ab445 100755 --- a/redhat/build/build_rpm_package.sh +++ b/redhat/build/build_rpm_package.sh @@ -56,8 +56,8 @@ fi if [ -r "${TEMPDIR}/one.patch" ]; then sed -i "${TEMPDIR}/"*.spec \ - -e "/^Source0:/ s/$/\nPatch0: one.patch/" \ - -e "/%setup/ s/$/\n%patch0 -p1/" + -e "/^Source0:/ s/$/\nPatch389: one.patch/" \ + -e "/%setup/ s/$/\n%patch389 -p1/" fi [ -d "${BUILDDIR}" ] || mkdir -p "${BUILDDIR}" diff --git a/redhat/build/get_source_files.sh b/redhat/build/get_source_files.sh index 03a3598a0..bec678217 100755 --- a/redhat/build/get_source_files.sh +++ b/redhat/build/get_source_files.sh @@ -6,6 +6,7 @@ TDE_VERSION="${2:-14.0.0}" [ -z "${PKGNAME}" ] && echo "You must specify a package name !" && exit 1 SPECFILE=$(get_specfile.sh ${PKGNAME} ${TDE_VERSION}) SPECDIR="${SPECFILE%/*}" +RPMPKGNAME="$(get_rpm_package_name.sh ${PKGNAME})" [ ! -r "${SPECFILE}" ] && exit 2 @@ -13,7 +14,7 @@ while read var val; do case "${var}" in Version:*) VERSION="${val}";; Source[0-9]*:|Source:|Patch[0-9]*:) - FILE=$(rpm --define "tde_pkg ${PKGNAME}" --define "tde_version ${TDE_VERSION}" --define "name ${PKGNAME}" --define "version ${VERSION}" -E "${SPECDIR}/${val##*/}") + FILE=$(rpm --define "tde_pkg ${PKGNAME}" --define "tde_version ${TDE_VERSION}" --define "name ${RPMPKGNAME}" --define "version ${VERSION}" -E "${SPECDIR}/${val##*/}") if [ -r "${FILE}" ]; then echo "${FILE}" else diff --git a/redhat/buildenv.sh b/redhat/buildenv.sh index 91a78b746..4bb1fc616 100644 --- a/redhat/buildenv.sh +++ b/redhat/buildenv.sh @@ -3,7 +3,7 @@ # This file can be sourced in your .bashrc TDE_BASEDIR=~/tde -TDE_VERSION=14.0.0 +TDE_VERSION=14.0.1 TDE_GITBASESRC=${TDE_BASEDIR}/tde_r14 TDE_GITBASEPKG=${TDE_BASEDIR}/tde-packaging/redhat TDE_TARBALLS=${TDE_BASEDIR}/tde-tarballs/${TDE_VERSION} @@ -19,7 +19,7 @@ export DIST="$( "${TDE_GITBASEPKG}/build/rpmdist.sh" --dist )" alias cdrpm='cd ~/rpmbuild/RPMS/RPMS${DIST}' # Build a single tarball (execute from GIT directory) -alias tdp4='TARGET=14.0.0 SUFFIX=0 TARBALL_DIR=${TDE_TARBALLS}/main COMPRESS=gzip ${TDE_GITBASESRC}/scripts/create_tarball' +alias tdp4='TARGET=14.0.1 SUFFIX=0 TARBALL_DIR=${TDE_TARBALLS}/main COMPRESS=gzip ${TDE_GITBASESRC}/scripts/create_tarball' # Rebuild all tarballs if [ -x /usr/bin/pigz ]; then @@ -38,17 +38,17 @@ grp3() { } grp4() { - build_rpm_package.sh "${1}" "14.0.0" + build_rpm_package.sh "${1}" "14.0.1" } # Check if tarballs are more recent than installed packages checknew() { - find ~/tde/tde-tarballs/14.0.0 -name "trinity-*.tar.gz" | while read f; do + find ~/tde/tde-tarballs/14.0.1 -name "trinity-*.tar.gz" | while read f; do TAR="${f##*/}" NAME="${TAR%-*}" if rpm -q "${NAME}" &>/dev/null; then - set $(rpm -q --qf "%{name} 14.0.0 %{release}" ${NAME} ) + set $(rpm -q --qf "%{name} 14.0.1 %{release}" ${NAME} ) B="$1-$2~${3#*_}" A=${TAR%.tar.gz} B=${B%.opt} |