ossp-pkg/ex/devtool.conf
##
## devtool.conf -- Development Tool Configuration
##
%autogen
@autogen shtool 2.0.7 "2.0.*" all
@autogen libtool 1.5.24 "1.5*"
@autogen autoconf 2.61 "2.6[0-9]*"
%autoclean
@autoclean shtool
@autoclean libtool
@autoclean autoconf
%configure
./configure \
--prefix=/tmp/ex \
--disable-shared \
--enable-debug \
"$@"
%version
./shtool version -l txt -n "OSSP ex" -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 ex-${V}.tar.gz -d ex-${V} -u ossp -g ex \
-e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*,*.tar.gz,00TODO,*~' -c 'gzip --best' .
ls -l ex-${V}.tar.gz
echo "+++ testing"
gunzip <ex-${V}.tar.gz | tar tvf -
%release
echo "+++ copying to ftp://ftp.ossp.org/pkg/lib/ex/"
scp ex-*.tar.gz ossp@master.ossp.org:/v/ossp/ftp/pkg/lib/ex/