Dominique Leuenberger 2022-07-08 12:03:03 +00:00 committed by Git OBS Bridge
commit b08b52f21b
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