[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Differentiate a src.rpm build from a binary rpm build



On Tuesday 25 November 2003 14:29, Valery Reznic wrote:
> You can redefine _rpmfilename from the standard
> %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm
>
> to
> %%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{YOUR_DISTRIBUTION_DEFINE}.%%{A
>RCH}.rpm
>
>
> It will affect ONLY binary packages names.

Thank you, it is exactly what I needed, one more thing though:

Is there a way I can write multiple lines inside the %( ) macro or at least 
continue them with a bash-like line continuation "\" ? I tried something 
like:
%(first line \
second line)
but it does not work. 

I want to include the shell script that I use to figure out the linux 
distribution but it looks very ugly in one line. For the moment I saved the 
shell script into a separate file that I include on every build as Source9, 
but I wanted to know if it is possible to include the script in the spec 
file.


Mihai




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]