Red Hat Bugzilla – Bug 110958
interactive configuration macros for rpm spec file
Last modified: 2007-11-30 17:10:34 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1)
Description of problem:
How hard would it be to provide a set of macros to make it easier to
develop interactive configuration routines in the %post, %pre, etc.
sections of rpm installs?
I am thinking of a set of macros that test if rpm is being run
interactively and if a GUI is available. There could also be timed
tests to see if the user wants to deal at that moment (like Kudzu).
This would address one of the key issues that people are always
complaining about regarding RPMs.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Ick. No way, rpm is intended for unattended batch builds.
Putting a timer on input will not solve all possible cases,
there will always be someone who complains that rpm is broke
because timer has not expired while someone else is complaining
that timer is expirong too fast.
Edit the spec file, do what you want with a text editor, instead.