On Wed, 13 Jul 2011, Ahmad Samir wrote:

https://bugs.mageia.org/show_bug.cgi?id=2065

Using pkgconfig provides looks like an optimal option, we could start
now, whenever we touch a spec we change to the pkgconfig provides, and
gradually all the specs will be adapted.

And for the packages that don't have .pc files we add:
Provides: %{name}-devel = %{version}-release
Provides: lib%{name}-devel = %{version}-release

or we could add them to all packages whether they have .pc files or
not, but still always use pkgconfig() provides as BR in our specs.

Always adding the same provides regardless of what gets added automatically is probably better and easier. I'd like to modify or clarify your proposal a bit. When name starts with "lib", use %{oname}-devel and lib%{oname}-devel as provides. oname must be defined in the specfile as the name without the lib prefix. That is usually already the case and this macro is used as argument for mklibname.


    Christiaan

Reply via email to