[opensuse-buildservice] How to add custom substitute rules to .spec file ??
Hello, I need to add custom substitute into .spec file for handle the different package naming among Suse, Redhat, Fedora and CentOS. Is there a method to add substitute rules into .spec file ?? Thank you, Gianluca --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
G. Massera wrote:
Is there a method to add substitute rules into .spec file ??
Use *_version macro: http://en.opensuse.org/Build_Service/cross_distribution_package_how_to#Detec... -- Best Regards / S pozdravom, Pavol RUSNAK SUSE LINUX, s.r.o Package Maintainer Lihovarska 1060/12 PGP 0xA6917144 19000 Praha 9, CR prusnak[at]suse.cz http://www.suse.cz --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Tuesday 29 January 2008 16:40:30 wrote G. Massera:
Hello, I need to add custom substitute into .spec file for handle the different package naming among Suse, Redhat, Fedora and CentOS. Is there a method to add substitute rules into .spec file ??
you can add constructs like %if 0%{?fedora_version:1} BuildRequires: something %endif but you can also tell us when, for example the BuildRequires: qt3-devel should be mapped to BuildRequires: libqt-devel for Fedora in this case. We can map this within the Fedora project so it helps everybody in future. bye adrian -- Adrian Schroeter SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) email: adrian@suse.de --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (3)
-
Adrian Schröter
-
G. Massera
-
Pavol Rusnak