This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
rpm5 [2012-11-20 11:19] glen better |
rpm5 [2012-11-24 17:14] glen [Excluding dependencies] |
||
---|---|---|---|
Line 76: | Line 76: | ||
Regexp patterns for '''%%_noauto*%%''' macros changed slightly, and '(' must be escaped now, for example: | Regexp patterns for '''%%_noauto*%%''' macros changed slightly, and '(' must be escaped now, for example: | ||
- | <file>%define _noautoreq 'perl\\(something::.*\\)' | + | <file> |
+ | %define _noautoreq 'perl\\(something::.*\\)' | ||
</file> | </file> | ||
+ | rpm-build-tools [[http://git.pld-linux.org/?p=packages/rpm-build-macros.git;a=commitdiff;h=0a9bb9747529d8f89a74f6db5f317abe1454d8ac|v1.654]] adds handy macros to have same syntax for rpm4/5 .specs: | ||
+ | |||
+ | <code> | ||
+ | BuildRequires: rpmbuild(macros) >= 1.654 | ||
+ | | ||
+ | %define _noautoreq_pear Excluded.php PEAR/Something.php | ||
+ | %define _noautoreq_perl Apache::.* | ||
+ | </code> | ||
==== noarch subpackages ==== | ==== noarch subpackages ==== | ||