Re: How to make a selective spec file

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

 



On Fri, 2006-02-03 at 20:45 -0600, Rex Dieter wrote:
> Eric Tanguy wrote:
> > Le vendredi 03 février 2006 à 16:51 -0600, Rex Dieter a écrit :
> 
> >>Eric Tanguy wrote:
> 
> >>>>Something like this ought to do the trick:
> >>>>%if "%{?fedora}" > "4"
> >>>>CXXFLAGS="${RPM_OPT_FLAGS} -ffriend-injection"
> >>>>%endif
> >>>>%configure
> 
> >>>It seems it's not taken into account for devel. How to know what
> >>>%{?fedora} returns for devel ? 
> >>
> >>AFAIK, on devel, %fedora expands to 5 in buildsys-macros
> 
> > Maybe in buildsys but i'm trying to build it on a fc4 box using mock : 
> > mock -r fedora-5-i386-core foobar.spec
> 
> Of course it's not.  That macro only gets defined if using the FE 
> buildsystem (and/or) building from FE's Makefiles, ie, 'make mockbuild'. 
>   I had assumed this was what you were referring to in your original post.

He said he was using mock, and mock pulls in the required macro
definitions by default courtesy of the [groups] repo, which points to
http://fedoraproject.org/buildgroups/development/i386/

So a mock build should be the same as an FE buildsystem build in this
respect. The root.log from the mock build should show buildsys-macros
being installed.

Paul.

-- 
fedora-extras-list mailing list
fedora-extras-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-extras-list

[Index of Archives]     [Fedora General Discussion]     [Fedora Art]     [Fedora Docs]     [Fedora Package Review]     [Fedora Desktop]     [Big List of Linux Books]     [Yosemite Backpacking]     [KDE Users]

  Powered by Linux