ossp-pkg/val/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/val \
--disable-shared \
--enable-maintainer \
--enable-debug \
"$@"
%version
shtool version -l txt -n "OSSP val" -p "val_" -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
rm -f val-*.tar.gz
./devtool autoclean
./devtool autogen
./configure
make clean all man
make distclean
./shtool fixperm -v .
V=`./shtool version -l txt -d short VERSION`
./shtool tarball -o val-${V}.tar.gz -d val-${V} -u ossp -g val \
-e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*' -c 'gzip --best' .
ls -l val-${V}.tar.gz
gunzip <val-${V}.tar.gz | tar tvf - | head -10; echo "[...]"
gunzip <val-${V}.tar.gz | tar tvf - | tail -10
%snap
rm -f val-*.tar.gz
./devtool autoclean
./devtool autogen
./configure
make clean all man
make distclean
./shtool fixperm -v .
D=`date '+%Y%m%d'`
./shtool tarball -o val-SNAP-${D}.tar.gz -d val-SNAP-${D} -u ossp -g val \
-e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*' -c 'gzip --best' .
ls -l val-SNAP-${D}.tar.gz
gunzip <val-SNAP-${D}.tar.gz | tar tvf - | head -10; echo "[...]"
gunzip <val-SNAP-${D}.tar.gz | tar tvf - | tail -10
%release
echo "+++ copying to ftp://ftp.ossp.org/pkg/lib/val/"
scp val-*.tar.gz ossp@master.ossp.org:/v/ossp/ftp/pkg/lib/val/