Mailinglist Archive: opensuse-buildservice (262 mails)

< Previous Next >
Re: [opensuse-buildservice] different control files for different debian platforms?
  • From: Adrian Schröter <adrian@xxxxxxx>
  • Date: Wed, 19 Aug 2009 09:44:35 +0200
  • Message-id: <200908190944.35482.adrian@xxxxxxx>
Am Mittwoch, 19. August 2009 08:22:16 schrieb Paul Elliott:
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
libboost1.35-dev.

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 file.

Thank You.

In "Build Service/prjconf" http://en.opensuse.org/Build_Service/prjconf

I find:

Substitute

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
%endif
%if 0%{?fedora_version}
Substitute: canna-libs Canna-libs
%endif

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?

Yes, you can find it yourself via looking at the project config of Ubuntu and
Debian projects. Or just trust me when I say to use %ubuntu_version ;)

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

if (ubumtu 9.04) then
%if 0%{?ubuntu_version}

Substitute: libboost1.35-dev libboost-dev
endif

%endif




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

%if 0%{?debian_version}

Required: build-essential
endif

If this could be written it might be the solution to this bug! :
https://bugzilla.novell.com/show_bug.cgi?id=471298


Thank You.


--

Adrian Schroeter
SUSE Linux Products GmbH
email: adrian@xxxxxxx

--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >