# To bootstrap from scratch, set the channel and date from src/stage0.json
# e.g. 1.10.0 wants rustc: 1.9.0-2016-05-24
# or nightly wants some beta-YYYY-MM-DD
-%define bootstrap_rust 1.65.0
+%define bootstrap_rust 1.67.1
%define bootstrap_cargo %{bootstrap_rust}
-%define bootstrap_date 2022-11-03
+%define bootstrap_date 2023-02-09
%ifarch x32
%define with_cross 1
Summary: The Rust Programming Language
Summary(pl.UTF-8): Język programowania Rust
Name: rust
-Version: 1.66.0
+Version: 1.68.0
Release: 1
# Licenses: (rust itself) and (bundled libraries)
License: (Apache v2.0 or MIT) and (BSD and ISC and MIT)
Group: Development/Languages
Source0: https://static.rust-lang.org/dist/%{rustc_package}.tar.xz
-# Source0-md5: b519b711f36f1d2b4e23cd5c28bb16d1
+# Source0-md5: e0c4908ceb01945930da218d172a21ba
Source1: https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_rust}-x86_64-unknown-linux-gnu.tar.xz
-# Source1-md5: 74858f078f2e16ccf2a0b5ce2cb08557
+# Source1-md5: 800e693e0ac317755f8f0e19269540db
Source2: https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_rust}-i686-unknown-linux-gnu.tar.xz
-# Source2-md5: d5819e8f1fed42b8c4e7e996da7fba4f
+# Source2-md5: 65d86e2c17b1a09df55860a1d8dec9d4
Source3: https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_rust}-aarch64-unknown-linux-gnu.tar.xz
-# Source3-md5: 81f3f09ab36e7b800775024d277e27fd
+# Source3-md5: 127fdf3e824e23808a1fa6a8e92bcf56
Source4: https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_rust}-arm-unknown-linux-gnueabihf.tar.xz
-# Source4-md5: 7bf66e055741fddaf3f82efe6eeb83b7
+# Source4-md5: 70acb1412ca21e288105d86a7d5b975b
Source5: https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_rust}-armv7-unknown-linux-gnueabihf.tar.xz
-# Source5-md5: a4bbebeed5c0d2f79f362dd7d3619769
-Patch0: no-install-miri.patch
+# Source5-md5: 1d917abdc484fd34c1471a931349a2c5
+Patch0: llvm-tools-install.patch
URL: https://www.rust-lang.org/
# for src/compiler-rt
BuildRequires: cmake >= 3.4.3
BuildRequires: curl
+%ifarch %{arm} %{mips32} %{ppc}
+BuildRequires: libatomic-devel
+%endif
# make check needs "ps" for src/test/run-pass/wait-forked-but-failed-child.rs
BuildRequires: procps
BuildRequires: python3
Group: Applications/Shells
Requires: %{name} = %{version}-%{release}
Requires: bash-completion
+BuildArch: noarch
%description -n bash-completion-cargo
Bash completion for cargo command.
Group: Applications/Shells
Requires: %{name} = %{version}-%{release}
Requires: zsh
+BuildArch: noarch
%description -n zsh-completion-cargo
Zsh completion for cargo command.
%prep
%setup -q -n %{rustc_package}
-%patch0 -p1
+%patch0 -p1 -R
%if %{with bootstrap}
%ifarch %{x8664} x32