RPM Packaging: update build scripts

pull/3/head
François Andriot 11 years ago
parent 2684939e21
commit ebd751a0a3

@ -1,5 +1,11 @@
#!/bin/bash #!/bin/bash
LOCKFILE="/tmp/lock.${0##*/}"
while [ -e "${LOCKFILE}" ]; do
echo "Waiting for lock file '${LOCKFILE}' to vanish."
sleep 3
done
PKGCATEGORY="${1%%/*}" PKGCATEGORY="${1%%/*}"
PKGNAME="${1##*/}" PKGNAME="${1##*/}"

@ -2,6 +2,12 @@
WORKERS=$(getconf _NPROCESSORS_ONLN) WORKERS=$(getconf _NPROCESSORS_ONLN)
LOCKFILE="/tmp/lock.${0##*/}"
while [ -e "${LOCKFILE}" ]; do
echo "Waiting for lock file '${LOCKFILE}' to vanish."
sleep 3
done
if [ -x /usr/sbin/urpmi ]; then if [ -x /usr/sbin/urpmi ]; then
REPOUPDATE='(cd $(rpm -E %{_rpmdir}); genhdlist2 --clean --allow-empty noarch; genhdlist2 --clean --allow-empty $(uname -i); sudo urpmi.update rpmbuild.$(uname -i) rpmbuild.noarch)' REPOUPDATE='(cd $(rpm -E %{_rpmdir}); genhdlist2 --clean --allow-empty noarch; genhdlist2 --clean --allow-empty $(uname -i); sudo urpmi.update rpmbuild.$(uname -i) rpmbuild.noarch)'
elif [ -x /usr/bin/zypper ]; then elif [ -x /usr/bin/zypper ]; then
@ -12,4 +18,4 @@ elif [ -x /usr/bin/apt-get ]; then
REPOUPDATE='(cd $(rpm -E %{_rpmdir}); genpkglist $PWD noarch; genpkglist $PWD i586; genpkglist $PWD x86_64; genbasedir $PWD i586 x86_64 noarch; sudo apt-get update)' REPOUPDATE='(cd $(rpm -E %{_rpmdir}); genpkglist $PWD noarch; genpkglist $PWD i586; genpkglist $PWD x86_64; genbasedir $PWD i586 x86_64 noarch; sudo apt-get update)'
fi fi
eval ${REPOUPDATE} || exit 1 eval "${REPOUPDATE}; rm -f ${LOCKFILE}"|| exit 1

@ -12,10 +12,6 @@ export PATH="${PATH}:${TDE_GITBASEPKG}"
# Distribution suffix (e.g: .el6 , .mga3 ...) # Distribution suffix (e.g: .el6 , .mga3 ...)
export DIST="$( "${TDE_GITBASEPKG}/build/rpmdist.sh" --dist )" export DIST="$( "${TDE_GITBASEPKG}/build/rpmdist.sh" --dist )"
<<<<<<< HEAD
=======
#alias dist='~/bin/rpmdist.sh --dist'
>>>>>>> 650867080ee48b3e555a57f7ac0dab05eb4c6447
# Go to the RPMS folder # Go to the RPMS folder
alias cdrpm='cd ~/rpmbuild/RPMS/RPMS${DIST}' alias cdrpm='cd ~/rpmbuild/RPMS/RPMS${DIST}'

