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

Re: scripts and sub packages

--- M M <mmore_4@hotmail.com> wrote:
> Hello,
> Im building my spec file with sub packages. If im
> using a pre/post script 
> for the main package, does the sub packages also
> uses that same script or do 
> I have to specify a pre script for each sub packages
> ? Ideally I would 
> rather not have to repeat this pre/post script for
> each sub packages... 
> Curious if this possible or not. Thanks.

You can define script as macro and use macro multiple
Something like
%define PRE_INSTALL if [ some test]; then some_action;
else another_action; do_more_things

It possible, but because macro is single-line ugly and
hard for debugging.

Another option - play with any preprocessor.

One more option - use %include rpm's directive.


> using rpm version 4.0.4
> MM
> Tired of spam? Get advanced junk mail protection
> with MSN 8. 
> http://join.msn.com/?page=features/junkmail
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/rpm-list

Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!

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