Index: ossp-pkg/cfg/devtool.conf RCS File: /v/ossp/cvs/ossp-pkg/cfg/devtool.conf,v co -q -kk -p'1.21' '/v/ossp/cvs/ossp-pkg/cfg/devtool.conf,v' | diff -u /dev/null - -L'ossp-pkg/cfg/devtool.conf' 2>/dev/null --- ossp-pkg/cfg/devtool.conf +++ - 2024-05-17 03:58:10.616799062 +0200 @@ -0,0 +1,98 @@ +## +## OSSP cfg - Configuration Parsing +## Copyright (c) 2002-2004 Ralf S. Engelschall +## Copyright (c) 2002-2004 The OSSP Project +## Copyright (c) 2002-2004 Cable & Wireless +## +## This file is part of OSSP cfg, a configuration parsing library which +## can be found at http://www.ossp.org/pkg/lib/cfg/. +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## +## devtool.conf -- Development Tool Configuration +## + +%autogen + @autogen shtool 2.0.1 "2.0.*" echo fixperm install mkdir tarball version + @autogen libtool 1.5.10 "1.5*" + @autogen autoconf 2.59 "2.5[4-9]*" + +%autoclean + @autoclean shtool + @autoclean libtool + @autoclean autoconf + +%configure + ./configure \ + --prefix=/tmp/cfg \ + --disable-shared \ + --enable-maintainer \ + --enable-debug \ + --with-perl \ + "$@" + +%release + ./devtool version + ./devtool tag + ./devtool dist + ./devtool upload + +%version + ./shtool version -lc -n "OSSP cfg" -p "__cfg_" -e cfg_vers.c + V=`./shtool version -lc -dlong cfg_vers.c` + sed -e "s/Version .*(.*)/Version $V/g" README.n && mv README.n README + V=`./shtool version -l c -d short cfg_vers.c` + sed -e "s/\(v = ('\)[^']*\('\)/\1$V\2/g" perl/cfg.pm.n + mv perl/cfg.pm.n perl/cfg.pm + +%tag + V=`./shtool version -lc -dshort cfg_vers.c | sed -e 's;\.;_;g'` + echo "+++ tagging CVS sources as CFG_${V}" + cvs commit -m 'flush pending changes before tagging' + cvs tag CFG_${V} + +%dist + echo "+++ removing old tarballs" + rm -f cfg-*.tar.gz + echo "+++ generating" + ./devtool autoclean + ./devtool autogen + echo "+++ configuring" + ./devtool configure + echo "+++ building" + make clean all man + echo "+++ cleaning" + make distclean + echo "+++ fixing" + ./shtool fixperm -v . + echo "+++ rolling" + V=`./shtool version -lc -dshort cfg_vers.c` + ./shtool tarball -o cfg-${V}.tar.gz -d cfg-${V} -u ossp -g ossp \ + -e 'CVS,\.cvsignore,\.[ao]$,^\.,devtool*,*.tar.gz,^#.*,.*~$' -c 'gzip --best' . + ls -l cfg-${V}.tar.gz + echo "+++ testing" + gunzip