fix (zoi): remove rust2rpm patch and add new file (#12295) (#12384)

This commit is contained in:
Raboneko
2026-05-17 02:06:59 -05:00
committed by GitHub
parent 3d9f5fda5e
commit 47ea4fb3b7
3 changed files with 6 additions and 22 deletions
+3
View File
@@ -2,4 +2,7 @@ project pkg {
rpm {
spec = "rust-zoi-rs.spec"
}
labels {
sccache = 0
}
}
+3 -9
View File
@@ -11,8 +11,6 @@ SourceLicense: Apache-2.0
License: ((Apache-2.0 OR MIT) AND BSD-3-Clause) AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 AND ISC) 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 AND BSD-3-Clause AND BSL-1.0 AND CDLA-Permissive-2.0 AND ISC AND LGPL-2.0-or-later AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Apache-2.0 OR LGPL-2.1-or-later) AND (MIT OR Zlib OR Apache-2.0) AND MPL-2.0 AND MPL-2.0+ AND Unicode-3.0 AND (Unlicense OR MIT) AND Zlib
URL: https://crates.io/crates/zoi-rs
Source: %{crates_source %{crate} %{crate_version}}
# Automatically generated patch to strip dependencies and normalize metadata
Patch: zoi-rs-fix-metadata-auto.diff
BuildRequires: cargo
BuildRequires: gcc-c++
BuildRequires: rpm_macro(cargo_install)
@@ -49,12 +47,14 @@ Requires: git
%doc RELEASE.md
%doc SECURITY.md
%{_bindir}/zoi
%{_bindir}/zoi-mini
%pkg_completion -Befz zoi -n %{crate}
%package devel
Summary: %{summary}
BuildArch: noarch
Requires: %{name}-%{crate} = %{evr}
%description devel %{_description}
@@ -62,18 +62,12 @@ This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
%license %{crate_instdir}/LICENSE
%doc %{crate_instdir}/CHANGELOG.md
%doc %{crate_instdir}/CODE_OF_CONDUCT.md
%doc %{crate_instdir}/PACKAGING.md
%doc %{crate_instdir}/README.md
%doc %{crate_instdir}/RELEASE.md
%doc %{crate_instdir}/SECURITY.md
%{crate_instdir}/
%package -n %{name}+default-devel
Summary: %{summary}
BuildArch: noarch
Requires: %{name}-%{crate} = %{evr}
%description -n %{name}+default-devel %{_description}
@@ -1,13 +0,0 @@
--- zoi-rs-1.3.1/Cargo.toml 1970-01-01T00:00:01+00:00
+++ zoi-rs-1.3.1/Cargo.toml 2025-10-31T16:56:25.441725+00:00
@@ -223,9 +223,7 @@
[build-dependencies.dotenvy]
version = "0.15.7"
-[target."cfg(windows)".dependencies.winreg]
-version = "0.55.0"
-
[lints.clippy]
too_many_arguments = "allow"
type_complexity = "allow"
+