c0d5129
# Generated by rust2rpm 22
954a135
%bcond_without check
954a135
954a135
%global crate tokei
954a135
c0d5129
Name:           rust-tokei
c0d5129
Version:        12.1.2
0ac7157
Release:        %autorelease
c0d5129
Summary:        Count your code, quickly
954a135
6c36442
# Upstream license specification: MIT/Apache-2.0
c0d5129
License:        MIT OR Apache-2.0
954a135
URL:            https://crates.io/crates/tokei
c0d5129
Source0:        %{crates_source}
c0d5129
Source1:        LICENSE.dependencies
954a135
954a135
ExclusiveArch:  %{rust_arches}
954a135
c0d5129
BuildRequires:  rust-packaging >= 21
954a135
f1dcc67
%global _description %{expand:
c0d5129
Count your code, quickly.}
5da4c2c
5da4c2c
%description %{_description}
954a135
954a135
%package     -n %{crate}
954a135
Summary:        %{summary}
c0d5129
# * (ASL 2.0 or MIT) and BSD
2d8139b
# * (MIT or ASL 2.0) and Public Domain
84510b5
# * ASL 2.0 or Boost
84510b5
# * ASL 2.0 or MIT
2d8139b
# * BSD
84510b5
# * MIT
84510b5
# * MIT or ASL 2.0
84510b5
# * Unlicense or MIT
2d8139b
License:        MIT and BSD and (ASL 2.0 or Boost) and Public Domain
c0d5129
# LICENSE.dependencies contains a full license breakdown
954a135
e9d7caf
%description -n %{crate} %{_description}
5da4c2c
5da4c2c
%files       -n %{crate}
c0d5129
%license LICENCE-APACHE
c0d5129
%license LICENCE-MIT
a483647
%license LICENSE.dependencies
5da4c2c
%{_bindir}/tokei
954a135
954a135
%package        devel
954a135
Summary:        %{summary}
954a135
BuildArch:      noarch
954a135
5da4c2c
%description    devel %{_description}
5da4c2c
c0d5129
This package contains library source intended for building other packages which
c0d5129
use the "%{crate}" crate.
5da4c2c
5da4c2c
%files          devel
c0d5129
%license %{crate_instdir}/LICENCE-APACHE
c0d5129
%license %{crate_instdir}/LICENCE-MIT
c0d5129
%{crate_instdir}/
5da4c2c
5da4c2c
%package     -n %{name}+default-devel
5da4c2c
Summary:        %{summary}
5da4c2c
BuildArch:      noarch
5da4c2c
5da4c2c
%description -n %{name}+default-devel %{_description}
5da4c2c
c0d5129
This package contains library source intended for building other packages which
c0d5129
use the "default" feature of the "%{crate}" crate.
5da4c2c
5da4c2c
%files       -n %{name}+default-devel
c0d5129
%ghost %{crate_instdir}/Cargo.toml
5da4c2c
5da4c2c
%package     -n %{name}+all-devel
5da4c2c
Summary:        %{summary}
5da4c2c
BuildArch:      noarch
5da4c2c
5da4c2c
%description -n %{name}+all-devel %{_description}
5da4c2c
c0d5129
This package contains library source intended for building other packages which
c0d5129
use the "all" feature of the "%{crate}" crate.
5da4c2c
5da4c2c
%files       -n %{name}+all-devel
c0d5129
%ghost %{crate_instdir}/Cargo.toml
5da4c2c
5da4c2c
%package     -n %{name}+cbor-devel
5da4c2c
Summary:        %{summary}
5da4c2c
BuildArch:      noarch
5da4c2c
5da4c2c
%description -n %{name}+cbor-devel %{_description}
5da4c2c
c0d5129
This package contains library source intended for building other packages which
c0d5129
use the "cbor" feature of the "%{crate}" crate.
5da4c2c
5da4c2c
%files       -n %{name}+cbor-devel
c0d5129
%ghost %{crate_instdir}/Cargo.toml
5da4c2c
5da4c2c
%package     -n %{name}+hex-devel
5da4c2c
Summary:        %{summary}
5da4c2c
BuildArch:      noarch
5da4c2c
5da4c2c
%description -n %{name}+hex-devel %{_description}
5da4c2c
c0d5129
This package contains library source intended for building other packages which
c0d5129
use the "hex" feature of the "%{crate}" crate.
5da4c2c
5da4c2c
%files       -n %{name}+hex-devel
c0d5129
%ghost %{crate_instdir}/Cargo.toml
5da4c2c
5da4c2c
%package     -n %{name}+serde_cbor-devel
5da4c2c
Summary:        %{summary}
5da4c2c
BuildArch:      noarch
5da4c2c
5da4c2c
%description -n %{name}+serde_cbor-devel %{_description}
5da4c2c
c0d5129
This package contains library source intended for building other packages which
c0d5129
use the "serde_cbor" feature of the "%{crate}" crate.
5da4c2c
5da4c2c
%files       -n %{name}+serde_cbor-devel
c0d5129
%ghost %{crate_instdir}/Cargo.toml
5da4c2c
5da4c2c
%package     -n %{name}+serde_yaml-devel
5da4c2c
Summary:        %{summary}
5da4c2c
BuildArch:      noarch
5da4c2c
5da4c2c
%description -n %{name}+serde_yaml-devel %{_description}
5da4c2c
c0d5129
This package contains library source intended for building other packages which
c0d5129
use the "serde_yaml" feature of the "%{crate}" crate.
5da4c2c
5da4c2c
%files       -n %{name}+serde_yaml-devel
c0d5129
%ghost %{crate_instdir}/Cargo.toml
5da4c2c
5da4c2c
%package     -n %{name}+yaml-devel
5da4c2c
Summary:        %{summary}
5da4c2c
BuildArch:      noarch
5da4c2c
5da4c2c
%description -n %{name}+yaml-devel %{_description}
954a135
c0d5129
This package contains library source intended for building other packages which
c0d5129
use the "yaml" feature of the "%{crate}" crate.
5da4c2c
5da4c2c
%files       -n %{name}+yaml-devel
c0d5129
%ghost %{crate_instdir}/Cargo.toml
954a135
954a135
%prep
e9d7caf
%autosetup -n %{crate}-%{version_no_tilde} -p1
c0d5129
cp %{SOURCE1} .
954a135
%cargo_prep
954a135
f1dcc67
%generate_buildrequires
f1dcc67
%cargo_generate_buildrequires -a
f1dcc67
954a135
%build
94f3e25
%cargo_build -a
954a135
954a135
%install
94f3e25
%cargo_install -a
954a135
954a135
%if %{with check}
954a135
%check
b9161e1
# * doctest failures caused by codegen issues with LLVM 12 on i686:
9a9f7b6
#   https://bugzilla.redhat.com/show_bug.cgi?id=2020861
b9161e1
# * doctest failures caused by rustc crashes with LLVM 13 on armv7hl:
b9161e1
#   https://bugzilla.redhat.com/show_bug.cgi?id=2045116
9a9f7b6
%cargo_test -a -- --lib
9a9f7b6
%endif
954a135
954a135
%changelog
0ac7157
%autochangelog