from localhost (jalapeno [127.0.0.1])
	by jmason.org (Postfix) with ESMTP id 77D6A16F03
	for <jm@localhost>; Wed,  2 Oct 2002 11:44:08 +0100 (IST)
from jalapeno [127.0.0.1]
	by localhost with IMAP (fetchmail-5.9.0)
	for jm@localhost (single-drop); Wed, 02 Oct 2002 11:44:08 +0100 (IST)
from egwn.net (ns2.egwn.net [193.172.5.4]) by
    dogma.slashnull.org (8.11.6/8.11.6) with ESMTP id g9283uK31858 for
    <jm-rpm@jmason.org>; Wed, 2 Oct 2002 09:03:58 +0100
from mta7.pltn13.pbi.net (mta7.pltn13.pbi.net [64.164.98.8]) by
    egwn.net (8.11.6/8.11.6/EGWN) with ESMTP id g927sxf03169 for
    <rpm-list@freshrpms.net>; Wed, 2 Oct 2002 09:55:00 +0200
from eecs.berkeley.edu ([63.192.217.110]) by mta7.pltn13.pbi.net
    (iPlanet Messaging Server 5.1 (built May  7 2001)) with ESMTP id
    <0H3C00KKSGNKBC@mta7.pltn13.pbi.net> for rpm-list@freshrpms.net;
    Wed, 02 Oct 2002 00:54:58 -0700 (PDT)
alsa-driver.spec tweak for homemade kernels
From rpm-list-admin@freshrpms.net  Wed Oct  2 11:44:09 2002

I use a mostly Red Hat 8.0 system, but prefer to configure and build my
kernel by hand.  I'd like to humbly offer a tweak to alsa-driver.spec
that helps it build cleanly under such circumstances.  I recognize that
freshrpms.net packages are designed with standard Red Hat in mind,
including a standard kernel RPM.  However, I hope that Matthias will
consider the tweak small enough to justify its incorporation.
The diff is attached below.  The first part of the diff contains a
conditional that checks to see if the expected RPM is installed.  If it
is, %{karch} is set as before and a new %{krpm} flag is set to 1.  If
the expected RPM is not installed, then %{karch} is instead set using
"uname -p", while %{krpm} is left undefined.
The second part of the diff is simpler.  We only require that
kernel-source be installed if the kernel itself came from an RPM.  (If
the kernel was hand-built, the presumably the user knows enough to have
retained the sources in the expected place.)
Again, I realize that I'm operating "off warrantee" by not using a Red
Hat kernel RPM.  Matthias, if you think this tweak is reasonable and not
too ugly, I'd love to see you pick it up.  If not, well at least this
message will sit in the archives and may help other folks in the future.