rpm-software-management / spec-cleaner

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

custom sections for BuildRequires #162

Closed matejcik closed 7 years ago

matejcik commented 7 years ago

it's rather common practice to group BuildRequires into separate sections like "build requirements", "test requirements", "plugin requirements" and so on. Such section is usually headed off by a comment. spec-cleaner obviously ignores this and orders all BuildRequires alphabetically.

It would be good to have a way to prevent this. How about this:

### SECTION build requirements
BuildRequires: bla bla
### ENDSECTION
### SECTION test requirements
BuildRequires: abcde-test
### ENDSECTION

maybe "/SECTION" ? this is a completely new syntax, but we need something