Re: How best express build dependencies that vary on build host?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nick Urbanik wrote:

> Dear folks,
>
> I am trying to build cfengine RPMS that build almost anywhere.  However,
> I have the following in my spec file:
>
> BuildRequires: openssl-devel %{?rh80:, db4-devel} %{?rh90:, db4-devel}
> BuildRequires: tetex %{?rh62:, db3-devel} %{?rh73:, db3-devel}
> BuildRequires: gcc,tetex,bison,flex

[nicku@nicksbox] ~/RPM/BUILD/rpm-4.2.1 /opt/pub/fedora-1/SRPMS
$ find . -type f | xargs grep rh90
[nicku@nicksbox] ~/RPM/BUILD/rpm-4.2.1 /opt/pub/fedora-1/SRPMS

Oh dear, the source does not contain these strings.  I copied them from Dag
Wieers' <dag(at)wieers.com> spec file for cfengine at  Dag Apt Repository,
http://dag.wieers.com/apt/.  So that's why no one replied--people thought I
must be on crack to use some magic that is not in the source.

So to rephrase the question:

I want to express build dependence on db3-devel for Red Hat 7.3 and
earlier, and db4-devel for later (including Fedora Core 1).  How do I do
that?  Surely I am not the only one on the planet solving this little
problem for the first time?  I will be grateful for any thoughts on this at
all

> Problems:
> This does not include the Fedora Core 1 platform
> It excludes other possible platforms
> It is too hard to maintain
>
> Desired Outcome:
> Express logic that for RH Linux 7.3 or older, BuildRequires db3-devel,
> else db4-devel.
>
> There must be a way.
> Have grepped output of rpmbuild --listrc without finding what I'm
> looking for.  Grateful for any help.
>
> --
> Nick Urbanik   RHCE                               nicku(at)vtc.edu.hk
> Dept. of Information & Communications Technology
> Hong Kong Institute of Vocational Education (Tsing Yi)
> Tel:   (852) 2436 8576, (852) 2436 8713          Fax: (852) 2436 8526
> PGP: 53 B6 6D 73 52 EE 1F EE EC F8 21 98 45 1C 23 7B     ID: 7529555D
> GPG: 7FFA CDC7 5A77 0558 DC7A 790A 16DF EC5B BB9D 2C24   ID: BB9D2C24

--
Nick Urbanik   RHCE                               nicku(at)vtc.edu.hk
Dept. of Information & Communications Technology
Hong Kong Institute of Vocational Education (Tsing Yi)
Tel:   (852) 2436 8576, (852) 2436 8713          Fax: (852) 2436 8526
PGP: 53 B6 6D 73 52 EE 1F EE EC F8 21 98 45 1C 23 7B     ID: 7529555D
GPG: 7FFA CDC7 5A77 0558 DC7A 790A 16DF EC5B BB9D 2C24   ID: BB9D2C24




_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux