Le Wednesday 27 July 2005 09:47, Ivan Murashko a écrit : > Hello all, > > I want to create a package that depends on device-mapper. I want to support > both SuSE 9.1 (libdevmapper.so.1.00) and SuSE 9.3 (libdevmapper.so.1.01). > > I can write something like 'Requires: device-mapper >= 1.00' but automatic > dependences will add the libdevmapper.so.1.00 (the build creation is on > SuSE 9.1) into the requirements list. Thus the final package can't be > installed on SuSE 9.3. > > I know about 'AutoReqProv: no' but I want to disable the feature only for > libdevmapper. Is it really possible? Stupid IMHO, this dependencies come from a linkage dependencies, you remve the dep from rpm, the binary will simply not works because the libdevmapper.so.1.0X will not be found on the system. Otherwise you can use %define _requires_exceptions libdevmapper.so.1.0 which is a regexp matching the dependancies to filter. -- Nanar de NanarDon.
Attachment:
pgpR03mgG9d5N.pgp
Description: PGP signature