rpm-software-management / spec-cleaner

spec-cleaner
BSD 3-Clause "New" or "Revised" License
28 stars 34 forks source link

Special handling for 'pattern' packages #224

Closed DimStar77 closed 6 years ago

DimStar77 commented 6 years ago

Given this input spec file:

%package apparmor
%pattern_basetechnologies
Summary:        AppArmor
Group:          Metapackages
Provides:       patterns-openSUSE-apparmor = %{version}
Provides:       pattern() = apparmor
Provides:       pattern-icon() = pattern-apparmor
Provides:       pattern-order() = 1100
Provides:       pattern-visible()
Obsoletes:      patterns-openSUSE-apparmor < %{version}
Requires:       pattern() = minimal_base
%if 0%{?is_opensuse}
Recommends:     pattern() = apparmor_opt
%endif
Requires:       wget
Recommends:     curl

%changelog

The order is pretty ok (I can live with the obsoletes being moved down, that would be acceptable), but what it currently does is move wget and curl in fron of all the special pattern stuff; considering that the pattern stuff is the 'most essential' for this package, we'd like to keep those at the top of the section

scarabeusiv commented 6 years ago

Could you give me also absolutely desired output? Or just commit the test :) Even if the %pattern_basetechnologies should stay on top and stuff like that...

scarabeusiv commented 6 years ago

done