ossp-pkg/due/devtool.conf
##
## devtool.conf -- Development Tool Configuration
##
%autogen
@autogen autoconf 2.59 "2.5*"
@autogen shtool 2.0.1 "2.0.*" all
%autoclean
@autoclean autoconf
@autoclean shtool
%configure
./configure --prefix=/tmp/due "$@"
%version
./shtool version -l txt -n "OSSP due" -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
echo "+++ cleaning"
make distclean
echo "+++ fixing"
./shtool fixperm -v .
echo "+++ rolling"
V=`./shtool version -l txt -d short VERSION`
./shtool tarball -o due-${V}.tar.gz -d due-${V} -u ossp -g due \
-e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*,*.tar.gz' -c 'gzip --best' .
ls -l due-${V}.tar.gz
echo "+++ testing"
gunzip <due-${V}.tar.gz | tar tvf -
%test
env -i USER=$USER TERM=$TERM HOME=`pwd` `which bash` "$@"