fix: starship (#242)

This commit is contained in:
madomado
2023-02-26 17:16:44 +08:00
committed by GitHub
parent 9342ec6eaf
commit 9269156fad
3 changed files with 22 additions and 20 deletions
+17 -15
View File
@@ -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
@@ -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",
+1 -1
View File
@@ -1 +1 @@
rpm.version(gh("starship/starship"));
rpm.version(crates("starship"));