Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for automatic patch and source numbering
Up to now, Patch: and Source: without number has been special-cased to mean Patch0 and Source0 respectively. However with the advent of %autosetup, patch numbers in particular are getting increasingly irrelevant: the order is what matters but manually maintaining a set of increasing numbers is only tedious. GOTO 10 anyone? Redefine numberless Patch: and Source: to mean automatic numbering incremented by one, starting from zero or the last manually defined number. This means you can mix and match automatic numbering and manual numbering to some degree: for example you can start using autonumbered patches without converting all of the spec to that syntax at once. This is backwards compatible with most common cases, but certainly there are cases that are not: if numberless Patch/Source follows numbered ones then it'll behave differently and possibly break builds. And obviously specs using more than one numberless Patch/Source will not be buildable with older rpm versions.
- Loading branch information