RPM packaging: update build scripts

pull/3/head
François Andriot 8 years ago
parent 69bf36171e
commit 706d6bb517

@ -289,7 +289,10 @@ libksquirrel: tdelibs
$(call buildpkg,libraries/libksquirrel) $(call buildpkg,libraries/libksquirrel)
libtdeldap: tqtinterface libtdeldap: tqtinterface
# Do NOT build on PCLOS
ifeq ($(wildcard /etc/pclinuxos-release),)
$(call buildpkg,libraries/libtdeldap) $(call buildpkg,libraries/libtdeldap)
endif
libtqt-perl: tqtinterface libtqt-perl: tqtinterface
$(call buildpkg,libraries/libtqt-perl) $(call buildpkg,libraries/libtqt-perl)
@ -401,13 +404,22 @@ kcmautostart: tdebase
$(call buildpkg,applications/kcmautostart) $(call buildpkg,applications/kcmautostart)
kcmldap: tdebase libtdeldap kcmldap: tdebase libtdeldap
# Do NOT build on CentOS 5, PCLinuxOS
ifeq ($(wildcard /boot/vmlinuz*.el5* /etc/pclinuxos-release),)
$(call buildpkg,applications/kcmldap) $(call buildpkg,applications/kcmldap)
endif
kcmldapcontroller: tdebase kcmldap kcmldapcontroller: tdebase kcmldap
# Do NOT build on CentOS 5, PCLinuxOS
ifeq ($(wildcard /boot/vmlinuz*.el5* /etc/pclinuxos-release),)
$(call buildpkg,applications/kcmldapcontroller) $(call buildpkg,applications/kcmldapcontroller)
endif
kcmldapmanager: tdebase kcmldap kcmldapmanager: tdebase kcmldap
# Do NOT build on CentOS 5, PCLinuxOS
ifeq ($(wildcard /boot/vmlinuz*.el5* /etc/pclinuxos-release),)
$(call buildpkg,applications/kcmldapmanager) $(call buildpkg,applications/kcmldapmanager)
endif
kcpuload: tdebase kcpuload: tdebase
$(call buildpkg,applications/kcpuload) $(call buildpkg,applications/kcpuload)
@ -431,7 +443,10 @@ keep: tdebase
$(call buildpkg,applications/keep) $(call buildpkg,applications/keep)
kerberostray: tdebase kerberostray: tdebase
# Do NOT build on CentOS 5, PCLinuxOS
ifeq ($(wildcard /boot/vmlinuz*.el5* /etc/pclinuxos-release),)
$(call buildpkg,applications/kerberostray) $(call buildpkg,applications/kerberostray)
endif
kerry: tdebase kerry: tdebase
$(call buildpkg,applications/kerry) $(call buildpkg,applications/kerry)
@ -684,7 +699,10 @@ tdmtheme: tdebase
$(call buildpkg,applications/tdmtheme) $(call buildpkg,applications/tdmtheme)
tellico: tdebase tellico: tdebase
# Do NOT build on CentOS 5
ifeq ($(wildcard /boot/vmlinuz*.el5*),)
$(call buildpkg,applications/tellico) $(call buildpkg,applications/tellico)
endif
tork: tdebase torsocks tork: tdebase torsocks
$(call buildpkg,applications/tork) $(call buildpkg,applications/tork)

@ -24,7 +24,7 @@ case "${PKGNAME}" in
# Most TDE libraries have no prefix # Most TDE libraries have no prefix
#"libkdcraw") PREFIX="";; #"libkdcraw") PREFIX="";;
# 3rd party dependencies # 3rd party dependencies
"dirmngr"|"esound"|"fileshareset"|"hk_classes"|"lcms"|"python-qt3"|"tar") PREFIX="";; "dirmngr"|"esound"|"exempi"|"file"|"fileshareset"|"hk_classes"|"lcms"|"python-qt3"|"tar") PREFIX="";;
# Extra build stuff # Extra build stuff
"autoconf"|"automake"|"cmake"|"gnuchess"|"htdig"|"imlib1"|"libconfig"|"libotr3"|"libr"|"libtool2"|"lilypond"|"m4"|"mftrace"|"pan"|"pcsc-perl"|"torsocks"|"wv2") PREFIX="";; "autoconf"|"automake"|"cmake"|"gnuchess"|"htdig"|"imlib1"|"libconfig"|"libotr3"|"libr"|"libtool2"|"lilypond"|"m4"|"mftrace"|"pan"|"pcsc-perl"|"torsocks"|"wv2") PREFIX="";;
# Other # Other
@ -94,7 +94,7 @@ if [ -n "${DEVEL}" ]; then
"dbus-1-tqt") PKGDEVEL="libdbus-1-tqt-devel";; "dbus-1-tqt") PKGDEVEL="libdbus-1-tqt-devel";;
"esound") PKGDEVEL="esound-devel";; "esound") PKGDEVEL="esound-devel";;
"imlib1") PKGDEVEL="${lib}Imlib-devel";; "imlib1") PKGDEVEL="${lib}Imlib-devel";;
"pan") PKGDEVEL="uulib-devel";; "koffice") PKGDEVEL="koffice-devel";;
"libart-lgpl") PKGDEVEL="libart_lgpl-devel";; "libart-lgpl") PKGDEVEL="libart_lgpl-devel";;
"libcaldav") PKGDEVEL="${lib}caldav-devel";; "libcaldav") PKGDEVEL="${lib}caldav-devel";;
"libcarddav") PKGDEVEL="${lib}carddav-devel";; "libcarddav") PKGDEVEL="${lib}carddav-devel";;
@ -102,6 +102,7 @@ if [ -n "${DEVEL}" ]; then
"libkexiv2") PKGDEVEL="${lib}kexiv2-devel";; "libkexiv2") PKGDEVEL="${lib}kexiv2-devel";;
"libkipi") PKGDEVEL="${lib}kipi-devel";; "libkipi") PKGDEVEL="${lib}kipi-devel";;
"libr") PKGDEVEL="${lib}r-devel";; "libr") PKGDEVEL="${lib}r-devel";;
"pan") PKGDEVEL="uulib-devel";;
"tqca") PKGDEVEL="${lib}tqca-devel";; "tqca") PKGDEVEL="${lib}tqca-devel";;
"tqscintilla") PKGDEVEL="${lib}tqscintilla-devel";; "tqscintilla") PKGDEVEL="${lib}tqscintilla-devel";;
"tqt3") PKGDEVEL="tqt3-dev-tools tqt3-apps-devel tqt3-compat-headers ${lib}tqt3-mt-sqlite3";; "tqt3") PKGDEVEL="tqt3-dev-tools tqt3-apps-devel tqt3-compat-headers ${lib}tqt3-mt-sqlite3";;

