fix: sccache (#2139) (#2159)

(cherry picked from commit ad4f3fca9f)

Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
Raboneko
2024-10-04 08:27:13 -07:00
committed by GitHub
parent 3de0e5225e
commit 6a3ba26962
6 changed files with 21 additions and 18 deletions
@@ -1,16 +0,0 @@
--- sccache-0.8.1/Cargo.toml 1970-01-01T00:00:01+00:00
+++ sccache-0.8.1/Cargo.toml 2024-07-10T16:31:31.705674+00:00
@@ -403,13 +403,3 @@
[target."cfg(unix)".dependencies.daemonize]
version = "0.5"
-[target."cfg(windows)".dependencies.winapi]
-version = "0.3"
-features = [
- "fileapi",
- "handleapi",
- "stringapiset",
- "winnls",
- "processenv",
- "std",
-]
@@ -23,14 +23,13 @@ Source: %{crates_source}
# Automatically generated patch to strip dependencies and normalize metadata
Patch: sccache-fix-metadata-auto.diff
ExclusiveArch: %{rust_arches}
BuildRequires: cargo-rpm-macros >= 24
BuildRequires: anda-srpm-macros
BuildRequires: openssl-devel
BuildRequires: gcc
BuildRequires: perl
BuildRequires: rust-packaging
BuildRequires: mold
%global _description %{expand:
Sccache is a ccache-like tool. It is used as a compiler wrapper and
@@ -48,6 +47,7 @@ License: MIT
%files -n %{crate}
%license LICENSE
#license LICENSE.dependencies
%doc CODE_OF_CONDUCT.md
%doc README.md
%{_bindir}/sccache
@@ -68,6 +68,9 @@ This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
%license %{crate_instdir}/LICENSE
%doc %{crate_instdir}/CODE_OF_CONDUCT.md
%doc %{crate_instdir}/README.md
%{crate_instdir}/
%package -n %{name}+default-devel
@@ -471,6 +474,7 @@ use the "webdav" feature of the "%{crate}" crate.
%endif
%install
rm -rf .git || true
%if %{with dist_server}
%cargo_install -f dist-server
%else
Binary file not shown.
@@ -0,0 +1,15 @@
--- sccache-0.8.2/Cargo.toml 1970-01-01T00:00:01+00:00
+++ sccache-0.8.2/Cargo.toml 2024-10-04T06:26:43.561316+00:00
@@ -403,12 +403,3 @@
[target."cfg(unix)".dependencies.daemonize]
version = "0.5"
-[target."cfg(windows)".dependencies.windows-sys]
-version = "0.52"
-features = [
- "Win32_Foundation",
- "Win32_Globalization",
- "Win32_Storage_FileSystem",
- "Win32_System_Threading",
- "Win32_System_Console",
-]