Accepting request 987777 from home:firstyear:branches:shells

- Remove dependency on unmaintained rust-packaging

OBS-URL: https://build.opensuse.org/request/show/987777
OBS-URL: https://build.opensuse.org/package/show/shells/starship?expand=0&rev=23
This commit is contained in:
Dead Mozay 2022-07-08 03:33:08 +00:00 committed by Git OBS Bridge
parent 6545d97a0f
commit 082e71d853
2 changed files with 8 additions and 7 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jul 8 02:51:04 UTC 2022 - William Brown <william.brown@suse.com>
- Remove dependency on unmaintained rust-packaging
-------------------------------------------------------------------
Tue Jun 28 03:06:50 UTC 2022 - Dead Mozay <dead_mozay@opensuse.org>

View File

@ -16,7 +16,6 @@
#
%global rustflags '-Clink-arg=-Wl,-z,relro,-z,now'
Name: starship
Version: 1.9.1
Release: 0
@ -26,7 +25,7 @@ URL: https://starship.rs/
Source0: %{name}-%{version}.tar.gz
Source1: vendor.tar.xz
Source2: cargo_config
BuildRequires: rust-packaging
BuildRequires: cargo-packaging
BuildRequires: pkgconfig(openssl)
%description
@ -44,13 +43,10 @@ mkdir -p .cargo
cp %{SOURCE2} .cargo/config
%build
RUSTFLAGS=%{rustflags} cargo build --release
%{cargo_build}
%install
RUSTFLAGS=%{rustflags} cargo install --root=%{buildroot}%{_prefix} --path .
# remove residue crate file
rm %{buildroot}%{_prefix}/.crates.toml
rm %{buildroot}%{_prefix}/.crates2.json
%{cargo_install}
%files
%doc README.md