diff options
Diffstat (limited to 'rpm-spec-mode.el')
-rw-r--r-- | rpm-spec-mode.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rpm-spec-mode.el b/rpm-spec-mode.el index f3569af..eea9433 100644 --- a/rpm-spec-mode.el +++ b/rpm-spec-mode.el @@ -1308,7 +1308,10 @@ if one is present in the file." (or (funcall increase-macro macros) (and (search-forward-regexp (concat "%define[ \t]+" macros "[ \t]+%mkrel[ \t]+%{rel}") nil t) - (funcall increase-macro "rel")))))))) + (funcall increase-macro "rel")) + (and (search-forward-regexp "\\(%mkrel[ \t]+\\)\\([0-9]+\\)$" nil t) + (replace-match (concat (match-string 1) (int-to-string (1+ (string-to-int (match-string 2))))))) + )))))) ;;------------------------------------------------------------ |