Blob Blame History Raw
# Generated by rust2rpm 13
%bcond_without check
%global __cargo_skip_build 0

%global crate lsd

Name:           rust-%{crate}
Version:        0.17.0
Release:        2%{?dist}
Summary:        Ls command with a lot of pretty colors and some other stuff

# Upstream license specification: Apache-2.0
License:        ASL 2.0
URL:            https://crates.io/crates/lsd
Source:         %{crates_source}
# Initial patched metadata
# - Remove Windows only dependencies
# - Update lscolors to 0.7.0, assert_cmd and assert_fs to 1, https://github.com/Peltoche/lsd/pull/349
Patch0:         lsd-fix-metadata.diff

ExclusiveArch:  %{rust_arches}

BuildRequires:  rust-packaging

%global _description %{expand:
Ls command with a lot of pretty colors and some other stuff.}

%description %{_description}

%package     -n %{crate}
Summary:        %{summary}
# Install all deps (without check), grab their licenses and make it simple
# * ASL 2.0 or MIT
# * MIT
# * MIT or ASL 2.0
# * Unlicense or MIT
License:        ASL 2.0 and MIT

%description -n %{crate} %{_description}

%files       -n %{crate}
%license LICENSE
%doc CHANGELOG.md CODEOWNERS README.md
%{_bindir}/lsd

%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
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Thu Apr 16 11:50:02 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.17.0-1
- Update to 0.17.0

* Sun Feb 02 19:00:30 CET 2020 Robert-André Mauchin <zebob.m@gmail.com> - 0.16.0-3
- Bump ansi_term to 0.12.0
- Bump lscolors to 0.6.0
- Bump version_check to 0.9.0

* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Sat Aug 03 14:25:20 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.16.0-1
- Update to 0.16.0

* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Sat Jul 20 21:21:46 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.15.1-4
- Regenerate

* Sun Jun 09 21:55:03 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.15.1-3
- Switch to tempfile

* Sun Jun 09 19:54:30 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.15.1-2
- Regenerate

* Thu May 30 17:04:56 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.15.1-1
- Release 0.15.1 (#1713354)

* Thu Apr 25 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.14.0-1
- Initial package