Re: make rpm packages for all linux distributions



In comp.os.linux.misc havis <bazoalto@xxxxxxxxx>:
Hi all, i have a problem, I am using rpm to create rpm packages for
linux. Now, I have a problem, when it is redhat distribution, the rpm
must work on one way, but when it is suse it must work other way. I can
not find the way to accomplish this. rpm ifos or ifarch options just
make difference between architectures and operating systems, but for
all linux distributions they use "Linux" as identifier, so it is not
possible to make a difference between linux redhat and linux suse for
example. Can anyone help me? thanx.

Use %post in your rpm, like checking for distro and do what you
want. See our newreader FAQ (scroll down a bit) for some hints
how to get the distro name.

Good luck

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@xxxxxxxxxx | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 287: Telecommunications is downshifting.
.



Relevant Pages

  • 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)
  • Re: =?iso-8859-15?q?Unzul=E4nglichkeit_Programminstallationen_?= =?iso-8859-15?q?=5B
    ... 'Programminstallation' bei Suse - bei Linux allgemein? ... welche "Capabilities" das Paket anbietet. ... RPM hat auch einen Parameter --whatprovides, ...
    (de.comp.os.unix.linux.misc)
  • Re: Installing kernel sources and Nvidia
    ... > man rpm for additional info on the use of rpm. ... I am bitterly disappointed that simply getting a graphics display in Linux ... I'm equally disappointed at the silence from SuSE in their ... sources simply to install a video driver. ...
    (alt.os.linux.suse)
  • Re: gutenprint?
    ... >> Doing a search on rpm.pbone.net does not bring up an rpm for SuSe. ... >> get linux running on it. ... Then there is the exercise of getting linux to run on a laptop. ... I did try loading SuSe on the laptop a couple of times, ...
    (alt.os.linux.suse)
  • Re: Seeking assistance with system faults
    ... Seeking assistance with system faults ... > I am in the process of developing a Linux Trouleshooting training course. ... > I am seeking help in developing faults that can be placed on student machines, ... This module was for RPM usage. ...
    (Fedora)