64 lines
1.2 KiB
RPMSpec
64 lines
1.2 KiB
RPMSpec
# Generated by rust2rpm 21
|
|
%bcond_without check
|
|
|
|
%global crate gitui
|
|
|
|
Name: rust-%{crate}
|
|
Version: 0.20.1
|
|
Release: %autorelease
|
|
Summary: Blazing fast terminal-ui for git
|
|
|
|
# Upstream license specification: MIT
|
|
License: MIT
|
|
URL: https://crates.io/crates/gitui
|
|
Source: %{crates_source}
|
|
# Initial patched metadata
|
|
# * bump bugreport from 0.4 to 0.5
|
|
# * bump crossterm from 0.20 to 0.22
|
|
# * bump tui from 0.16 to 0.17
|
|
# * drop unused optional pprof dependency
|
|
Patch0: gitui-fix-metadata.diff
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
%global _description %{expand:
|
|
Blazing fast terminal-ui for git.}
|
|
|
|
%description %{_description}
|
|
|
|
%package -n %{crate}
|
|
Summary: %{summary}
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
%files -n %{crate}
|
|
%license LICENSE.md
|
|
%doc CHANGELOG.md
|
|
%doc KEY_CONFIG.md
|
|
%doc README.md
|
|
%doc THEMES.md
|
|
%{_bindir}/gitui
|
|
|
|
%prep
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
%cargo_prep
|
|
|
|
%generate_buildrequires
|
|
%cargo_generate_buildrequires
|
|
|
|
%build
|
|
%cargo_build
|
|
|
|
%install
|
|
%cargo_install
|
|
|
|
%if %{with check}
|
|
%check
|
|
%cargo_test
|
|
%endif
|
|
|
|
%changelog
|
|
%autochangelog
|