diff --git a/rust.spec b/rust.spec index df845b9..10e7383 100644 --- a/rust.spec +++ b/rust.spec @@ -41,7 +41,7 @@ %endif %global rust_triple %{_arch}-unknown-linux-%{abi} %bcond_with rust_bootstrap -Name: rust +Name: rust-%{version} Version: 1.16.0 Release: 0 Summary: A systems programming language @@ -65,10 +65,13 @@ BuildRequires: python Recommends: cargo Recommends: %{name}-doc Recommends: %{name}-std -Conflicts: rustc-bootstrap -Conflicts: rust < %{version} -Provides: rustc = %{version} -Provides: rustc-stable = %{version} + +Provides: rust = %{version} +Conflicts: rust <= %{version} +Conflicts: rust >= %{version} +Conflicts: rustc-bootstrap <= %{version} +Conflicts: rustc-bootstrap >= %{version} + BuildRoot: %{_tmppath}/%{name}-%{version}-build # Restrict the architectures as building rust relies on being initially # bootstrapped before we can build the n+1 release