## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 7; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 27 %bcond_without check # prevent library files from being installed %global cargo_install_lib 0 Name: rustup Version: 1.28.2 Release: %autorelease Summary: Manage multiple rust installations with ease SourceLicense: MIT OR Apache-2.0 # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # 0BSD OR MIT OR Apache-2.0 # Apache-2.0 # Apache-2.0 AND ISC AND (MIT OR Apache-2.0) # Apache-2.0 OR BSL-1.0 # Apache-2.0 OR ISC OR MIT # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # BSD-2-Clause OR Apache-2.0 OR MIT # BSD-3-Clause # ISC # MIT # MIT OR Apache-2.0 # MIT OR Zlib OR Apache-2.0 # Unicode-3.0 # Unlicense OR MIT # Zlib License: Apache-2.0 AND BSD-3-Clause AND ISC AND MIT AND Unicode-3.0 AND Unicode-DFS-2016 AND Zlib AND (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 (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (MIT OR Zlib OR Apache-2.0) AND (Unlicense OR MIT) # LICENSE.dependencies contains a full license breakdown URL: https://github.com/rust-lang/rustup Source: %{url}/archive/%{version}/rustup-%{version}.tar.gz # non-upstreamable patches: # * drop Windows-specific dependencies Patch: 0001-Drop-Windows-specific-dependencies.patch # * drop unavailable "openssl/vendored" feature Patch: 0002-Drop-feature-for-statically-linking-against-vendored.patch # * remove unused tracing support and unnecessary "rs_tracing" dependency Patch: 0003-Remove-unused-tracing-support.patch # * remove unused git-based versioning and unnecessary "git-testament" dependency Patch: 0004-Remove-unused-git-based-versioning.patch # * Revert back to rustls/ring instead of aws_lc_rs Patch: 0005-Revert-back-to-rustls-ring-instead-of-aws_lc_rs.patch # * Serialize all tests with proxy-sensitive URLs # https://github.com/rust-lang/rustup/pull/4372 Patch: 0001-Serialize-all-tests-with-proxy-sensitive-URLs.patch # backported from upstream: # Upgrade to rustls-platform-verifier 0.6 # https://github.com/rust-lang/rustup/commit/a88c6f91e199e8cedcf8f77161045ad0a4c36ec7 # Cherry-picked to 1.28.2, and applied on top of the non-upstreamable-patches and without changes to Cargo.lock. Patch: rustup-1.28.2-rustls-platform-verifier-0.6.patch ExcludeArch: %{ix86} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Manage multiple rust installations with ease.} %description %{_description} %prep %autosetup -n rustup-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -f test %build %cargo_build -f no-self-update %{cargo_license_summary -f no-self-update} %{cargo_license -f no-self-update} > LICENSE.dependencies %install %cargo_install -f no-self-update # generate and install shell completions cp -pav target/rpm/rustup-init target/rpm/rustup target/rpm/rustup completions bash > rustup.bash target/rpm/rustup completions fish > rustup.fish target/rpm/rustup completions zsh > _rustup install -Dpm 0644 rustup.bash -t %{buildroot}/%{bash_completions_dir} install -Dpm 0644 rustup.fish -t %{buildroot}/%{fish_completions_dir} install -Dpm 0644 _rustup -t %{buildroot}/%{zsh_completions_dir} %if %{with check} %check # * skip tests that require internet access # * skip tests for the "rustup" binary that is not built in this package # * skip harmless test failures due to mismatch with the "platforms" crate %cargo_test -f test -- -- --skip suite::cli_exact::check_updates --skip suite::cli_ui::rustup_ui_doc_text_tests --skip suite::known_triples::gen_known_triples %endif %files %license LICENSE-APACHE %license LICENSE-MIT %license LICENSE.dependencies %doc CHANGELOG.md %doc README.md %{_bindir}/rustup-init %{bash_completions_dir}/rustup.bash %{fish_completions_dir}/rustup.fish %{zsh_completions_dir}/_rustup %changelog ## START: Generated by rpmautospec * Sun Nov 30 2025 Benjamin A. Beasley - 1.28.2-7 - Uncommitted changes * Tue Sep 02 2025 Fabio Valentini - 1.28.2-6 - Rebuild with tracing-subscriber v0.3.20 for CVE-2025-58160 * Sun Jul 27 2025 Fabio Valentini - 1.28.2-5 - Bump opener dependency from 0.6 to 0.7 * Fri Jul 25 2025 Fedora Release Engineering - 1.28.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Tue Jul 22 2025 Fabio Valentini - 1.28.2-3 - Skip harmless test failures due to mismatch with the "platforms" crate * Thu Jun 05 2025 Josh Stone - 1.28.2-2 - Fix race conditions in proxy tests * Mon Jun 02 2025 Josh Stone - 1.28.2-1 - Update to version 1.28.2; Fixes RHBZ#2349879 * Thu Feb 06 2025 Fabio Valentini - 1.27.1-6 - Rebuild for openssl crate >= v0.10.70 (RUSTSEC-2025-0004) * Sun Jan 19 2025 Fedora Release Engineering - 1.27.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Aug 09 2024 Fabio Valentini - 1.27.1-4 - Bump fs_at dependency from 0.1 to 0.2 * Sat Jul 20 2024 blinxen - 1.27.1-3 - Update pulldown-cmark to version 0.11 * Sat Jul 20 2024 Fedora Release Engineering - 1.27.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu Jun 13 2024 Fabio Valentini - 1.27.1-1 - Update to version 1.27.1; Fixes RHBZ#2269302 * Thu May 23 2024 Fabio Valentini - 1.26.0-3 - Rebuild with Rust 1.78 to fix incomplete debuginfo and backtraces * Sat Jan 27 2024 Fedora Release Engineering - 1.26.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Nov 30 2023 Fabio Valentini - 1.26.0-1 - Initial import (#2251579) ## END: Generated by rpmautospec