Bug 1176296 - [format_spec_file] service creates malformed Spec File
Summary: [format_spec_file] service creates malformed Spec File
Status: NEW
Alias: None
Product: openSUSE.org
Classification: openSUSE
Component: BuildService (show other bugs)
Version: unspecified
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Marco Strigl
QA Contact: Adrian Schröter
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-08 18:33 UTC by Egbert Eich
Modified: 2020-09-08 18:33 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Unconverted Spec File. (10.24 KB, text/plain)
2020-09-08 18:33 UTC, Egbert Eich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Egbert Eich 2020-09-08 18:33:16 UTC
Created attachment 841491 [details]
Unconverted Spec File.

We are maintaining the spec file with the upstream project https://github.com/cea-hpc/clustershell.
The master spec file needs to be SUSE as well as RH compliant. The obs service format_spec_file is used to reformat the spec file to be OBS compliant. Unfortunately, the result is malformed:

%if 0%{?suse_version}
License:        LGPL-2.1-or-later
%else
License:        LGPLv2+
%endif
%if 0%{?suse_version}
Group:          Productivity/Clustering/Computing
%else
%if 0%{?rhel}
Group:          System Environment/Base
%endif
%endif

is converted to:
License:        LGPL-2.1-or-later
Group:          System Environment/Base

%if 0%{?suse_version}
%else
%endif
%if 0%{?suse_version}
%else
%if 0%{?rhel}
%endif
%endif

The unconverted spec file used can be found in the attachment.
obs-service-format_spec_file version used: 20191114-lp151.237.1