File gitoxide.spec of Package gitoxide
Name: gitoxide
Version: 0.21.0
Release: 0
Summary: An idiomatic, lean, fast & safe pure Rust implementation of Git
License: MIT AND Apache-2.0
Group: Development/Tools/Version Control
URL: https://github.com/Byron/gitoxide
Source0: v0.21.0.tar.gz
Source1: vendor.tar.zst
Source2: cargo_config
BuildRequires: openssl-devel
BuildRequires: cmake
BuildRequires: cargo-packaging
BuildRequires: rust >= 1.60
ExclusiveArch: %{rust_arches}
%description
An idiomatic, lean, fast & safe pure Rust implementation of Git
%prep
%autosetup -n %{name}-%{version}
mkdir .cargo
cp %{SOURCE2} .cargo/config
tar xvf %{SOURCE1}
# Remove exec bits to prevent an issue in fedora shebang checking. Uncomment only if required.
# find vendor -type f -name \*.rs -exec chmod -x '{}' \;
%build
%{cargo_build}
%install
# using cargo_install (only supports bindir)
%{cargo_install}
%check
%{cargo_test}
%files
%{_bindir}/gix
%{_bindir}/ein
%changelog