Joe Shaw píše v Út 27. 03. 2007 v 12:26 -0400:
Hi,
On 3/27/07, Stanislav Brabec
wrote: How to deal with this than? Is it possible to have 2 spec files in the BS and use one depending on the opensuse version??? I don't think so, and there it is most likely required to use the %if %suse_version construction, isn't it???
Yes, it is possible:
1. Create package foo with foo.spec and foo-old.spec. Enable it for FACTORY only. foo.spec will be used here by default.
2. Create package foo-old as a source link to package foo. foo-old.spec will be used here by default.
This is kind of a hack, though. It would be nice if this was more cleanly supported within a single package in the build service.
I guess, that using link is a the standard way to implement more spec files in the Build Service. Well, here is a less hacky way: 1. Create package foo with foo.spec. Enable it for FACTORY only. foo.spec will be used here by default. 2. Link this package to foo-old. 3. Place new spec file into the foo-old. 4. Edit _link file and say, that you want to build from foo.spec, not foo-old.spec. 5. Enable foo-old only for older products. FYI: I rewrote my sync scripts. Now it uses just these package links for packages with more than one spec in the Autobuild repository. For example see GNOME:UNSTABLE freetype2 x ft2demos. -- Best Regards / S pozdravem, Stanislav Brabec software developer --------------------------------------------------------------------- SUSE LINUX, s. r. o. e-mail: sbrabec@suse.cz Lihovarská 1060/12 tel: +420 284 028 966 190 00 Praha 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org