@ -30,7 +30,7 @@ else
#eval TARBALLS_DIR=~/tde/tde-tarballs/14.0.0 #eval TARBALLS_DIR=~/tde/tde-tarballs/14.0.0
fi fi
clear #clear
cat <<EOF cat <<EOF
$(< /etc/redhat-release) [$(uname -m)] $(< /etc/redhat-release) [$(uname -m)]
This script generates RPM of TDE from source tarball. This script generates RPM of TDE from source tarball.
@ -123,8 +123,6 @@ About to build '${COMP}':
Spec file: '${SPEC}' Spec file: '${SPEC}'
Tarball: '${TARBALL}' Tarball: '${TARBALL}'
CCACHE_DIR='${CCACHE_DIR}'
Press ENTER to build, or CTRL+C to abort. Press ENTER to build, or CTRL+C to abort.
EOF EOF
[ -z "${AUTO}" ] && read rep [ -z "${AUTO}" ] && read rep
@ -191,7 +189,6 @@ rpmbuild -ba \
echo "RET=$?" echo "RET=$?"
) 2>&1 | tee ${LOGFILE} ) 2>&1 | tee ${LOGFILE}
eval "$(grep ^RET= ${LOGFILE})" eval "$(grep ^RET= ${LOGFILE})"
set +x
# Removes temporary source directory # Removes temporary source directory
rm -rf "${SOURCEDIR}" rm -rf "${SOURCEDIR}"
@ -199,6 +196,7 @@ rm -rf "${SOURCEDIR}"
if [ "${RET}" -gt 0 ]; then if [ "${RET}" -gt 0 ]; then
exit ${RET} exit ${RET}
fi fi
set +x
if grep -q "error: Failed build dependencies:" ${LOGFILE}; then if grep -q "error: Failed build dependencies:" ${LOGFILE}; then
# DEPS=$( sed -n -e "/.* is needed by .*/ s/^[ \t]*\([a-zA-Z2-9_-]*\) .*/\1/p" ${LOGFILE} ) # DEPS=$( sed -n -e "/.* is needed by .*/ s/^[ \t]*\([a-zA-Z2-9_-]*\) .*/\1/p" ${LOGFILE} )

