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 07:20:24 +0200
  • Message-id: <4B2DB418.3010105@xxxxxxxxxxxxxxxx>
On 12/19/2009 09:31 PM, Luke Imhoff wrote:
It really depends whether you want to support the mysql and postgresql
linked versions of your package bring installed simultaneously. If
the answer is yes, then you either need to rename the file or at least
put then on distinct paths and then use something like update-
alternatives to allow your users to select which version they want.



On Dec 19, 2009, at 5:18 AM, "Dave Plater" <dplater@xxxxxxxxxxxxxxxx>
wrote:


Hi, I need to package a postgresql and a mysql build of the same
package, I can do two different builds in the same spec file but the
resulting libraries and binaries have the same names. Is there a way
to
create two rpms with the files from the resulting builds or use two
spec
files in the same package or am I going to have to rename all the
files
with the same names?
Thanks
Dave P

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


I need to produce two rpms from the same package bacula, one built with
-with-postgresql and one -with-mysql, in fact there is an sqlite version
as well but if I can make two then I can make three. The resulting
libraries have the same names but I think the three binaries are
identical. Unfortunately rpm doesn't support normal commands like cp in
the %files section because that would solve my problem. 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}.
Thanks
Dave P

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

< Previous Next >