-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Stefan van der Eijk wrote:
> [...]
>>
>> Just fixed it for dmapi, it is trivial:
>>
>> %define lib_name_orig %mklibname dm
>>
>> instead of
>>
>> %define lib_name_orig libdm
>>
Except that it should be specifying major (and possibly minor) too:
%define libname %mklibname %name %major
is the usual method, assuming you have %name and %major defined before
this. Whether you want to use -d and -s to save you typing a few letters
(evel and tatic) is up to you, except for the case below.
But I don't think mklibname works on older releases, plus it can mess
with --with options, so if you want packages to build everywhere, you
may prefer:
%define libname %{lib}%{name}%{major}
which really does the same thing (mostly, ie you have to type some extra
stuff for the devel packages).
> OK... This explains how it was done for this package. I guess this can
> be applied to any package complaining about missing mklib?
>
>> Rule of thumb:
>> - when you have a problem of that kind, look for a package maintained
>> by gb about how it is done there :p
>>
> uhm... you are kidding, right?
>
Trawling other spec files is a good way to learn some tricks, but only
because we haven't got a better document. But things could be done
better, for instance we would be using %{?_with}-style macros in a
similar way to the way the Gentoo guys use their "use" flags.
> We need to do better than this... at least write a page on the wiki
> about it... or make a link on the wiki to where the document is.
Thierry had it on his todo list to update the howto, but if Thierry
agrees, it may be more efficient to dump the current mdk-rpm-howto into
the wiki?
I would also like to know what to do with packages that supply multiple
libraries of different names ...
Regards,
Buchan
- --
|--------------Another happy Mandrake Club member--------------|
Buchan Milne Mechanical Engineer, Network Manager
Cellphone * Work +27 82 472 2231 * +27 21 8828820x202
Stellenbosch Automotive Engineering http://www.cae.co.za
GPG Key http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE/GCTqrJK6UGDSBKcRAuJTAKC21eyJBg23EQ4b/itAJpJrg/ZLngCgjHcE
AWnRGxrr7vzE2WqnsIlSi1o=
=770c
-----END PGP SIGNATURE-----
******************************************************************
Please click on http://www.cae.co.za/disclaimer.htm to read our
e-mail disclaimer or send an e-mail to [EMAIL PROTECTED] for a copy.
******************************************************************