From 7117dcce811d9b00397be73c167c889d0c4892a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sun, 20 Feb 2022 15:40:48 +0100 Subject: [PATCH] Use underscore instead of a dash in compat suffixes The Fedora Packaging Guidelines are clear on this: > If the base package name ends with a digit, a single underscore (_) > MUST be appended to the name, and the version MUST be appended to > that, in order to avoid confusion over where the name ends and the > version begins. > > If the base package name does not end with a digit, the version MUST > be directly appended to the package name with no intervening > separator. Fixes #180. --- rust2rpm/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust2rpm/__main__.py b/rust2rpm/__main__.py index 49023bd..0f575ad 100644 --- a/rust2rpm/__main__.py +++ b/rust2rpm/__main__.py @@ -426,7 +426,7 @@ def main(): if args.suffix is not None: if metadata.name[-1].isdigit(): - suffix = f'-{args.suffix}' + suffix = f'_{args.suffix}' else: suffix = args.suffix else: