Mailinglist Archive: opensuse-packaging (218 mails)

< Previous Next >
Re: [opensuse-packaging] How can I produce two different builds of the same package?
  • From: Dave Plater <dplater@xxxxxxxxxxxxxxxx>
  • Date: Sun, 20 Dec 2009 18:23:38 +0200
  • Message-id: <4B2E4F8A.6040702@xxxxxxxxxxxxxxxx>
On 12/20/2009 01:03 PM, Richard Bos wrote:
Op zondag 20 december 2009 06:20:24 schreef Dave Plater:

Unfortunately rpm doesn't support normal commands like cp in
the %files section because that would solve my problem.

You should use the cp (%__cp) command in the make section of the specfile.
case you want to install the files in directory, create the directory
(%__install -d -m 755 ....) and move (%__mv) the files to the directory.
you have done this, you can list them in the files section of the rpm

An idea I've just had is to place them in a different directory and use the
%pre section to copy them across to %{_libdir}.

That's not the right way to do it!

I think that the problem is misunderstood, bacula builds with either
mysql, postgresql or sqlite support and the built libraries all have the
same names but support the three different databases. So at the end of
the %build process I have three sets of libraries to be installed in
_libdir for bacula-mysql, bacula-postgresql and bacula-sqlite rpms and
the last ones to be installed will overwrite the others. If there isn't
a way to get osc to build with three different spec files then short of
installing them in _libdir/bacula-mysql/, _libdir/bacula-posgresql/ and
_libdir/bacula-sqlite/ and then moving them to _libdir in the %pre or
%post section of the three different rpms then they have to be built in
three different project packages.
I once saw a package in build service with two spec files but I can't
remember which one it was and whether more than one was used in the
package build.
Dave P

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

< Previous Next >
Follow Ups