Name: rustup Version: 1.24.3~git0.ce5817a9 Release: 0 Summary: A tool for managing user Rust toolchains License: ( 0BSD OR MIT OR Apache-2.0 ) AND ( Apache-2.0 OR BSL-1.0 ) AND ( Apache-2.0 OR ISC OR MIT ) AND ( Apache-2.0 OR MIT ) AND ( MIT OR Apache-2.0 OR Zlib ) AND ( MIT OR Zlib OR Apache-2.0 ) AND ( Unlicense OR MIT ) AND ( Zlib OR Apache-2.0 OR MIT ) AND Apache-2.0 AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT Group: Development/Languages/Rust Url: https://github.com/rust-lang/rustup Source0: %{name}-%{version}.tar.xz Source1: vendor.tar.xz Source2: cargo_config BuildRequires: cargo-packaging BuildRequires: pkgconfig(openssl) ExclusiveArch: %{rust_tier1_arches} %description A tool to manager user Rust toolchains. This is generally used by developers managing multiple parallel toolchains in their environment. %prep %setup -q %setup -qa1 cp %{SOURCE2} .cargo/config # Remove exec bits to prevent an issue in fedora shebang checking. Uncomment only if required. find vendor -type f -name \*.rs -exec chmod -x '{}' \; %build %{cargo_build} --features=no-self-update %install # manual process install -D -d -m 0755 %{buildroot}%{_bindir} install -m 0755 %{_builddir}/%{name}-%{version}/target/release/rustup-init %{buildroot}%{_bindir}/rustup %files %{_bindir}/rustup %changelog