Joe Shaw píše v St 28. 03. 2007 v 14:35 -0400:
Hey,
On 3/28/07, Stanislav Brabec
wrote: I guess, that using link is a the standard way to implement more spec files in the Build Service.
It seems like it could be a lot simpler to the end user. It seems to be a question that comes up fairly often on the list, and while I think we'd all ideally see a single spec file for all platforms, it just isn't always practical. Moreover, it seems to be largely undocumented as the blessed way to do this.
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.
Yikes. This seems even more hacky. Editing _link files and such? I'd prefer a checkbox in the web UI and an osc command. :)
The _link file is created by the "osc linkpac" and is created inside the repository instead of copy of sources. It allows much more than only building source from another spec file. You can define there additional patch, which will be applied to the sources or spec file, which may be interesting, if you want to package more similar versions or packages. -- 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