# Generated by rust2rpm 28 %bcond check 1 %global crate tokei %global _trivial .0 %global _buildid .1 %global __brp_mangle_shebangs /usr/bin/true Name: rust-tokei Version: 14.0.0 Release: 1%{?dist}%{?_trivial}%{?_buildid} Summary: Count your code, quickly License: MIT OR Apache-2.0 URL: https://crates.io/crates/tokei Source: %{name}-%{version}-processed.tar.gz # * Man page hand-written for Fedora in groff_man(7) format based on --help Source10: tokei.1 # Manually created patch for downstream crate metadata changes # * Remove the upper bound on the git2 dev-dependency. Because this is only used # to create git repositories for testing using git2::Repository::init(…), # there is almost no exposure to future API changes, and this keeps us from # having to adjust the patch for every new git2 release. # * Update etcetera to 0.10, https://github.com/XAMPPRocky/tokei/pull/1253, and # allow 0.11, # https://github.com/XAMPPRocky/tokei/pull/1253#issuecomment-3471595554 # * Update strum/strum_macros to 0.27, # https://github.com/XAMPPRocky/tokei/pull/1316, and then to 0.28.0, # https://github.com/XAMPPRocky/tokei/pull/1336. # * Update toml to 0.9, downstream-only for MSRV reasons # * Update colored to 3.0, downstream-only for MSRV reasons BuildRequires: rust-toolset BuildRequires: openssl-devel %global _description %{expand: Count your code, quickly.} %description %{_description} %package -n %{crate} Summary: %{summary} # (Apache-2.0 OR MIT) AND BSD-3-Clause # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # Apache-2.0 OR BSL-1.0 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # MIT # MIT OR Apache-2.0 # MPL-2.0 # Unlicense OR MIT License: %{shrink: (MIT OR Apache-2.0) AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unicode-DFS-2016 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (Unlicense OR MIT) } # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENCE-APACHE %license LICENCE-MIT %license LICENSE.dependencies %license cargo-vendor.txt %doc README.md %{_bindir}/tokei %{_mandir}/man1/tokei.1* %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep -v vendor %build export OPENSSL_NO_VENDOR=1 %cargo_build -a %{cargo_license_summary -a} %{cargo_vendor_manifest} %{cargo_license -a} > LICENSE.dependencies %install %cargo_install -a install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 '%{SOURCE10}' %if %{with check} %check # * Some tests require data from tests/data/, not included in the crate. %{cargo_test -a -- -- --exact %{shrink: --skip language::language_type::tests::jupyter_notebook_has_correct_totals --skip language::language_type::tests::lf_embedded_language_is_counted }} %endif %changelog * Fri Jul 03 2026 AL2023 rebuild - %{version}-1 - AL2023 rust-toolset vendored binary build