~ubuntu-branches/ubuntu/vivid/oss4/vivid-proposed

1.1.3 by Romain Beauxis
Import upstream version 4.2-build2004
1
#!/bin/sh
2
3
. ./.directories
4
5
VERSION=`sh showversion.sh`
6
RELEASE=`cat buildid.dat`
1.1.6 by Sebastien NOEL
Import upstream version 4.2-build2007
7
ARCH=`uname -m`
1.1.3 by Romain Beauxis
Import upstream version 4.2-build2004
8
OSSNAME=oss-linux
9
10
RPMNAME=$OSSNAME-$VERSION
11
PKGNAME=$OSSNAME-$VERSION-$RELEASE.$ARCH
12
echo building $RPMNAME.rpm
13
14
rm -rf spec $RPMNAME
15
mkdir $RPMNAME
16
echo "Version: " $VERSION > spec
17
echo "Release: " $RELEASE >> spec
18
echo "Name: " $OSSNAME >> spec
19
cat setup/Linux/spec.tmpl | sed "s:OSSLIBDIR:\"$OSSLIBDIR\":g" >> spec
20
echo "%files" >> spec
21
(cd prototype; find . -type f -print | sed 's/^.//g' > /tmp/filelist)
22
cat /tmp/filelist >> spec
23
rm -rf /tmp/prototype
24
cp -af prototype /tmp
25
tar zcvf /tmp/oss $RPMNAME
1.1.6 by Sebastien NOEL
Import upstream version 4.2-build2007
26
rpmbuild -bb --buildroot=/tmp/prototype --define "_sourcedir /tmp" --define "_rpmdir ./" --define '_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' spec
1.1.3 by Romain Beauxis
Import upstream version 4.2-build2004
27
# Cleanup
28
rm -rf /tmp/oss /tmp/filelist $RPMNAME spec
29
30
if test -f 4front-private/export_package.sh
31
then
32
  sh 4front-private/export_package.sh $PKGNAME.rpm . `sh showversion.sh` /tmp `uname -i`-26
33
fi