Generating rpm spec from autoconf/automake packages for Fedora
Paul Heinlein
heinlein at madboa.com
Wed Jun 16 13:15:55 UTC 2004
On Wed, 16 Jun 2004, Rui Miguel Seabra wrote:
> Why not:
>
> ./configure --prefix=/tmp/Z
> make
> make install
> cd /tmp/Z
> find
#!/bin/sh
# unpack tarball, eye-grep README &c., then...
#
# pass extra autoconf args directly, escaping quotes
#
# /path/to/this/script.sh --with-pam --title=\"Fedora Build\"
#
BROOT="${BROOT:=/var/tmp/$(basename $PWD)-root}"
eval "$(rpm --eval %configure) $*"
make $(rpm --eval %_smp_mflags)
eval "$(rpm --define "buildroot $BROOT" --eval %makeinstall)"
# make DESTDIR=$BROOT install
# then get a list of packages manually...
# find $BROOT | LANG=C sort
-- Paul Heinlein <heinlein at madboa.com>
More information about the fedora-devel-list
mailing list