Am Donnerstag, 1. Dezember 2011, 15:11:40 schrieb Richard Guenther:
On Thu, 1 Dec 2011, Adrian Schröter wrote:
Am Donnerstag, 1. Dezember 2011, 15:01:08 schrieb Richard Guenther:
On Thu, 1 Dec 2011, Juergen Weigert wrote:
On Dec 01, 11 13:34:52 +0100, Adrian Schröter wrote:
> I'm testing a new version of the format_spec_file > service
It makes reviewing local changes impossible for packages which generate their spec files automatically from input files.
Well, our policy is to have a unique layout and we even are required to do so legal wise to some degree.
A new legal requirement is: We adopt the SPDX standard for license names. (E.g. where we had "GPL 2 or later" we now say "GPL-2.0+".) Such name changes need to propagate into your spec file input files. But how does that make reviewing local changes impossible?
I review .spec file changes that result from changing the .spec.in files and re-generating them. But doing so and using osc diff on the .spec file produces a huge unreadable diff now (mostly not due to the license change stuff).
How can I run the formatter on a selected file (in my case, the .spec.in file)?
/usr/lib/obs/service/format_spec_file.files/prepare_spec $in > $out
How does that file magically appear or stay up-to-date? I guess
Via maintenance update. We will do release the required set of services and also the new osc for maintenance work soon hopefully.
I have to play games to stay up-to-date with multiple versions in the different repositories? (12.1 and Factory for now I guess)
No, we should have only one standard regarding the sources. If there will be a difference in future, we will still have one service, but change modes via server side configurations (extra service parameter per project). Btw, just added an optional parameter to allow to specify the spec file name. You could use that in your source via adding a _service file with this content: <services> <service name="format_spec_file" mode="localonly"> <param name="specfile">YOUR_FILE.spec.in</param> <service> </services> So it will update your file automatically the next time you work on it. -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org