diff --git a/rust2rpm/__main__.py b/rust2rpm/__main__.py index b8d3772..a7674fd 100644 --- a/rust2rpm/__main__.py +++ b/rust2rpm/__main__.py @@ -17,7 +17,7 @@ import jinja2 import requests import tqdm -from . import Metadata, licensing +from . import Metadata, licensing, __version__ from .metadata import normalize_deps DEFAULT_EDITOR = "vi" @@ -265,6 +265,7 @@ def main(): patch_file = None kwargs = {} + kwargs["generator_version"] = __version__ kwargs["crate"] = crate kwargs["target"] = args.target kwargs["all_features"] = args.all_features diff --git a/rust2rpm/templates/main.spec b/rust2rpm/templates/main.spec index 0c84325..0ef0b10 100644 --- a/rust2rpm/templates/main.spec +++ b/rust2rpm/templates/main.spec @@ -1,5 +1,5 @@ {% include target ~ "-header.spec.inc" ignore missing %} -# Generated by rust2rpm +# Generated by rust2rpm {{ generator_version }} %bcond_without check {% if not include_main %} %global debug_package %{nil}