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

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

 



--- Mihai Maties <mihai@xxxxxxxx> wrote:
> Hello,
> 
> I have a small shell script that figures out the
> linux distribution the rpm 
> was built on to include a small part into the
> "release" field so the final 
> package will be named something like:
> name-version-4.rh9.i386.rpm. The 
> problem is that the script is executed also when I
> build the src.rpm file 
> thus the name "mdk92.src.rpm" it's pretty
> annoying...
> 
> How can I differentiate inside the spec the
> invocation of a src.rpm build from 
> the binary build ?
You can redefine _rpmfilename from the standard
%%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm

to
%%{ARCH}/%%{NAME}-%%{VERSION}-%%{RELEASE}.%%{YOUR_DISTRIBUTION_DEFINE}.%%{ARCH}.rpm


It will affect ONLY binary packages names.

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


__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/


_______________________________________________
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