[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Adding contents of the already completed rpm package?
- From: Paul Nasrat <pauln truemesh com>
- To: rpm-list redhat com
- Subject: Re: Adding contents of the already completed rpm package?
- Date: Thu, 27 Nov 2003 17:45:23 +0000
On Thu, Nov 27, 2003 at 09:27:25AM -0800, Baz wrote:
>
> However, its not exactly what i want. Can I inject the files into an rpm
> package without using rpm?
No you shouldn't do this.
> My point is: If I install my that has a software
> function that repackage the rpm, then the software function will need to
> depends on the rpm in the target system right? Can I actually rely on that?
> Meaning, will different version of rpm in the target system screw up the
> repackage function?
As I understand it this is the problem you are trying to solve, it's usually
better to explain the problem rather than approaching the issue with a solution
(injection in this case).
You have software package foo.
If you are installing foo on one system (OS/version/arch) then it requires or provides files.
If you are installing foo on a second different system then something else happens.
If this is the case you can use macro defines to have a conditional spec which
you can build for multiple system targets, this would give you multiple binary
rpms targetted at different systems. For completeness you could add a distro
tag to the release and use a system such as mach to ensure automagic requires
are correct.
The redhat XFree86.spec is a good example of a complex specfile with many
conditionals set as defines.
Paul
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]