From 9269156fad44457406c427c48bbec88e776dfd71 Mon Sep 17 00:00:00 2001 From: madomado Date: Sun, 26 Feb 2023 17:16:44 +0800 Subject: [PATCH] fix: starship (#242) --- anda/rust/starship/rust-starship.spec | 32 ++++++++++--------- .../starship/starship-fix-metadata-auto.diff | 8 ++--- anda/rust/starship/update.rhai | 2 +- 3 files changed, 22 insertions(+), 20 deletions(-) diff --git a/anda/rust/starship/rust-starship.spec b/anda/rust/starship/rust-starship.spec index a2ac6cd179..3e7261dae6 100644 --- a/anda/rust/starship/rust-starship.spec +++ b/anda/rust/starship/rust-starship.spec @@ -1,9 +1,11 @@ # Generated by rust2rpm 23 +%bcond_without check + %global crate starship Name: rust-starship Version: 1.13.1 -Release: 1%{?dist} +Release: %autorelease Summary: Minimal, blazing-fast, and infinitely customizable prompt for any shell! ☄🌌️ License: ISC @@ -43,6 +45,8 @@ This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel +%license %{crate_instdir}/LICENSE +%doc %{crate_instdir}/README.md %{crate_instdir}/ %package -n %{name}+default-devel @@ -81,40 +85,40 @@ use the "config-schema" feature of the "%{crate}" crate. %files -n %{name}+config-schema-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+git-features-devel +%package -n %{name}+gix-faster-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+git-features-devel %{_description} +%description -n %{name}+gix-faster-devel %{_description} This package contains library source intended for building other packages which -use the "git-features" feature of the "%{crate}" crate. +use the "gix-faster" feature of the "%{crate}" crate. -%files -n %{name}+git-features-devel +%files -n %{name}+gix-faster-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+git-repository-faster-devel +%package -n %{name}+gix-features-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+git-repository-faster-devel %{_description} +%description -n %{name}+gix-features-devel %{_description} This package contains library source intended for building other packages which -use the "git-repository-faster" feature of the "%{crate}" crate. +use the "gix-features" feature of the "%{crate}" crate. -%files -n %{name}+git-repository-faster-devel +%files -n %{name}+gix-features-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+git-repository-max-perf-devel +%package -n %{name}+gix-max-perf-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+git-repository-max-perf-devel %{_description} +%description -n %{name}+gix-max-perf-devel %{_description} This package contains library source intended for building other packages which -use the "git-repository-max-perf" feature of the "%{crate}" crate. +use the "gix-max-perf" feature of the "%{crate}" crate. -%files -n %{name}+git-repository-max-perf-devel +%files -n %{name}+gix-max-perf-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+notify-devel @@ -165,8 +169,6 @@ use the "starship-battery" feature of the "%{crate}" crate. %files -n %{name}+starship-battery-devel %ghost %{crate_instdir}/Cargo.toml -%global debug_package %{nil} - %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep_online diff --git a/anda/rust/starship/starship-fix-metadata-auto.diff b/anda/rust/starship/starship-fix-metadata-auto.diff index 794d0c489b..b430cd2fcd 100644 --- a/anda/rust/starship/starship-fix-metadata-auto.diff +++ b/anda/rust/starship/starship-fix-metadata-auto.diff @@ -1,6 +1,6 @@ ---- starship-1.12.0/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ starship-1.12.0/Cargo.toml 1970-01-01T00:00:01+00:00 -@@ -252,18 +252,3 @@ +--- starship-1.13.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ starship-1.13.1/Cargo.toml 1970-01-01T00:00:01+00:00 +@@ -254,18 +254,3 @@ ] default-features = false @@ -8,7 +8,7 @@ -version = "0.2.0" - -[target."cfg(windows)".dependencies.windows] --version = "0.43.0" +-version = "0.44.0" -features = [ - "Win32_Foundation", - "Win32_UI_Shell", diff --git a/anda/rust/starship/update.rhai b/anda/rust/starship/update.rhai index 6364503fcd..270fbc36ba 100644 --- a/anda/rust/starship/update.rhai +++ b/anda/rust/starship/update.rhai @@ -1 +1 @@ -rpm.version(gh("starship/starship")); +rpm.version(crates("starship"));