RPM Packaging: update build script

pull/3/head
François Andriot 10 years ago
parent 7517fab784
commit 817b99fec2

@ -85,7 +85,7 @@ tdeadmin: tdebase
tdeartwork: tdebase tdeartwork: tdebase
$(call buildpkg,tdeartwork) $(call buildpkg,tdeartwork)
tdebase: tdelibs htdig cmake tdebase: tdelibs cmake htdig fileshareset
$(call buildpkg,tdebase) $(call buildpkg,tdebase)
tdebindings: tdebase tqscintilla tdebindings: tdebase tqscintilla
@ -662,6 +662,9 @@ meta:
$(call buildpkg,extras/trinity-desktop) $(call buildpkg,extras/trinity-desktop)
### Extra packages ### Extra packages
fileshareset:
$(call buildpkg,extras/fileshareset)
icons-nuvola: icons-nuvola:
$(call buildpkg,extras/icons-nuvola) $(call buildpkg,extras/icons-nuvola)

@ -17,23 +17,24 @@ DEVEL="$2"
# Some runtime packages are prefixed with 'trinity-', some are not. # Some runtime packages are prefixed with 'trinity-', some are not.
case "${PKGNAME}" in case "${PKGNAME}" in
"trinity-"*|"qt3"|"tqt3"|"tqtinterface"|"python-qt3"|"esound"|*"-tqt"|"lib"*) PREFIX="";; "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"|"libotr3"|"libtool"|"lilypond"|"m4"|"mftrace"|"pcsc-perl"|"torsocks"|"wv2") PREFIX="";;
"curl") PREFIX="trinity-lib";; "curl") PREFIX="trinity-lib";;
*) PREFIX="trinity-";; *) PREFIX="trinity-";;
esac esac
# Runtime packages # Runtime packages
lib=$(rpm -E %_lib)
case "${PKGNAME}" in case "${PKGNAME}" in
# Some packages have different runtime name than source package. # Some packages have different runtime name than source package.
"avahi-tqt") PKGRUNTIME="libavahi-tqt1";; "avahi-tqt") PKGRUNTIME="${lib}avahi-tqt1";;
"dbus-tqt") PKGRUNTIME="libdbus-tqt-1-0";; "dbus-tqt") PKGRUNTIME="${lib}dbus-tqt-1-0";;
"dbus-1-tqt") PKGRUNTIME="libdbus-1-tqt0";; "dbus-1-tqt") PKGRUNTIME="${lib}dbus-1-tqt0";;
"esound") PKGRUNTIME="esound-libs";; "esound") PKGRUNTIME="esound-libs";;
"koffice") PKGRUNTIME="trinity-koffice-suite";; "koffice") PKGRUNTIME="trinity-koffice-suite";;
"libart-lgpl") PKGRUNTIME="libart_lgpl_2-2";; "libart-lgpl") PKGRUNTIME="${lib}art_lgpl_2-2";;
"tqt3") PKGRUNTIME="libtqt3-mt";; "tqt3") PKGRUNTIME="${lib}tqt3-mt";;
"tqtinterface") PKGRUNTIME="libtqt4";; "tqtinterface") PKGRUNTIME="${lib}tqt4";;
# Language package: install only French language package # Language package: install only French language package
"k3b-i18n"|"koffice-i18n"|"tde-i18n") PKGRUNTIME="${PKGNAME}-French";; "k3b-i18n"|"koffice-i18n"|"tde-i18n") PKGRUNTIME="${PKGNAME}-French";;
# Default case: runtime package has same name as source package # Default case: runtime package has same name as source package
@ -61,18 +62,17 @@ if [ -n "${DEVEL}" ]; then
# Some package have specific development package. # Some package have specific development package.
case "${PKGNAME}" in case "${PKGNAME}" in
"avahi-tqt") PKGRUNTIME="libavahi-tqt-devel";; "avahi-tqt") PKGDEVEL="libavahi-tqt-devel";;
"dbus-tqt") PKGRUNTIME="libdbus-tqt-1-devel";; "dbus-tqt") PKGDEVEL="libdbus-tqt-1-devel";;
"dbus-1-tqt") PKGDEVEL="libdbus-1-tqt-devel";; "dbus-1-tqt") PKGDEVEL="libdbus-1-tqt-devel";;
"esound") PKGDEVEL="esound-devel";; "esound") PKGDEVEL="esound-devel";;
"libart-lgpl") PKGDEVEL="libart_lgpl-devel";; "libart-lgpl") PKGDEVEL="libart_lgpl-devel";;
"tqt3") PKGDEVEL="tqt3-dev-tools";; "tqt3") PKGDEVEL="tqt3-dev-tools tqt3-apps-devel";;
# Default case: development package has same name as runtime package, plus '-devel' suffix. # Default case: development package has same name as runtime package, plus '-devel' suffix.
*) PKGDEVEL="${PKGRUNTIME}-devel";; *) PKGDEVEL="${PKGRUNTIME}-devel";;
esac esac
# Finally, other packages do have a '-devel' # Finally, other packages do have a '-devel'
echo "${PREFIX}${PKGDEVEL}" echo "${PREFIX}${PKGDEVEL}"
fi fi

Loading…
Cancel
Save