Re: Building my first RPM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


In regard to: Re: Building my first RPM, Blaxton said (at 5:17am on Mar 12,...:

Is there a directive or command in .spec file to make python understand
these libraries already exist ?

There are other ways to do this; it shouldn't really go in the Python
spec, since it's a property of the system, not a property of Python.

I don't know if the easiest way will work with rpm 3.0.x, but it's easy
so try it:  You likely already have an /etc/rpm directory on your
system, or perhaps it's somewhere else (/opt/etc/rpm or equivalent based
on how rpm was built).  In there, create a plain text file named "sysinfo"
with the exact text of the dependencies that RPM detects as missing, one
per line.  Once you've done that, try the install again.

If that doesn't work, it likely means that rpm 3.0.x didn't use the
sysinfo files like rpm 4.x and later do.

In that case, the best (and arguably the most elegant in any case) thing
to do is to create a "virtual" package that has no actual %files, but has
a bunch of

Provides: libfoo.a(some symbol)
Provides: libbar.a(something else)

Then build the package, and install it.  This package works like a bridge
between the libraries (and other things, like /bin/sh) provided by the
base OS and what RPM needs.  You can either do one package with all the
different OS components that RPM needs or you can split things up along
the natural package boundaries that the OS packaging tools (is it still
LPP?) provide.

On my OpenIndiana (Solaris-derivative) workstation, I chose to split
things on the OS packaging boundary, and I named each package with an
"openindiana-" at the start of the name, so I have things like:


and so on installed.  I do enough packaging with RPM that I wrote a script
to query the OpenIndiana native packaging system (called IPS) and
auto-generate a spec file with everything I need in it.

Tim Mooney                                             Tim.Mooney@xxxxxxxx
Enterprise Computing & Infrastructure                  701-231-1076 (Voice)
Room 242-J6, Quentin Burdick Building                  701-231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
Rpm-list mailing list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux