Bug 1065524 - [format_spec_file] Strange Reformatting of an upstream spe File
Summary: [format_spec_file] Strange Reformatting of an upstream spe File
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: All All
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Ruediger Oertel
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-27 18:51 UTC by Egbert Eich
Modified: 2020-08-24 15:15 UTC (History)
0 users

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


Attachments
Affected spec-File (7.17 KB, text/plain)
2017-10-27 18:51 UTC, Egbert Eich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Egbert Eich 2017-10-27 18:51:40 UTC
Created attachment 746226 [details]
Affected spec-File

The obs service format_spec_file reformats the attached spec file in a strange way. The Group: and License: tags are %if-ed distro-specific. It moves these (the wrong ones) out of the %if..%else constructs - partly into the sub-packages, modifies them 
and leaves an empty %if..%else..%endif construct behind.

@@ -46,12 +46,10 @@
 Version:        1.7.81
 Release:        0%{?dist}
 Summary:        Python framework for efficient cluster administration
+License:        LGPL-2.1+
+Group:          System Environment/Base
 %if 0%{?suse_version}
-License:        LGPL-2.1
-Group:          Productivity/Clustering/Computing
 %else
-License:        LGPLv2+
-Group:          System Environment/Base
 %endif
 Url:            http://cea-hpc.github.io/clustershell/
 Source0:        https://files.pythonhosted.org/packages/source/C/%{srcname}/%{srcname}-%{version}.tar.gz
@@ -80,6 +78,8 @@
 
 %package -n python2-%{name}
 Summary:        ClusterShell module for Python 2
+License:        LGPL-2.1
+Group:          Productivity/Clustering/Computing
 BuildRequires:  %{python2_pkgprefix}-devel
 BuildRequires:  %{python2_pkgprefix}-setuptools
 Requires:       %{python2_pkgprefix}-setuptools
Comment 1 Ruediger Oertel 2020-08-24 15:15:08 UTC
proposed change:
https://github.com/openSUSE/obs-service-format_spec_file/pull/40