[Fedora-packaging] Using %{dist} for conditional compilation
Ignacio Vazquez-Abrams
ivazquez at ivazquez.net
Wed Jul 20 17:09:46 UTC 2005
On Wed, 2005-07-20 at 10:41 -0600, Orion Poplawski wrote:
> Andreas Thienemann wrote:
> > On Fri, 15 Jul 2005, Orion Poplawski wrote:
> >
> >
> > %if "%fedora" >= "4"
> > BuildRequires: gcc-gfortran
> > %else
> > BuildRequires: gcc-g77
> > %endif
> >
> > This should work.
>
> On my FC4 box I get:
>
> $ rpmbuild -ba *spec
> error: Failed build dependencies:
> gcc-g77 is needed by hdf-4.2r1-2.i386
>
> So looks like %fedora is not defined on user machins, only in the build
> system? This won't work.
Put this in /etc/rpm:
http://fedora.ivazquez.net/files/macros.disttag
--
Ignacio Vazquez-Abrams <ivazquez at ivazquez.net>
http://fedora.ivazquez.net/
gpg --keyserver hkp://subkeys.pgp.net --recv-key 38028b72
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-packaging/attachments/20050720/f21b2efe/attachment.sig>
More information about the Fedora-packaging
mailing list