Re: .spec file help - need buildrequires to depend on fedora version

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

 



On 22/06/09 03:15, Todd Zullinger wrote:
Carl Byington wrote:
My libpst package BuildRequires boost-devel, which works on older
systems (centos4 thru fedora 10), but for fedora 11 and devel, it
needs BuildRequires boost-python-devel. What is the preferred .spec
code to achieve that?

Something like this:

%if 0%{?fedora}>  10
BuildRequires: boost-python-devel
%else
BuildRequires: boost-devel
%endif

Or you could buildreq one of the header files you actually need, e.g.

BuildRequires: /usr/include/boost/python.hpp

That should pull in whatever package contains the file.

Paul.

--
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux