ossp-pkg/pth/devtool.conf
##
## devtool.conf -- Development Tool Configuration
##
%autogen
@autogen shtool 2.0.6 "2.0.*" echo version scpp mkdir install fixperm tarball
@autogen libtool 1.5.22 "1.5*"
@autogen autoconf 2.59 "2.5*"
%autoclean
@autoclean shtool
@autoclean libtool
@autoclean autoconf
%configure
if [ $# -gt 0 ]; then
param="$1"
shift
else
param=devel
fi
./configure \
--cache-file=config.cache \
--with-param=$param \
"$@"
%install
./devtool autoclean
./devtool autogen
./devtool configure install
make clean
make all
make install
%version
./shtool version -lc -n 'GNU Pth' -p pth_internal_ -e pth_vers.c
V=`./shtool version -lc -dlong pth_vers.c`
sed -e "s/Version .*/Version $V/g" <README >README.n
mv README.n README
%dist
rm -f pth-*.tar.gz
./devtool autoclean
./devtool autogen
./devtool configure
make clean all
make distclean
./shtool fixperm -v .
V=`./shtool version -lc -d short pth_vers.c`
./shtool tarball -o pth-${V}.tar.gz -d pth-${V} -u gnu -g pth \
-e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*' -c 'gzip --best' .
ls -l pth-${V}.tar.gz
gunzip <pth-${V}.tar.gz | tar tvf - | head -10; echo "[...]"
gunzip <pth-${V}.tar.gz | tar tvf - | tail -10
%snap
rm -f pth-*.tar.gz
./devtool autoclean
./devtool autogen
./devtool configure
make clean all
make distclean
./shtool fixperm -v .
D=`date '+%Y%m%d'`
./shtool tarball -o pth-SNAP-${D}.tar.gz -d pth-SNAP-${D} -u gnu -g pth \
-e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*' -c 'gzip --best' .
ls -l pth-SNAP-${D}.tar.gz
gunzip <pth-SNAP-${D}.tar.gz | tar tvf - | head -10; echo "[...]"
gunzip <pth-SNAP-${D}.tar.gz | tar tvf - | tail -10
%striptease
perl striptease.pl
%depend
cp Makefile.in Makefile.in.bak
sed -ne '1,/^# DO NOT REMOVE/p' Makefile.in >Makefile.new
gcc -MM -I. *.c |\
perl -e 'my $d = ""; $d .= $_ while (<STDIN>); $_ = $d; \
s/^(pth_.*)\.o:/$1.lo:/mg; \
s|\\\n\s*| |sg; s|\b?\S*/\S*\b?||g; s|\s{2,}| |g; \
print $_;' >> Makefile.new
cp Makefile.new Makefile.in
rm -f Makefile.new