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

Re: %{echo: features

I create a set of 4 rpms with almost the same information on them,
I use a shell script to actually do it, something like


for i in {some expresion}; do
	OTHERSTUFF={expression using the value of i}

cat << EOF > mypackage-$PKGCLASS.spec
# Your spec file here, using all the nice enviroment variables 
# you defined above...
/bin/rpm -ba .....


On Fri, 21 Mar 2003, Michael Kohne wrote:

> At 05:52 PM 3/20/03 -0500, Jeff Johnson wrote:
> >macros were never designed to be useful in spec files, they were
> >designed to unify specfile/cli/system configuration.
> I've been following along on this discussion, and I have a question:
> If macros weren't designed for use in spec files, what is the general 
> solution when one needs to do large amounts of substitution in a spec file?
> My specific case is that I have a system with a main component and lots of 
> sub-components which I build as sub-rpms. The sub-components are all just 
> about identical except for their %package and %description sections. I 
> wanted to write a macro to generate the rest on the fly, so that I didn't 
> have to maintain a bunch of duplicates. Obviously, rpm macros aren't the 
> answer - is there a generally accepted way to do this? I guess what I need 
> is a pre-process step to generate my spec file - any favorite tools for 
> this job?
> Michael Kohne
> mhkohne@discordia.org
> "Umm...Is that supposed to happen?"
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/rpm-list

Doubt is a not a pleasant mental state, but certainty is a ridiculous one.  
                -- Voltaire

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