templates: don't use %version_no_tilde macro when %version will do
This is already guarded by a check for crate version == package version, so the version string cannot contain "~" characters at this point.
This commit is contained in:
parent
b1203d1f30
commit
6087084fa0
17 changed files with 17 additions and 17 deletions
|
@ -182,7 +182,7 @@ use {% if feature is not none %}the "{{ feature }}" feature of {% endif %}the "%
|
|||
|
||||
%prep
|
||||
{% if crate_version == rpm_version %}
|
||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||
%autosetup -n %{crate}-%{version} -p1
|
||||
{% else %}
|
||||
%autosetup -n %{crate}-%{crate_version} -p1
|
||||
{% endif %}
|
||||
|
|
|
@ -77,7 +77,7 @@ use the "parallel" feature of the "%{crate}" crate.
|
|||
%ghost %{crate_instdir}/Cargo.toml
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||
%autosetup -n %{crate}-%{version} -p1
|
||||
%cargo_prep
|
||||
|
||||
%generate_buildrequires
|
||||
|
|
|
@ -102,7 +102,7 @@ use the "parallel" feature of the "%{crate}" crate.
|
|||
%ghost %{crate_instdir}/Cargo.toml
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||
%autosetup -n %{crate}-%{version} -p1
|
||||
%cargo_prep
|
||||
|
||||
%build
|
||||
|
|
|
@ -118,7 +118,7 @@ use the "parallel" feature of the "%{crate}" crate.
|
|||
%ghost %{crate_instdir}/Cargo.toml
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||
%autosetup -n %{crate}-%{version} -p1
|
||||
%cargo_prep
|
||||
|
||||
%build
|
||||
|
|
|
@ -121,7 +121,7 @@ use the "parallel" feature of the "%{crate}" crate.
|
|||
%ghost %{crate_instdir}/Cargo.toml
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||
%autosetup -n %{crate}-%{version} -p1
|
||||
%cargo_prep
|
||||
|
||||
%build
|
||||
|
|
|
@ -92,7 +92,7 @@ use the "cli" feature of the "%{crate}" crate.
|
|||
%ghost %{crate_instdir}/Cargo.toml
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||
%autosetup -n %{crate}-%{version} -p1
|
||||
%cargo_prep
|
||||
|
||||
%generate_buildrequires
|
||||
|
|
|
@ -104,7 +104,7 @@ use the "cli" feature of the "%{crate}" crate.
|
|||
%ghost %{crate_instdir}/Cargo.toml
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||
%autosetup -n %{crate}-%{version} -p1
|
||||
%cargo_prep
|
||||
|
||||
%build
|
||||
|
|
|
@ -121,7 +121,7 @@ use the "cli" feature of the "%{crate}" crate.
|
|||
%ghost %{crate_instdir}/Cargo.toml
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||
%autosetup -n %{crate}-%{version} -p1
|
||||
%cargo_prep
|
||||
|
||||
%build
|
||||
|
|
|
@ -111,7 +111,7 @@ use the "cli" feature of the "%{crate}" crate.
|
|||
%ghost %{crate_instdir}/Cargo.toml
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||
%autosetup -n %{crate}-%{version} -p1
|
||||
%cargo_prep
|
||||
|
||||
%build
|
||||
|
|
|
@ -449,7 +449,7 @@ use the "zerocopy" feature of the "%{crate}" crate.
|
|||
%ghost %{crate_instdir}/Cargo.toml
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||
%autosetup -n %{crate}-%{version} -p1
|
||||
%cargo_prep
|
||||
|
||||
%generate_buildrequires
|
||||
|
|
|
@ -503,7 +503,7 @@ use the "zerocopy" feature of the "%{crate}" crate.
|
|||
%ghost %{crate_instdir}/Cargo.toml
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||
%autosetup -n %{crate}-%{version} -p1
|
||||
%cargo_prep
|
||||
|
||||
%build
|
||||
|
|
|
@ -520,7 +520,7 @@ use the "zerocopy" feature of the "%{crate}" crate.
|
|||
%ghost %{crate_instdir}/Cargo.toml
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||
%autosetup -n %{crate}-%{version} -p1
|
||||
%cargo_prep
|
||||
|
||||
%build
|
||||
|
|
|
@ -621,7 +621,7 @@ use the "zerocopy" feature of the "%{crate}" crate.
|
|||
%ghost %{crate_instdir}/Cargo.toml
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||
%autosetup -n %{crate}-%{version} -p1
|
||||
%cargo_prep
|
||||
|
||||
%build
|
||||
|
|
|
@ -366,7 +366,7 @@ use the "winapi" feature of the "%{crate}" crate.
|
|||
%ghost %{crate_instdir}/Cargo.toml
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||
%autosetup -n %{crate}-%{version} -p1
|
||||
%cargo_prep
|
||||
|
||||
%generate_buildrequires
|
||||
|
|
|
@ -422,7 +422,7 @@ use the "winapi" feature of the "%{crate}" crate.
|
|||
%ghost %{crate_instdir}/Cargo.toml
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||
%autosetup -n %{crate}-%{version} -p1
|
||||
%cargo_prep
|
||||
|
||||
%build
|
||||
|
|
|
@ -439,7 +439,7 @@ use the "winapi" feature of the "%{crate}" crate.
|
|||
%ghost %{crate_instdir}/Cargo.toml
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||
%autosetup -n %{crate}-%{version} -p1
|
||||
%cargo_prep
|
||||
|
||||
%build
|
||||
|
|
|
@ -540,7 +540,7 @@ use the "winapi" feature of the "%{crate}" crate.
|
|||
%ghost %{crate_instdir}/Cargo.toml
|
||||
|
||||
%prep
|
||||
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
||||
%autosetup -n %{crate}-%{version} -p1
|
||||
%cargo_prep
|
||||
|
||||
%build
|
||||
|
|
Loading…
Reference in a new issue