[Nickle]Nickle 2.00 .deb, RPM available

Keith Packard keithp@keithp.com
Sat, 27 Oct 2001 10:14:55 -0700


Around 17 o'clock on Oct 27, Michael Cahill wrote:

> Firstly, I found that automake was uncooperative about copying
> some of the missing files into the nickle-2.00 directory as
> they exist in the parent - e.g., install-sh. This can be fixed
> by telling automake only to look in the current directory:
> 
> --- configure.in        Mon Oct 22 10:11:54 2001
> +++ nickle-2.00/configure.in    Sat Oct 27 16:56:24 2001
> @@ -7,6 +7,7 @@
>  AC_INIT(nickle.h)
>  AM_INIT_AUTOMAKE(nickle,2.00)
>  AM_CONFIG_HEADER(config.h)
> +AC_CONFIG_AUX_DIR(.)
>  
>  dnl Checks for programs.
>  AC_PROG_CC

That seems to work fine.

> The next issue was that the build-rpm script assumes that the
> RPM build area is in /usr/src/redhat. On my system it's
> /usr/src/RPM. The simplest way around this seems to be to change
> build-rpm to the following:

I've taken your suggestion and hacked it a bit; the build-rpm script now 
looks like:

#!/bin/sh
VERSION=`egrep AM_INIT_AUTOMAKE configure.in | sed -e 's/^.*,//' -e 's/).*$//'`
echo "Building nickle $VERSION RPM..." >&2
cvs -r export -D now -d nickle-$VERSION nickle
(cd nickle-$VERSION && sh ./autoconfigure.sh)
chmod +w nickle-$VERSION/nickle.spec
ed nickle-$VERSION/nickle.spec << EOF
g/VERSION/s/VERSION/$VERSION/
w
q
EOF
chmod -w nickle-$VERSION/nickle.spec
tar cf - nickle-$VERSION | bzip2 > nickle-$VERSION.tar.bz2
rm -rf nickle-$VERSION
rpm -ta --clean nickle-$VERSION.tar.bz2

The main differences are that this edits the nickle.spec in place instead 
of using the file from the current directory, and it avoids the 
problematic lack of a convention for tar's bz2 option.  I also went ahead 
and built a source RPM.

Thanks for the help; I can now build SuSE RPMs on my SuSE box.

-keith