Mailinglist Archive: opensuse-buildservice (117 mails)

< Previous Next >
Re: [opensuse-buildservice] Fedora 24 project settings
On Wed, Jul 13, 2016 at 4:44 AM, Michael Behrisch
<behrisch@xxxxxxxxxxxxxxxxxxxxx> wrote:


Thanks for your answer. I am not an expert here but if there is another way
to
enable this substitution for several packages without editing all specs,
I would be happy to use it. Could you elaborate a little on how the virtual
Provides could help here?


All RPM-based Linux distributions that use modern versions of RPM
(Fedora, Mageia, openSUSE/SLE, CentOS/RHEL) have dependency
generators, and one of the dependency generators included in RPM is
one for using .pc files to generate Provides that indicate alternate
names based on pkgconfig modules.

For example, glib2-devel can also be referenced by any of its
alternate Provides: pkgconfig(gio-2.0), pkgconfig(gio-unix-2.0),
pkgconfig(glib-2.0), pkgconfig(gmodule-2.0),
pkgconfig(gmodule-export-2.0), pkgconfig(gmodule-no-export-2.0),
pkgconfig(gobject-2.0), pkgconfig(gthread-2.0).

Essentially, the pkgconfig modules that a devel package has are
universal names that you can use.

Most development packages have them. Those that use CMake instead of
autotools may also have cmake() Provides. For example, kf5-kinit-devel
(Fedora) / kinit-devel (openSUSE) / lib64kf5init-devel (Mageia) all
have an alternate Provides of "cmake(KF5Init)" that you can use
instead of the package names.

In most cases, you can get away with using exclusively common names
and these generated Provides to get the correct packages, no matter
the distribution.

--
真実はいつも一つ!/ Always, there's only one truth!
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >