- Add src, rustfmt and clippy for the Linux Kernel CI tooling.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust1.78?expand=0&rev=5
This commit is contained in:
William Brown 2024-06-27 23:52:10 +00:00 committed by Git OBS Bridge
parent d0441190cd
commit f42e4fddda
3 changed files with 28 additions and 1 deletions

View File

@ -28,3 +28,8 @@ addFilter("readelf-failed /usr/lib/rustlib/wasm32-wasi/lib/self-contained/libc.a
# We know, it's okay.
addFilter("obsolete-not-provided .*")
# We need to provide the rust sources, they aren't a devel package.
addFilter("devel-file-in-non-devel-package .*")
# Some of the sources have test scripts, ignore.
addFilter("env-script-interpreter .*")

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 27 06:51:05 UTC 2024 - William Brown <william.brown@suse.com>
- Add src, rustfmt and clippy for the Linux Kernel CI tooling.
-------------------------------------------------------------------
Fri May 17 22:53:49 UTC 2024 - William Brown <william.brown@suse.com>

View File

@ -422,6 +422,16 @@ Provides: rust+cargo = %{version}
%description -n cargo%{version_suffix}
Cargo downloads dependencies of Rust projects and compiles it.
%package src
Summary: The Rust Standard Library Source
License: Apache-2.0 OR MIT
Group: Development/Languages/Rust
Requires: rust-std = %{version}
BuildArch: noarch
%description src
Rust Stanard Library Sources are required for building some types of projects
%prep
# Previously the stage0 compiler was skipped in test builds, but there are now
# tests in rust's source tree that require it.
@ -578,7 +588,7 @@ PATH_TO_LLVM_PROFILER=`echo %{_libdir}/clang/??/lib/linux/libclang_rt.profile-*.
%{debug_info} \
--enable-vendor \
--enable-extended \
--tools="cargo,rustdoc" \
--tools="cargo,clippy,rustdoc,rustfmt,src" \
--release-channel="stable" \
--set rust.deny-warnings=false \
%{!?with_bundled_llvm: --set target.%{rust_triple}.profiler=${PATH_TO_LLVM_PROFILER}} \
@ -715,6 +725,10 @@ python3 ./x.py test --target=%{rust_triple} \
%{_bindir}/rust-gdb
%{_bindir}/rust-gdbgui
%{_bindir}/rust-lldb
%{_bindir}/cargo-clippy
%{_bindir}/cargo-fmt
%{_bindir}/clippy-driver
%{_bindir}/rustfmt
%{_mandir}/man1/rustc.1%{?ext_man}
%{_mandir}/man1/rustdoc.1%{?ext_man}
%{_prefix}/lib/lib*.so
@ -765,4 +779,7 @@ python3 ./x.py test --target=%{rust_triple} \
# End not with test
%endif
%files src
%{rustlibdir}/src
%changelog