From 41284c83ff5be87bbc957f646c0db642e93cc722 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Tue, 15 Apr 2014 19:43:15 +0200 Subject: RPM Packaging: update build scripts --- redhat/build/configure_repository.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'redhat/build/configure_repository.sh') diff --git a/redhat/build/configure_repository.sh b/redhat/build/configure_repository.sh index 2456b1a6a..22ddaf4f7 100755 --- a/redhat/build/configure_repository.sh +++ b/redhat/build/configure_repository.sh @@ -1,9 +1,10 @@ -#!/bin/bash +#!/bin/bash -x TDE_VERSION=${1:-14.0.0} -ARCH=$(uname -i) +ARCH=$(rpm -E %_target_cpu) RPMDIR=$(rpm -E %{_rpmdir}.tde-${TDE_VERSION}) +# RHEL / CentOS / Fedora if [ -x /usr/bin/yum ]; then cat </tmp/rpmbuild-tde.repo [rpmbuild.${ARCH}] @@ -20,3 +21,10 @@ gpgcheck=0 EOF sudo mv -f /tmp/rpmbuild-tde.repo /etc/yum.repos.d/ fi + +# Mageia / Mandriva +if [ -x /usr/sbin/urpmi ]; then + sudo urpmi.removemedia -y "rpmbuild" + sudo urpmi.addmedia rpmbuild.${ARCH} ${RPMDIR}/${ARCH} + sudo urpmi.addmedia rpmbuild.noarch ${RPMDIR}/noarch +fi -- cgit v1.2.1