[ATrpms-users] Rebuilding an .src.rpm from atrpms

Oliver Schulze L. oliver at samera.com.py
Mon Feb 19 10:27:41 CET 2007


Many thanks Axel!
It is working now, I created this file:
  /etc/rpm/macros.atrpms
with this lines:

# macros used in atrpms's .spec files [www.atrpms.net]
%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}}

And it is compilling now.

Many this info could go to a atrpms wiki ;) (I recomend dokuwiki)

Updating the dovecot wiki ...

Thanks
Oliver


Axel Thimm wrote:
> On Mon, Feb 19, 2007 at 10:06:17AM +0100, Axel Thimm wrote:
>   
>> On Mon, Feb 19, 2007 at 05:51:24AM -0300, Oliver Schulze L. wrote:
>>     
>>> I'm getting this error:
>>> # rpmbuild  --target=i686 --without inotify --with pam_stack --rebuild 
>>> dovecot-1.0-2_45.rc22.at.src.rpm
>>> Installing /opt/shares/tmp/dovecot-1.0-2_45.rc22.at.src.rpm
>>> Building target platforms: i686
>>> Building for target i686
>>> error: line 1: Unknown tag: %bcond_without inotify
>>>
>>> I'm CentOS 4.4
>>>
>>> Thanks
>>> Oliver
>>>       
>> Seems to be a popula question, just yesterday someone asked on
>> atrpms-devel. Put these into /etc/rpm/macros or ~/.rpmmacros
>>
>> %bcond_with()           %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
>> %bcond_without()        %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
>>     
>
> you'll also need
>
> %with()         %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
> %without()      %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
>
>   
>> These were introduced with rpm 4.4, but CentOS is on 4.3.x. I need
>> these macros to distinguish different OSes. For CentOS 4 you will have
>> to use
>>
>> rpmbuild --rebuild --without inotify --with pam_stack --with forcequota2 dovecot-1.0-2_45.rc22.at.src.rpm
>>
>> (you missed the forcequota2)
>>     

-- 
Oliver Schulze L.   | Get my e-mail after a captcha in:
Asuncion - Paraguay | http://tinymailto.com/oliver 




More information about the atrpms-users mailing list