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