RPM packaging: update build scripts

pull/3/head
François Andriot 8 years ago
parent f0b5ce1156
commit 483dc217a7

@ -152,6 +152,12 @@ ifneq ($(wildcard /boot/vmlinuz*.el5*),)
$(call buildpkg,3rdparty/cmake)
endif
cscope:
# Build on PCLOS only
ifneq ($(wildcard /etc/pclinuxos-release),)
$(call buildpkg,3rdparty/cscope)
endif
dirmngr:
# Build on CentOS >= 7
ifneq ($(wildcard /boot/vmlinuz*.el7*),)
@ -554,7 +560,7 @@ krename: tdebase
krusader: tdebase
$(call buildpkg,applications/krusader)
kscope: tdebase
kscope: tdebase cscope
$(call buildpkg,applications/kscope)
ksensors: tdebase

@ -9,17 +9,12 @@ RPMDIR_ARCH="${RPMDIR}/$(rpm -E %_target_cpu)"
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
RPM_PKGNAME="$(get_rpm_package_name.sh ${PKGNAME})"
RPM=$(find ${RPMDIRS} -name "trinity-${PKGNAME##*/}-[0-9]*.rpm" | sort -n | tail -n 1)
RPM=$(find ${RPMDIRS} -name "trinity-${RPM_PKGNAME}-[0-9]*.rpm" | sort -n | tail -n 1)
if [ ! -r "${RPM}" ]; then
RPM=$(find ${RPMDIRS} -name "${PKGNAME##*/}-[0-9]*.rpm" | sort -n | tail -n 1)
RPM=$(find ${RPMDIRS} -name "${RPM_PKGNAME}-[0-9]*.rpm" | sort -n | tail -n 1)
if [ ! -r "${RPM}" ]; then
echo "Error, cannot find any package for '${PKGNAME}' !"
exit 1

Loading…
Cancel
Save