diff --git a/rust2rpm/templates/main.spec b/rust2rpm/templates/main.spec index 2fb1aff..c5686d3 100644 --- a/rust2rpm/templates/main.spec +++ b/rust2rpm/templates/main.spec @@ -170,9 +170,9 @@ which use {% if feature is not none %}"{{ feature }}" feature of {% endif %}"%{c {% if md.readme is not none %} %doc {{ md.readme }} {% endif %} -%{cargo_registry}/%{crate}-%{version}/ +%{cargo_registry}/%{crate}-%{version_no_tilde}/ {% else %} -%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml {% endif %} {% endfor %}