Re: make rpm packages for all linux distributions



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 /\







.



Relevant Pages

  • Media Tray Empty - SuSE 9.1 Solved
    ... and has, after all, worked fine in SuSE 9.0 on the same machine. ... so I just told Yast to ignore those for the time being. ... I then installed the *old* cups-related rpm files from my SuSE 9.0 Pro ... CDs and proceeded to install the downloaded ghostscript files, ...
    (alt.os.linux.suse)
  • Re: Cant install ANYTHING on Linux . . . HELP!
    ... iwth yast. ... If that does not work, find a rpm file, download it and run ... The things Linux and M$ do are completely different. ... There is not just one way to install things, ...
    (alt.os.linux.suse)
  • Re: [SLE] Epiphany issue
    ... Just reading everything to be found on a topic, ... things shortly after I install the latest SuSE, ... SuSE release, then my shambles remains and my motivation ... rpm database and YaST's/YOU's usefulness) ...
    (SuSE)
  • [SLE] Re: [suse-amd64] ATI driver does not show SuSE
    ... According to the instructions from suse site, running the install ... use this way of installing the driver, with rpm. ... I have 3D acceleration with my ATI card on my x86_64 system. ...
    (SuSE)
  • Re: RH to SUSE
    ... I use SUSE at home ... RPM -- can be used as on Red Hat, ... Windows users say Linux has to be more "Windows- ... you can't find an RPM for your distro, ...
    (alt.os.linux.suse)