From fc95500166dfe0d39a6e7cffd082658883f2c663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Wed, 1 Oct 2014 10:56:48 +0200 Subject: RPM Packaging: updates --- redhat/build/get_installed_package_version.sh | 2 ++ redhat/build/get_latest_built_package_filename.sh | 2 ++ redhat/build/get_rpm_package_name.sh | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) (limited to 'redhat/build') diff --git a/redhat/build/get_installed_package_version.sh b/redhat/build/get_installed_package_version.sh index 7af2065ec..609c88f0e 100755 --- a/redhat/build/get_installed_package_version.sh +++ b/redhat/build/get_installed_package_version.sh @@ -13,6 +13,8 @@ case ${PKGNAME} in "qt3") [ -r /etc/mandriva-release ] && PKGNAME="qt3-common";; "curl") PKGNAME="trinity-libcurl";; "esound") PKGNAME="esound-libs";; + "tqt3") PKGNAME="libtqt3-mt";; + "tqtinterface") PKGNAME="libtqt4";; esac VERSION=$(LC_ALL=C rpm -q --qf "%{version}-%{release}" trinity-${PKGNAME} 2>/dev/null) diff --git a/redhat/build/get_latest_built_package_filename.sh b/redhat/build/get_latest_built_package_filename.sh index 46c664578..b414b8400 100755 --- a/redhat/build/get_latest_built_package_filename.sh +++ b/redhat/build/get_latest_built_package_filename.sh @@ -14,6 +14,8 @@ RPMDIR_NOARCH=${RPMDIR}/noarch RPMDIRS="${RPMDIR_ARCH} ${RPMDIR_NOARCH}" case "${PKGNAME##*/}" in + "tqt3") PKGNAME="libtqt3-mt";; + "tqtinterface") PKGNAME="libtqt4";; "koffice") PKGNAME="koffice-suite";; "tde-i18n") PKGNAME="tde-i18n-French";; esac diff --git a/redhat/build/get_rpm_package_name.sh b/redhat/build/get_rpm_package_name.sh index 63a196166..1b3e8b2cb 100755 --- a/redhat/build/get_rpm_package_name.sh +++ b/redhat/build/get_rpm_package_name.sh @@ -17,11 +17,13 @@ DEVEL="$2" case "${PKGNAME}" in "k3b-i18n"|"koffice-i18n"|"tde-i18n") PKGNAME="${PKGNAME}-French";; "koffice") PKGNAME="${PKGNAME}-suite";; + "tqt3") PKGNAME="libtqt3-mt";; + "tqtinterface") PKGNAME="libtqt4";; esac # Use the Trinity Prefix, or not. case "${PKGNAME}" in - "trinity-"*|"qt3"|"python-qt3"|"esound") PREFIX="";; + "trinity-"*|"qt3"|"python-qt3"|"esound"|"lib"*) PREFIX="";; "autoconf"|"automake"|"cmake"|"gnuchess"|"htdig"|"imlib1"|"libotr3"|"libtool"|"lilypond"|"m4"|"mftrace"|"pcsc-perl"|"torsocks"|"wv2") PREFIX="";; "curl") PREFIX="trinity-lib";; *) PREFIX="trinity-";; -- cgit v1.2.1 From 4ed48b596a3124deac51b66df656c57f9f88c4d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Wed, 1 Oct 2014 11:51:45 +0200 Subject: RPM Packaging: updates --- redhat/build/build_rpm_package.sh | 1 + redhat/build/get_installed_package_version.sh | 11 +---------- redhat/build/get_rpm_package_name.sh | 4 ++++ 3 files changed, 6 insertions(+), 10 deletions(-) (limited to 'redhat/build') diff --git a/redhat/build/build_rpm_package.sh b/redhat/build/build_rpm_package.sh index d55075ffa..cd8bb1662 100755 --- a/redhat/build/build_rpm_package.sh +++ b/redhat/build/build_rpm_package.sh @@ -38,6 +38,7 @@ rpmbuild -ba \ --define "_buildrootdir ${BUILDROOTDIR}" \ --define "_rpmdir ${RPMDIR}" \ --define "_srcrpmdir ${SRPMDIR}" \ + --define '_build_create_debug 1' \ --define "tde_version ${TDE_VERSION}" \ --define "tde_prefix /opt/trinity" \ --define "preversion ${PREVERSION}" \ diff --git a/redhat/build/get_installed_package_version.sh b/redhat/build/get_installed_package_version.sh index 609c88f0e..5a8e282b8 100755 --- a/redhat/build/get_installed_package_version.sh +++ b/redhat/build/get_installed_package_version.sh @@ -6,16 +6,7 @@ PKGNAME="${1##*/}" [ -z "${PKGNAME}" ] && echo "You must specify a package name !" && exit 1 # Language package: install only French language package -case ${PKGNAME} in - "k3b-i18n"|"koffice-i18n"|"tde-i18n") PKGNAME="trinity-${PKGNAME}-French";; - "koffice") PKGNAME="${PKGNAME}-suite";; - "trinity-"*) PKGNAME="${PKGNAME#trinity-}";; - "qt3") [ -r /etc/mandriva-release ] && PKGNAME="qt3-common";; - "curl") PKGNAME="trinity-libcurl";; - "esound") PKGNAME="esound-libs";; - "tqt3") PKGNAME="libtqt3-mt";; - "tqtinterface") PKGNAME="libtqt4";; -esac +PKGNAME="$(get_rpm_package_name.sh ${PKGNAME})" VERSION=$(LC_ALL=C rpm -q --qf "%{version}-%{release}" trinity-${PKGNAME} 2>/dev/null) if [ -z "${VERSION}" ] || [[ "${VERSION}" =~ "not installed" ]]; then diff --git a/redhat/build/get_rpm_package_name.sh b/redhat/build/get_rpm_package_name.sh index 1b3e8b2cb..8c9ac7307 100755 --- a/redhat/build/get_rpm_package_name.sh +++ b/redhat/build/get_rpm_package_name.sh @@ -13,12 +13,16 @@ PKGCATEGORY="${1%%/*}" PKGNAME="${1##*/}" DEVEL="$2" +# Some RPM packages have different name than the source tarball. # Language package: install only French language package case "${PKGNAME}" in "k3b-i18n"|"koffice-i18n"|"tde-i18n") PKGNAME="${PKGNAME}-French";; "koffice") PKGNAME="${PKGNAME}-suite";; "tqt3") PKGNAME="libtqt3-mt";; "tqtinterface") PKGNAME="libtqt4";; + "avahi-tqt") PKGNAME="libavahi-tqt";; + "dbus-tqt") PKGNAME="libdbus-tqt-1";; + "dbus-1-tqt") PKGNAME="libdbus-1-tqt";; esac # Use the Trinity Prefix, or not. -- cgit v1.2.1