Am Donnerstag, 19. August 2021, 12:28:49 CEST schrieb Stephan Kulow:
On 8/19/21 12:12 PM, Hans-Peter Jansen wrote:
Hi,
building https://build.opensuse.org/package/show/home:frispete:test/freerdp locally with osc, I noticed a very unpleasant behavior. The spec file rewriter removed all lines of the third comment on top of this file. In fact, anything commented out in this area deliberately gets removed.
Is this on purpose?
I guess, the spec is piped through spec-cleaner, and it even removes this:
#nospeccleaner
If you install spec-cleaner-format_spec_file, format_spec_file is replaced by spec-cleaner's minimal mode. If you didn't, it's still the default format_spec_file - which doesn't care for spec cleaner comments.
Well, installing this resulted in: The following NEW package is going to be installed: spec-cleaner-format_spec_file 1.2.1-3.1 The following package is going to be REMOVED: obs-service-format_spec_file 20210511-1.1 which I accepted. IMHO, the result deserved a report: https://github.com/rpm-software-management/spec-cleaner/issues/291 Best, Pete