ossp-pkg/str/devtool.conf
1.5
##
## devtool.conf -- Development Tool Configuration
##
%autogen
@autogen shtool 1.6.2 "1.6.*" echo install mkdir fixperm tarball version
@autogen libtool 1.5.2 "1.5*"
@autogen autoconf 2.59 "2.5[4-9]*"
%autoclean
@autoclean shtool
@autoclean libtool
@autoclean autoconf
%configure
./configure \
--prefix=/tmp/str \
--disable-shared \
--enable-debug \
"$@"
%version
./shtool version -l c -n "OSSP str" -p "str_" -e str_version.c
V=`./shtool version -l c -d long str_version.c`
sed -e "s/Version .*/Version $V/g" <README >README.n
mv README.n README
%dist
rm -f str-*.tar.gz
./devtool autoclean
./devtool autogen
./configure
make clean all man
make distclean
./shtool fixperm -v .
V=`./shtool version -l c -d short str_version.c`
./shtool tarball -o str-${V}.tar.gz -d str-${V} -u ossp -g str \
-e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*' -c 'gzip --best' .
ls -l str-${V}.tar.gz
gunzip <str-${V}.tar.gz | tar tvf - | head -10; echo "[...]"
gunzip <str-${V}.tar.gz | tar tvf - | tail -10
%snap
rm -f str-*.tar.gz
./devtool autoclean
./devtool autogen
./configure
make clean all man
make distclean
./shtool fixperm -v .
D=`date '+%Y%m%d'`
./shtool tarball -o str-SNAP-${D}.tar.gz -d str-SNAP-${D} -u ossp -g str \
-e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*' -c 'gzip --best' .
ls -l str-SNAP-${D}.tar.gz
gunzip <str-SNAP-${D}.tar.gz | tar tvf - | head -10; echo "[...]"
gunzip <str-SNAP-${D}.tar.gz | tar tvf - | tail -10
%release
echo "+++ copying to ftp://ftp.ossp.org/pkg/lib/str/"
scp str-*.tar.gz master.ossp.org:/e/ossp/ftp/pkg/lib/str/