2022-05-08 11:25:35 +02:00
|
|
|
#
|
|
|
|
# spec file for package broot
|
|
|
|
#
|
2023-03-23 11:16:52 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2022-05-08 11:25:35 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2022-07-08 08:13:38 +02:00
|
|
|
|
2022-05-08 11:25:35 +02:00
|
|
|
Name: broot
|
2023-03-23 11:16:52 +01:00
|
|
|
Version: 1.21.0
|
2022-05-08 11:25:35 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: A better way to navigate directories
|
|
|
|
License: MIT
|
|
|
|
URL: https://dystroy.org/broot/
|
|
|
|
Source0: https://github.com/Canop/broot/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
Source1: vendor.tar.xz
|
|
|
|
Source2: %{name}.changes
|
2022-07-08 08:13:38 +02:00
|
|
|
Source3: cargo_config
|
|
|
|
BuildRequires: cargo-packaging
|
2022-05-08 11:25:35 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
A better way to navigate directories.
|
|
|
|
Tree-like commandline directory navigator written in Rust.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -qa 1
|
2022-07-08 08:13:38 +02:00
|
|
|
mkdir .cargo
|
|
|
|
cp %{SOURCE3} .cargo/config
|
2022-05-08 11:25:35 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
%check
|
|
|
|
%cargo_test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cargo_install
|
2022-07-08 08:13:38 +02:00
|
|
|
rm -rf %{buildroot}/%{_builddir}/%{name}-%{version}/vendor/
|
2022-05-08 11:25:35 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGELOG.md README.md
|
|
|
|
%{_bindir}/broot
|
|
|
|
|
|
|
|
%changelog
|