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
pgp4oBLNRvRrU.pgp
Description: PGP signature
_______________________________________________ atrpms-users mailing list [email protected] http://lists.atrpms.net/mailman/listinfo/atrpms-users
