[Mageia-dev] Standardising the virtual Provides in -devel packages

Ahmad Samir ahmadsamir3891 at gmail.com
Wed Jul 13 12:31:57 CEST 2011


On 13 July 2011 12:15, Christiaan Welvaart <cjw at daneel.dyndns.org> wrote:
> 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
>

Agreed, liblib* shouldn't exist.

-- 
Ahmad Samir


More information about the Mageia-dev mailing list