Thomas Bellman wrote:
> By the way, is it possible to recognize CentOS in the specfile? There
> is a small section
>
> %if 0%{?fedora} || 0%{?rhel} >= 5
> BuildArch: noarch
> Requires: ruby(abi) = 1.8
> Requires: ruby-shadow
> %endif
>
> and it would be nice to get those settings when building on CentOS
> as well. I thought there would be some macro for that, but I can't
> find anything obvious when looking at rpmbuild --showrc.Those definitions work well when you build via mock. If you're building directly via rpmbuild, you should install the buildsys-macros package from http://buildsys.fedoraproject.org/buildgroups/rhel5/i386/ (replacing i386 with the appropriate architecture). Building with mock is much preferred IMO and provides other benefits like not needing to have a bunch of -devel packages installed, building for various distributions, architectures, and releases from the same host, and helping to catch missing BuildRequires in packages. -- Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Life is the art of drawing without an eraser. -- John Gardner
pgpnbDSg3bxzI.pgp
Description: PGP signature
