Re: make rpm packages for all linux distributions
- From: Robert Heller <heller@xxxxxxxxxxxx>
- Date: Mon, 27 Feb 2006 17:55:16 +0100
Daniel Ganek <ganek@xxxxxxxxxxx>,
In a message on Mon, 27 Feb 2006 10:40:32 -0500, wrote :
DG> havis wrote:
DG> > Hi all, i have a problem, I am using rpm to create rpm packages for
DG> > linux. Now, I have a problem, when it is redhat distribution, the rpm
DG> > must work on one way, but when it is suse it must work other way. I can
DG> > not find the way to accomplish this. rpm ifos or ifarch options just
DG> > make difference between architectures and operating systems, but for
DG> > all linux distributions they use "Linux" as identifier, so it is not
DG> > possible to make a difference between linux redhat and linux suse for
DG> > example. Can anyone help me? thanx.
DG> >
DG>
DG> Suse and RH are similar (assuming you're using the same generation kernel)
DG> so can't you use pre- or post- install scriptlets? If not, you'll then have
DG> to build separate rpm's.
I have managed to install Mandrake and Suse RPMs on RH (and WBL)
systems. It mostly is a matter of how much random extra cruft the RPM
depends on and/or does in the spec file. And no, these are not just
noarch RPMs either.
It is possible to create 'universal' RPMs, RPMs that are *NOT* distribution
specific.
Grab the srpm for bison++-1.21.8-1mdk and have a look at its spec file
for example. It happily installed on several *different* RH systems
(RH 6.2 and RH 7.3) and also on WBL 3.0 (aka RHEL 3.0) systems.
Actually on my *RH 7.3* system I have installed:
sauron.deepsoft.com% rpm -qa | grep mdk
cgicc-3.2.1-2mdk
unzip-5.52-1mdk
zip-2.31-1mdk
bison++-1.21.8-1mdk
Although I might have rebuilt zip and unzip from src rpms. I *know* I
didn't need to rebuild bison++ and I don't think I needed to rebuild
cgicc (I don't have the .src.rpm on my system).
DG>
DG> /dam
DG>
\/
Robert Heller ||InterNet: heller@xxxxxxxxxxxx
http://www.deepsoft.com/ ||FidoNet: 1:321/153
http://www.deepsoft.com/~heller /\
.
- References:
- make rpm packages for all linux distributions
- From: havis
- make rpm packages for all linux distributions
- Prev by Date: Re: Blank page after every printjob
- Next by Date: Re: Is Linux BSD or System V ?
- Previous by thread: make rpm packages for all linux distributions
- Next by thread: Re: make rpm packages for all linux distributions
- Index(es):
Relevant Pages
|