Mailinglist Archive: opensuse-buildservice (213 mails)

< Previous Next >
Re: [opensuse-buildservice] Common place for configuration of different repositories/distributions?
  • From: Luke Imhoff <luke@xxxxxxxx>
  • Date: Thu, 25 Jun 2009 14:24:43 -0500
  • Message-id: <4A43CEFB.4050602@xxxxxxxx>
You could setup KDE:<DISTRO> subprojects. Their prjconf would have the distro specific macros in them, then for each KDE Build Repository you include the KDE:<DISTRO> specific subproject, so the SLE_10 Build Repository includes SUSE:SLE-10:SDK and KDE:SLE_10 as path elements.

Lubos Lunak wrote:

I would like to make it easier to build KDE packages for any RPM-based distro. I would like to achieve this by requiring just one .spec file with preferably no %if per distro, where the differencies would be hidden by macros and such things. The secret plan here is to get people who publish their KDE apps on e.g. to use the buildservice for packaging it and so it should be as simple as possible. I however have trouble with how to achieve this.

I know I can map differences in package names using Substitute: in prjconf, I however can't think of a good way how to create the setup per build repository (distribution). I haven't found any way how to create macros in prjconf with conditional contents, so that e.g. %_kde4_appsdir would be different on openSUSE, Fedora and Mandriva as necessary. It appears to me that the Macros: section is basically interpreted as-is and no substitutions or %if work there.

I thought also about creating one extra .rpm with just the macro definitions in /etc/rpm, I could force it in using Requires: in prjconf, but I don't know how to make sure these macros take priority over macros from the distribution if there are any with the same name.

I also don't know if any prjconf-based solution would scale well. If many people package their KDE app in their home repo, they will need to edit the prjconf. If something in the recommended setup changes, they will need to edit it again. Is there a way to do some kind of #include <prjconf_from_other_repo> ?

Any ideas?

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

< Previous Next >
This Thread