templates: adapt project template for removal of the %crate macro

This commit is contained in:
Fabio Valentini 2024-08-19 21:22:09 +02:00
parent fd4aa5ae41
commit 96ef2a239f
No known key found for this signature in database
GPG key ID: 5AC5F572E5D410AF

View file

@ -129,9 +129,9 @@ Requires: {{ req }}
%prep
{% if crate_version != rpm_version %}
%autosetup -n %{crate}-%{crate_version} -p1{{ rpm_autosetup_args}}
%autosetup -n {{ rpm_name }}-%{crate_version} -p1{{ rpm_autosetup_args}}
{% elif crate_version != upstream_version %}
%autosetup -n %{crate}-%{upstream_version} -p1{{ rpm_autosetup_args}}
%autosetup -n {{ rpm_name }}-%{upstream_version} -p1{{ rpm_autosetup_args}}
{% else %}
%autosetup -n %{crate}-%{version} -p1{{ rpm_autosetup_args}}
{% endif %}