diff --git a/rust2rpm/tests/samples/cxx-build-1.0.71.opensuse.spec b/rust2rpm/tests/samples/cxx-build-1.0.71.opensuse.spec index aebf72b..ffcb40b 100644 --- a/rust2rpm/tests/samples/cxx-build-1.0.71.opensuse.spec +++ b/rust2rpm/tests/samples/cxx-build-1.0.71.opensuse.spec @@ -15,7 +15,7 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # -# Generated by rust2rpm 22 +# Generated by rust2rpm NNN %bcond_without check %global crate cxx-build diff --git a/rust2rpm/tests/samples/nix-0.24.1.opensuse.spec b/rust2rpm/tests/samples/nix-0.24.1.opensuse.spec index 3abd88f..a9046e6 100644 --- a/rust2rpm/tests/samples/nix-0.24.1.opensuse.spec +++ b/rust2rpm/tests/samples/nix-0.24.1.opensuse.spec @@ -15,7 +15,7 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # -# Generated by rust2rpm 22 +# Generated by rust2rpm NNN %bcond_without check %global crate nix diff --git a/rust2rpm/tests/samples/tokio-1.19.2.opensuse.spec b/rust2rpm/tests/samples/tokio-1.19.2.opensuse.spec index aa9a910..e19c1c1 100644 --- a/rust2rpm/tests/samples/tokio-1.19.2.opensuse.spec +++ b/rust2rpm/tests/samples/tokio-1.19.2.opensuse.spec @@ -15,7 +15,7 @@ # Please submit bugfixes or comments via https://bugs.opensuse.org/ # -# Generated by rust2rpm 22 +# Generated by rust2rpm NNN %bcond_without check %global crate tokio diff --git a/rust2rpm/tests/test_generator.py b/rust2rpm/tests/test_generator.py index e595da5..acf93ce 100644 --- a/rust2rpm/tests/test_generator.py +++ b/rust2rpm/tests/test_generator.py @@ -70,7 +70,7 @@ def test_spec(tomlfile, target, tmpdir): crate = tomlfile.with_suffix("").name spec = mock_spec_file_render(crate, tomlfile, target, tmpdir) - spec = re.sub("^(# Generated by rust2rpm) .*", r"\1 NNN", spec) + spec = re.sub("(# Generated by rust2rpm) .*", r"\1 NNN", spec) if os.getenv("SAVE_SPECS") == "1": # helper mode to create test data