Mailinglist Archive: opensuse-buildservice (262 mails)

< Previous Next >
Re: [opensuse-buildservice] different control files for different debian platforms?
  • From: Paul Elliott <pelliott@xxxxxxxxxxxxxxxxxxx>
  • Date: Wed, 19 Aug 2009 01:22:16 -0500
  • Message-id: <20090819062216.GA25342@xxxxxxxxxxxxxxxxxxx>
On Tue, Aug 18, 2009 at 05:32:02PM -0500, Paul Elliott wrote:

Is it possible to have different control files for different debian platforms?

I have a package that has a Build-requires dependancy of libboost-dev for
most debian platforms, however, xUbuntu 9.04 wants this to be

Is it possible to have a control-xUbuntu_9.04 file the same way you can
have a foo-Fedora_Extras_6.spec for rpm based distributions?

What is the best way to handle this?

I don't think you can ifdef a debian control file the way you can a rpm spec

Thank You.

In "Build Service/prjconf"

I find:


Packages get renamed or are named different for different
distributions. You can specify per repository dependency
rewrite rules.

%if 0%{?suse_version}
Substitute: Canna-libs canna-libs
%if 0%{?fedora_version}
Substitute: canna-libs Canna-libs

On openSUSE, the package is named "canna-libs", so replace all
requirements for "Canna-libs" to "canna-libs" - and vice versa
for Fedora.

Could I use this feature to do a substitute of libboost1.35-dev for libboost-dev
only for xUbuntu 9.04?

Is there an "%if" expression for the ubuntu and debian versions?

How are they named?
That is, how do I write the following psudo-code formally?

if (ubumtu 9.04) then
Substitute: libboost1.35-dev libboost-dev

Could I put an "Required:" statement inside such a conditional scructure?

How do I write the following psudo-code formally?

if (debian_based distribution) then
Required: build-essential

If this could be written it might be the solution to this bug! :

Thank You.

Paul Elliott 1(512)837-1096
pelliott@xxxxxxxxxxxxxxxxxxx PMB 181, 11900 Metric Blvd Suite J Austin TX 78758-3117
< Previous Next >
Follow Ups