diff options
Diffstat (limited to 'redhat/build')
-rwxr-xr-x | redhat/build/build_rpm_package.sh | 7 | ||||
-rwxr-xr-x | redhat/build/get_latest_built_package_filename.sh | 8 | ||||
-rwxr-xr-x | redhat/build/get_rpm_package_name.sh | 2 |
3 files changed, 5 insertions, 12 deletions
diff --git a/redhat/build/build_rpm_package.sh b/redhat/build/build_rpm_package.sh index 718efa648..9aae43d36 100755 --- a/redhat/build/build_rpm_package.sh +++ b/redhat/build/build_rpm_package.sh @@ -44,11 +44,6 @@ if [ -r "${TEMPDIR}/one.patch" ]; then -e "/%setup/ s/$/\n%patch0 -p1/" fi -# Determines if we are running an i386 or x86_64 distro -if [ "$(rpm -q --qf '%{arch}\n' kernel | tail -n 1)" = "i686" ]; then - ARGS="${ARGS} --target=i686" -fi - [ -d "${BUILDDIR}" ] || mkdir -p "${BUILDDIR}" RPMDIR="$(rpm -E %{_rpmdir}.tde-${TDE_VERSION})" @@ -67,6 +62,8 @@ rpmbuild -ba \ --define "tde_version ${TDE_VERSION}" \ --define "tde_prefix /opt/trinity" \ --define "preversion ${PREVERSION:-}" \ + --define "with_jack 1" \ + --define "with_xscreensaver 1" \ ${ARGS} \ "${TEMPDIR}/${SPECFILE##*/}" RET=$? diff --git a/redhat/build/get_latest_built_package_filename.sh b/redhat/build/get_latest_built_package_filename.sh index b414b8400..ccbb0acf0 100755 --- a/redhat/build/get_latest_built_package_filename.sh +++ b/redhat/build/get_latest_built_package_filename.sh @@ -5,12 +5,8 @@ PKGNAME="$1" TDE_VERSION="${2:-14.0.0}" RPMDIR="$(rpm -E %{_rpmdir}.tde-${TDE_VERSION})" -if [ $(uname -i) == "x86_64" ]; then - RPMDIR_ARCH=${RPMDIR}/x86_64 -else - RPMDIR_ARCH=${RPMDIR}/i?86 -fi -RPMDIR_NOARCH=${RPMDIR}/noarch +RPMDIR_ARCH="${RPMDIR}/$(rpm -E %_target_cpu)" +RPMDIR_NOARCH="${RPMDIR}/noarch" RPMDIRS="${RPMDIR_ARCH} ${RPMDIR_NOARCH}" case "${PKGNAME##*/}" in diff --git a/redhat/build/get_rpm_package_name.sh b/redhat/build/get_rpm_package_name.sh index 507dc7665..18255e1a1 100755 --- a/redhat/build/get_rpm_package_name.sh +++ b/redhat/build/get_rpm_package_name.sh @@ -18,7 +18,7 @@ DEVEL="$2" # Some runtime packages are prefixed with 'trinity-', some are not. case "${PKGNAME}" in "trinity-"*|"qt3"|"tqt3"|"tqtinterface"|"python-qt3"|"esound"|"avahi-tqt"|"dbus-tqt"|"dbus-1-tqt"|"libart-lgpl"|"fileshareset") PREFIX="";; - "autoconf"|"automake"|"cmake"|"gnuchess"|"htdig"|"imlib1"|"libotr3"|"libtool"|"lilypond"|"m4"|"mftrace"|"pcsc-perl"|"torsocks"|"wv2") PREFIX="";; + "autoconf"|"automake"|"cmake"|"gnuchess"|"htdig"|"imlib1"|"libconfig"|"libotr3"|"libtool"|"lilypond"|"m4"|"mftrace"|"pcsc-perl"|"torsocks"|"wv2") PREFIX="";; "curl") PREFIX="trinity-lib";; *) PREFIX="trinity-";; esac |