@ -9,6 +9,7 @@ binutils-devel
bison bison
boost-devel boost-devel
bzip2-devel bzip2-devel
ccache
ccrtp-devel ccrtp-devel
cdparanoia cdparanoia
cdparanoia-devel cdparanoia-devel
@ -16,19 +17,28 @@ chrpath
clucene-core-devel clucene-core-devel
cmake cmake
commoncpp2-devel commoncpp2-devel
cpp
cppunit-devel cppunit-devel
createrepo createrepo
cups-devel
db4-devel db4-devel
dbus-glib-devel
djvulibre djvulibre
djvulibre-devel djvulibre-devel
doxygen
dssi-devel
esound-devel esound-devel
exiv2-devel exiv2-devel
ffmpeg-devel ffmpeg-devel
fftw-devel
file-devel file-devel
flac-devel flac-devel
flex-static flex-static
fribidi-devel fribidi-devel
gamin-devel gamin-devel
gcc
gcc-c++
gcc-java
gettext-devel gettext-devel
glib-devel glib-devel
gmp-devel gmp-devel
@ -42,46 +52,59 @@ gstreamer-devel
gstreamer-plugins-base-devel gstreamer-plugins-base-devel
gtk2-devel gtk2-devel
gtk+-devel gtk+-devel
gtk-doc
guile-devel guile-devel
hal-devel hal-devel
hspell-devel hspell-devel
html2ps
icu icu
ImageMagick-devel
imake imake
imlib-devel
jack-audio-connection-kit-devel jack-audio-connection-kit-devel
jasper-devel jasper-devel
java-1.4.2-gcj-compat-devel
java-1.7.0-openjdk-devel java-1.7.0-openjdk-devel
java-devel java-devel
java-openjdk java-openjdk
lame-devel lame-devel
lcms-devel lcms-devel
libacl-devel
libart_lgpl-devel libart_lgpl-devel
libblkid-devel libblkid-devel
libcap-devel
libcdio-devel libcdio-devel
libcdio-paranoia-devel libcdio-paranoia-devel
libcurl-devel libcurl-devel
libdb-devel
libdb-cxx-devel libdb-cxx-devel
libdb-devel
libdvdread-devel libdvdread-devel
libfontenc-devel libfontenc-devel
libgadu-devel libgadu-devel
libgcj-devel
libgpod-devel libgpod-devel
libgsf-devel libgsf-devel
libgssapi-devel libgssapi-devel
libical-devel libical-devel
libidn-devel libidn-devel
libifp-devel libifp-devel
liblo-devel
liblrdf-devel
libmad-devel libmad-devel
libmng-devel
libmp4v2-devel libmp4v2-devel
libmpcdec-devel libmpcdec-devel
libmtp-devel libmtp-devel
libmusicbrainz-devel libmusicbrainz-devel
libnjb-devel libnjb-devel
libofx-devel
libogg-devel libogg-devel
libotr-devel libotr-devel
libpaper-devel libpaper-devel
libpqxx-devel libpqxx-devel
libraw1394-devel libraw1394-devel
librsvg2 librsvg2
librsvg2-tools
libsamplerate-devel libsamplerate-devel
libsmbclient-devel libsmbclient-devel
libsndfile-devel libsndfile-devel
@ -93,55 +116,75 @@ libtool-ltdl-devel
libtunepimp-devel libtunepimp-devel
libudev-devel libudev-devel
libutempter-devel libutempter-devel
libv4l-devel
libvisual-devel libvisual-devel
libvorbis-devel libvorbis-devel
libwmf-devel libwmf-devel
libwpd-devel libwpd-devel
libXaw-devel libXaw-devel
libXcomposite-devel
libXdamage-devel
libXdmcp-devel libXdmcp-devel
libxkbfile-devel libxkbfile-devel
libXScrnSaver-devel libXScrnSaver-devel
libxslt-devel libxslt-devel
libXtst-devel libXtst-devel
libXv-devel
libXxf86dga-devel libXxf86dga-devel
libXxf86vm-devel
libzrtpcpp-devel libzrtpcpp-devel
lirc-devel
lm_sensors-devel lm_sensors-devel
meanwhile-devel meanwhile-devel
mftrace mftrace
mysql-devel
nas-devel nas-devel
neon-devel neon-devel
netpbm-progs netpbm-progs
net-snmp-devel net-snmp-devel
net-tools
NetworkManager-glib-devel
ocaml
ocaml(compiler) ocaml(compiler)
OpenEXR-devel OpenEXR-devel
openldap-devel openldap-devel
openslp-devel openslp-devel
opensp-devel
ortp-devel ortp-devel
pam-devel pam-devel
pciutils-devel pciutils-devel
pcre-devel pcre-devel
pcsc-lite-devel
perl
perl-devel perl-devel
perl(ExtUtils::MakeMaker) perl(ExtUtils::MakeMaker)
perl(XML::Parser) perl(XML::Parser)
pilot-link-devel pilot-link-devel
poppler-devel poppler-devel
postgresql-devel
pth-devel pth-devel
pulseaudio-libs-devel pulseaudio-libs-devel
recode
redhat-rpm-config redhat-rpm-config
rpm-build rpm-build
ruby ruby
ruby-devel ruby-devel
sane-backends-devel sane-backends-devel
scons
SDL-devel SDL-devel
sip-devel sip-devel
speex-devel speex-devel
sqlite-devel
subversion-devel subversion-devel
sword-devel sword-devel
t1lib-devel t1lib-devel
t1utils t1utils
taglib-devel taglib-devel
tar
transfig transfig
udev-devel udev-devel
udisks-devel
unixODBC-devel
valgrind valgrind
wireless-tools-devel wireless-tools-devel
wv2-devel wv2-devel
@ -154,45 +197,3 @@ xscreensaver
xscreensaver-extras xscreensaver-extras
xulrunner-devel xulrunner-devel
xz-devel xz-devel
recode
libofx-devel
opensp-devel
ImageMagick-devel
doxygen
scons
imlib-devel
fftw-devel
dssi-devel
liblo-devel
lirc-devel
dbus-glib-devel
html2ps
gcc
gcc-c++
cpp
ccache
mysql-devel
postgresql-devel
libacl-devel
libv4l-devel
perl
cups-devel
tar
sqlite-devel
liblrdf-devel
unixODBC-devel
gtk-doc
librsvg2-tools
libXv-devel
net-tools
libcap-devel
libmng-devel
libXcomposite-devel
libXdamage-devel
libXxf86vm-devel
java-1.4.2-gcj-compat-devel
libgcj-devel
gcc-java
ocaml
pcsc-lite-devel

Loading…
Cancel
Save