[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: headersinsource macro in kernel.spec
- From: Giulio Orsero <giulioo tiscalinet it>
- To: rpm-list redhat com
- Subject: Re: headersinsource macro in kernel.spec
- Date: Mon, 25 Sep 2000 18:44:09 +0200
On Mon, 25 Sep 2000 11:18:09 -0500, you wrote:
>I'm building my own patched kernel based on the 2.2.16-21 kernel from Redhat.
>I can't seem to get it to build a separate kernel-headers RPM.
>In the .spec file, I set this:
># define headersinsource as 1 to make the kernel-source package
># include the contents of what would otherwise be in a kernel-headers
># package; as 0 for separate packages. Used when a separate
># kernel-headers package is required.
>%define headersinsource 0
>...
>So, any idea why I never get a kernel-headers package out of this?
Search for
%{!?headersinsource:%files headers}
and use
%if "0" == "%{headersinsource}"
%files headers
%endif
instead
(credits to Leon Kanter)
Another solution require patching rpm so that it correctly parse the
original spec file.
--
giulioo@pobox.com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[]