ossp-pkg/tai/devtool.conf
##
## devtool.conf -- Development Tool Configuration
##
%autogen
@autogen shtool 2.0.3 "2.0.*" all
@autogen libtool 1.5.20 "1.5*"
@autogen autoconf 2.59 "2.5[4-9]*"
%autoclean
@autoclean shtool
@autoclean libtool
@autoclean autoconf
%configure
./configure \
--prefix=/tmp/tai \
--disable-shared \
--enable-debug \
"$@"
%version
./shtool version -l txt -n "OSSP tai" -e VERSION
V=`./shtool version -l txt -d long VERSION`
sed -e "s/Version .*(.*)/Version $V/g" <README >README.n
mv README.n README
%dist
echo "+++ generating"
./devtool autoclean
./devtool autogen
echo "+++ configuring"
./configure
echo "+++ building"
make clean all man
echo "+++ cleaning"
make distclean
echo "+++ fixing"
./shtool fixperm -v .
echo "+++ rolling"
V=`./shtool version -l txt -d short VERSION`
./shtool tarball -o tai-${V}.tar.gz -d tai-${V} -u ossp -g ossp \
-e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*,*.tar.gz' -c 'gzip --best' .
ls -l tai-${V}.tar.gz
echo "+++ testing"
gunzip <tai-${V}.tar.gz | tar tvf -
%release
echo "+++ copying to ftp://ftp.ossp.org/pkg/lib/tai/"
scp tai-*.tar.gz master.ossp.org:/e/ossp/ftp/pkg/lib/tai/