@ -16,16 +16,16 @@ RPMDIR=$(rpm -E %{_rpmdir}.tde-${TDE_VERSION})
[ -d "${RPMDIR}/${ARCH}" ] || mkdir -p "${RPMDIR}/${ARCH}" [ -d "${RPMDIR}/${ARCH}" ] || mkdir -p "${RPMDIR}/${ARCH}"
if [ -x /usr/bin/dnf ]; then if [ -x /usr/bin/dnf ]; then
REPOUPDATE='(cd ${RPMDIR}; createrepo --workers=${WORKERS} ${ARCH} & createrepo --workers=${WORKERS} noarch & wait; sudo dnf clean all --disablerepo="*" --enablerepo="rpmbuild*")' REPOUPDATE='(cd ${RPMDIR}; createrepo --workers=${WORKERS} ${ARCH} & createrepo --workers=${WORKERS} noarch & wait; sudo dnf clean expire-cache --disablerepo="*" --enablerepo="rpmbuild*")'
elif [ -x /usr/sbin/urpmi ]; then elif [ -x /usr/sbin/urpmi ]; then
REPOUPDATE='(cd ${RPMDIR}; genhdlist2 --clean --allow-empty noarch & genhdlist2 --clean --allow-empty ${ARCH} & wait; sudo urpmi.update rpmbuild.${ARCH} rpmbuild.noarch)' REPOUPDATE='(cd ${RPMDIR}; genhdlist2 --clean --allow-empty noarch & genhdlist2 --clean --allow-empty ${ARCH} & wait; sudo urpmi.update rpmbuild.${ARCH} rpmbuild.noarch)'
elif [ -x /usr/bin/zypper ]; then elif [ -x /usr/bin/zypper ]; then
REPOUPDATE='(cd ${RPMDIR}; createrepo --workers=${WORKERS} ${ARCH} & createrepo --workers=${WORKERS} noarch & wait; sudo zypper refresh rpmbuild.${ARCH} rpmbuild.noarch)' REPOUPDATE='(cd ${RPMDIR}; createrepo --workers=${WORKERS} ${ARCH} & createrepo --workers=${WORKERS} noarch & wait; sudo zypper refresh rpmbuild.${ARCH} rpmbuild.noarch)'
elif [ -x /usr/bin/yum ]; then elif [ -x /usr/bin/yum ]; then
if [ "$(rpm -E %dist)" = ".el5" ]; then if [ "$(rpm -E %dist)" = ".el5" ]; then
REPOUPDATE='(cd ${RPMDIR}; createrepo ${ARCH} & createrepo noarch & wait; sudo yum clean all --disablerepo="*" --enablerepo="rpmbuild*")' REPOUPDATE='(cd ${RPMDIR}; createrepo ${ARCH} & createrepo noarch & wait; sudo yum clean metadata --disablerepo="*" --enablerepo="rpmbuild*")'
else else
REPOUPDATE='(cd ${RPMDIR}; createrepo --workers=${WORKERS} ${ARCH} & createrepo --workers=${WORKERS} noarch & wait; sudo yum clean all --disablerepo="*" --enablerepo="rpmbuild*")' REPOUPDATE='(cd ${RPMDIR}; createrepo --workers=${WORKERS} ${ARCH} & createrepo --workers=${WORKERS} noarch & wait; sudo yum clean metadata --disablerepo="*" --enablerepo="rpmbuild*")'
fi fi
elif [ -x /usr/bin/apt-get ]; then elif [ -x /usr/bin/apt-get ]; then
REPOUPDATE='(cd ${RPMDIR}; genpkglist $PWD noarch & genpkglist $PWD ${ARCH} & wait; genbasedir $PWD i586 x86_64 noarch; sudo apt-get update)' REPOUPDATE='(cd ${RPMDIR}; genpkglist $PWD noarch & genpkglist $PWD ${ARCH} & wait; genbasedir $PWD i586 x86_64 noarch; sudo apt-get update)'

@ -83,7 +83,7 @@ do_optimizegraphics() {
done < submodules done < submodules
} }
alias rr='rpm -qa --qf "%{name} %{buildhost}\n" | grep "\.vtf" | awk "{print \$1}"' alias rr='rpm -qa --qf "%{name}|%{buildhost}|%{packager}\n" | grep -e "\(\.vtf\|andriot\)"|cut -d"|" -f1 | sort'
# Update main repository # Update main repository
alias tdu='(export GIT_ASKPASS=/bin/true; cd ~/tde/tde_r14; ./scripts/switch_all_submodules_to_head_and_clean)' alias tdu='(export GIT_ASKPASS=/bin/true; cd ~/tde/tde_r14; ./scripts/switch_all_submodules_to_head_and_clean)'

Loading…
Cancel
Save