[ATrpms-users] rebuild lm_sensors

Axel Thimm Axel.Thimm at ATrpms.net
Sun Apr 22 10:09:36 CEST 2007


On Thu, Jan 18, 2007 at 03:38:32PM +0100, Wolfgang Neubert wrote:
> Hello,
> 
> currently I am trying to install the lm_sensors rpm on Redhat
> Enterprise 3. Unfortunately the kernel modules package is only
> available for the latest kernel ...47.0.1 and I have an older
> version ...47 installed. So I downloaded
> lm_sensors-2.10.1-45.at.src.rpm and lm_sensors.spec and tried to
> rebuild the rpms from the source rpms, but without success:
> 
> root# rpmbuild -bb lm_sensors.spec
> error: line 1: Unknown tag: %bcond_with kernel24
> 
> What is the correct way to rebuild the rpms ?

Use this

# /etc/rpm/macros.bcond
# macros used in rpm 4.4, not available in previous versions
%bcond_with()           %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
%bcond_without()        %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
%with()         %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
%without()      %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}

But why not simply upgrade the kernel?
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.atrpms.net/pipermail/atrpms-users/attachments/20070422/5cc4fa46/attachment.bin 


More information about the atrpms-users mailing list