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

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

 



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


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux