mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andreas Dilger <adilger@turbolinux.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: make rpm
Date: Mon, 30 Jul 2001 13:34:28 -0600 (MDT)	[thread overview]
Message-ID: <200107301934.f6UJYSWI031975@webber.adilger.int> (raw)
In-Reply-To: <E15QeJf-0008O8-00@the-village.bc.nu> "from Alan Cox at Jul 29, 2001 01:20:19 am"

Alan writes:
> scripts/mkspec

Probably clearer to make it a "here" document (untested).  EXTRASHORT could
have been left inline (inside ``), but it is a bit clearer this way, I think.

#!/bin/sh
#
#	Output a simple RPM spec file that uses no fancy features requring
#	RPM v4. This is intended to work with any RPM distro.
#
#	The only gothic bit here is redefining install_post to avoid 
#	stripping the symbols from files in the kernel which we want
#
EXTRASHORT=`echo $EXTRAVERSION | sed -e "s/-//"`

cat - << EOT
Name: kernel
Summary: The Linux Kernel
Version: $VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRASHORT
Release: `cat .version`
Copyright: GPL
Group: System Environment/Kernel
Vendor: The Linux Community
URL: http://www.kernel.org
Source: kernel-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRASHORT.tar.gz
BuildRoot: /var/tmp/%{name}-%{PACKAGE_VERSION}-root
%define __spec_install_post /usr/lib/rpm/brp-compress || :

%description
The Linux Kernel, the operating system core itself

%prep
%setup -q

%build
make oldconfig dep clean bzImage modules

%install
mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib $RPM_BUILD_ROOT/lib/modules
INSTALL_MOD_PATH=$RPM_BUILD_ROOT make modules_install
cp arch/i386/boot/bzImage $RPM_BUILD_ROOT/boot/vmlinuz-$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION

%clean
#echo -rf $RPM_BUILD_ROOT

%files
%defattr (-, root, root)
%dir /lib/modules
lib/modules/$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION

EOT

-- 
Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
                 \  would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert


  parent reply	other threads:[~2001-07-30 19:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-29  0:20 Alan Cox
2001-07-29  0:33 ` Horst von Brand
2001-07-29  1:05 ` Ben Pfaff
2001-07-29  2:53   ` Mike Touloumtzis
2001-07-29  8:22 ` Kai Henningsen
2001-07-29 11:58 ` Jean Charles Delepine
2001-07-29 12:19   ` Wichert Akkerman
2001-07-29 14:49     ` Steve Kowalik
2001-07-29 15:26       ` Wichert Akkerman
2001-07-29 21:23         ` Dominik Kubla
2001-07-30 19:34 ` Andreas Dilger [this message]
     [not found] <no.id>
2001-07-29  0:38 ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200107301934.f6UJYSWI031975@webber.adilger.int \
    --to=adilger@turbolinux.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®