(cherry picked from commit cfe59c408a)

Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
Raboneko
2025-04-16 11:04:43 -07:00
committed by GitHub
parent 39023f9998
commit dce8fdb166
4 changed files with 212 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "rust-eza.spec"
}
}
@@ -0,0 +1,16 @@
--- eza-0.21.0/Cargo.toml 1970-01-01T00:00:01+00:00
+++ eza-0.21.0/Cargo.toml 2025-04-16T03:47:21.617301+00:00
@@ -231,12 +231,6 @@
[target.'cfg(target_os = "linux")'.dependencies.proc-mounts]
version = "0.3"
-[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
-version = "0.59.0"
-features = [
- "Win32_System_Console",
- "Win32_Foundation",
-]
-
[target."cfg(unix)".dependencies.uzers]
version = "0.12.1"
+
+190
View File
@@ -0,0 +1,190 @@
# Generated by rust2rpm 27
%bcond check 1
%global crate eza
Name: rust-eza
Version: 0.21.0
Release: 1%?dist
Summary: Modern replacement for ls
License: EUPL-1.2
URL: https://crates.io/crates/eza
Source: %{crates_source}
# Automatically generated patch to strip dependencies and normalize metadata
Patch: eza-fix-metadata-auto.diff
BuildRequires: anda-srpm-macros cargo-rpm-macros >= 24
%global _description %{expand:
A modern replacement for ls.}
%description %{_description}
%package -n %{crate}
Summary: %{summary}
License: (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND EUPL-1.2 AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Apache-2.0 OR CC0-1.0) AND (MIT OR Zlib OR Apache-2.0) AND MPL-2.0 AND Unicode-3.0 AND (Unlicense OR MIT)
# LICENSE.dependencies contains a full license breakdown
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENSE.txt
%license LICENSES/CC-BY-4.0.txt
%license LICENSE.dependencies
%doc CHANGELOG.md
%doc CODE_OF_CONDUCT.md
%doc CONTRIBUTING.md
%doc INSTALL.md
%doc README.md
%doc SECURITY.md
%doc TESTING.md
%{_bindir}/eza
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
%license %{crate_instdir}/LICENSE.txt
%license %{crate_instdir}/LICENSES/CC-BY-4.0.txt
%doc %{crate_instdir}/CHANGELOG.md
%doc %{crate_instdir}/CODE_OF_CONDUCT.md
%doc %{crate_instdir}/CONTRIBUTING.md
%doc %{crate_instdir}/INSTALL.md
%doc %{crate_instdir}/README.md
%doc %{crate_instdir}/SECURITY.md
%doc %{crate_instdir}/TESTING.md
%{crate_instdir}/
%package -n %{name}+default-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+default-devel %{_description}
This package contains library source intended for building other packages which
use the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+git-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+git-devel %{_description}
This package contains library source intended for building other packages which
use the "git" feature of the "%{crate}" crate.
%files -n %{name}+git-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+git2-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+git2-devel %{_description}
This package contains library source intended for building other packages which
use the "git2" feature of the "%{crate}" crate.
%files -n %{name}+git2-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+nix-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+nix-devel %{_description}
This package contains library source intended for building other packages which
use the "nix" feature of the "%{crate}" crate.
%files -n %{name}+nix-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+nix-generated-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+nix-generated-devel %{_description}
This package contains library source intended for building other packages which
use the "nix-generated" feature of the "%{crate}" crate.
%files -n %{name}+nix-generated-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+nix-local-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+nix-local-devel %{_description}
This package contains library source intended for building other packages which
use the "nix-local" feature of the "%{crate}" crate.
%files -n %{name}+nix-local-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+powertest-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+powertest-devel %{_description}
This package contains library source intended for building other packages which
use the "powertest" feature of the "%{crate}" crate.
%files -n %{name}+powertest-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+vendored-libgit2-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+vendored-libgit2-devel %{_description}
This package contains library source intended for building other packages which
use the "vendored-libgit2" feature of the "%{crate}" crate.
%files -n %{name}+vendored-libgit2-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+vendored-openssl-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+vendored-openssl-devel %{_description}
This package contains library source intended for building other packages which
use the "vendored-openssl" feature of the "%{crate}" crate.
%files -n %{name}+vendored-openssl-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep_online
%build
%{cargo_license_summary_online}
%{cargo_license_online} > LICENSE.dependencies
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog
+1
View File
@@ -0,0 +1 @@
rpm.version(crates("eza"));