%define _trivial .0 %define _buildid .1 ## START: Set by rpmautospec ## (rpmautospec version 0.8.2) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 23; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} # prevent executables from being installed %global cargo_install_bin 0 %global crate tokei %global crate_version 13.0.0-alpha.8 Name: rust-tokei Version: 13.0.0~alpha.8 Release: 1%{dist}%{?_trivial}%{?_buildid} Summary: Count your code, quickly License: MIT OR Apache-2.0 URL: https://crates.io/crates/tokei Source: tokei-13.0.0-alpha.8.crate Source1: vendor-20250919.tar.gz # 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 Patch: tokei-fix-metadata.diff # * Fix a minor typo in CLI help text # * https://github.com/XAMPPRocky/tokei/pull/1217 Patch10: https://github.com/XAMPPRocky/tokei/pull/1217.patch # * Fix a missing space in CLI help text # * https://github.com/XAMPPRocky/tokei/pull/1218 Patch11: https://github.com/XAMPPRocky/tokei/pull/1218.patch BuildRequires: cargo-rpm-macros >= 26 BuildRequires: dos2unix %global _description %{expand: Count your code, quickly.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENCE-APACHE %license %{crate_instdir}/LICENCE-MIT %doc %{crate_instdir}/README.md %{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+all-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+all-devel %{_description} This package contains library source intended for building other packages which use the "all" feature of the "%{crate}" crate. %files -n %{name}+all-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+cbor-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cbor-devel %{_description} This package contains library source intended for building other packages which use the "cbor" feature of the "%{crate}" crate. %files -n %{name}+cbor-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+yaml-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+yaml-devel %{_description} This package contains library source intended for building other packages which use the "yaml" feature of the "%{crate}" crate. %files -n %{name}+yaml-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{crate_version} -p1 -a1 # Fix CRLF or mixed CRLF/LF line terminations in Markdown files # https://github.com/XAMPPRocky/tokei/pull/1219 dos2unix --keepdate *.md %cargo_prep -v vendor %build %cargo_build -a %install %cargo_install -a %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 ## START: Generated by rpmautospec * Fri Jul 25 2025 Fedora Release Engineering - 13.0.0~alpha.8-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Tue May 13 2025 Benjamin A. Beasley - 13.0.0~alpha.8-22 - Remove no-longer-necessary .rpmlintrc file * Mon Apr 14 2025 Benjamin A. Beasley - 13.0.0~alpha.8-21 - Update etcetera to 0.10 * Fri Jan 24 2025 Benjamin A. Beasley - 13.0.0~alpha.8-19 - Bump the release so the tokei subpackage upgrades the old one * Fri Jan 24 2025 Benjamin A. Beasley - 13.0.0~alpha.8-1 - Update to 13.0.0~alpha.8 - Don’t ship the command-line tool; we will do that in rust-tokei12 * Sun Jan 19 2025 Fedora Release Engineering - 12.1.2-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Jan 10 2025 Benjamin A. Beasley - 12.1.2-17 - Allow dirs 4 and 5 (build with rust-dirs instead of rust-dirs3) * Mon Dec 23 2024 Benjamin A. Beasley - 12.1.2-16 - Add a man page * Sun Dec 22 2024 Benjamin A. Beasley - 12.1.2-15 - Remove the upper bound on the git2 dev-dependency version * Sun Dec 22 2024 Benjamin A. Beasley - 12.1.2-14 - Write the License expression with one term per line * Sun Dec 22 2024 Benjamin A. Beasley - 12.1.2-13 - Align rust2rpm.toml patch comments with the spec file - Re-generate the spec file with rust2rpm 27 * Tue Oct 29 2024 Fabio Valentini - 12.1.2-12 - Bump git2 dependency from 0.18 to 0.19 * Sat Sep 14 2024 Fabio Valentini - 12.1.2-11 - Remove reference to readme file that is not included in published crates * Sat Jul 20 2024 Fedora Release Engineering - 12.1.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Thu May 23 2024 Fabio Valentini - 12.1.2-9 - Rebuild with Rust 1.78 to fix incomplete debuginfo and backtraces * Tue Feb 13 2024 Fabio Valentini - 12.1.2-8 - Bump git2 dev-dependency from 0.13 to 0.18 * Sat Jan 27 2024 Fedora Release Engineering - 12.1.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Aug 22 2023 Fabio Valentini - 12.1.2-6 - Convert license tag for binary subpackage to SPDX * Sat Jul 22 2023 Fedora Release Engineering - 12.1.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Sat Jan 28 2023 Fabio Valentini - 12.1.2-4 - Rebuild for CVE-2022-24765 and CVE-2022-29187 in libgit2 * Sat Jan 21 2023 Fedora Release Engineering - 12.1.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Jul 27 2022 Fabio Valentini - 12.1.2-2 - Fix typo * Wed Jul 27 2022 Fabio Valentini - 12.1.2-1 - Update to version 12.1.2; Fixes RHBZ#1910441 * Sat Jul 23 2022 Fedora Release Engineering - 12.0.4-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Feb 15 2022 Zbigniew Jędrzejewski-Szmek - 12.0.4-12 - Rebuild with package notes * Tue Jan 25 2022 Fabio Valentini - 12.0.4-11 - Disable doctests. They are a never ending source of obscure rustc problems. * Tue Jan 25 2022 Fabio Valentini - 12.0.4-10 - Work around doctest failures caused by codegen issues with LLVM 12. * Tue Jan 25 2022 Fabio Valentini - 12.0.4-9 - Rebuild with thread_local 1.1.4 for RUSTSEC-2022-0006. * Fri Jan 21 2022 Fedora Release Engineering - 12.0.4-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sat Aug 07 2021 Fabio Valentini - 12.0.4-7 - Rebuild with crossbeam-deque 0.8.1 / 0.7.4 for CVE-2021-32810 * Thu Jul 29 2021 Josh Stone - 12.0.4-6 - Revert to 12.0.4 until crate(num-format) is available. - Bump to dashmap 4.0.1. * Fri Jul 23 2021 Fedora Release Engineering - 12.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 12.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Dec 28 13:33:42 CET 2020 Igor Raits - 12.1.0-2 - Rebuild * Sun Dec 27 14:12:53 CET 2020 Igor Raits - 12.1.0-1 - Update to 12.1.0 * Fri Sep 11 2020 Josh Stone - 12.0.4-5 - Bump to parking_lot 0.11 * Sun Aug 16 15:01:53 GMT 2020 Igor Raits - 12.0.4-4 - Rebuild * Sat Aug 01 2020 Fedora Release Engineering - 12.0.4-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 12.0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jul 10 2020 Josh Stone - 12.0.4-1 - Update to 12.0.4 * Sat Jun 06 2020 Josh Stone - 11.2.1-1 - Update to 11.2.1 * Wed May 20 07:37:56 CEST 2020 Igor Raits - 11.2.0-1 - Update to 11.2.0 * Wed May 06 2020 Josh Stone - 11.1.1-1 - Update to 11.1.1 * Sun Apr 19 11:57:45 CEST 2020 Igor Raits - 11.1.0-1 - Update to 11.1.0 * Sat Mar 21 17:14:07 CET 2020 Igor Raits - 11.0.0-1 - Update to 11.0.0 * Thu Mar 19 11:06:08 CET 2020 Igor Raits - 10.1.2-3 - Update git2 to 0.13 * Tue Mar 03 2020 Josh Stone - 10.1.2-2 - Bump git2 to 0.12 * Thu Feb 13 2020 Josh Stone - 10.1.2-1 - Update to 10.1.2 * Thu Jan 30 2020 Fedora Release Engineering - 10.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Jan 15 2020 Josh Stone - 10.1.1-1 - Update to 10.1.1 * Wed Dec 25 11:00:37 CET 2019 Igor Gnatenko - 10.1.0-2 - Update git2 to 0.11 * Tue Nov 19 09:33:39 CET 2019 Igor Gnatenko - 10.1.0-1 - Update to 10.1.0 * Fri Jul 26 2019 Fedora Release Engineering - 10.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Jul 06 11:20:58 CEST 2019 Igor Gnatenko - 10.0.1-1 - Update to 10.0.1 * Wed Jun 19 12:33:03 CEST 2019 Igor Gnatenko - 10.0.0-1 - Update to 10.0.0 * Fri Jun 07 2019 Josh Stone - 9.1.1-2 - Bump git2 to 0.9 * Sat Mar 30 14:59:32 CET 2019 Igor Gnatenko - 9.1.1-1 - Update to 9.1.1 * Thu Mar 21 09:59:47 CET 2019 Igor Gnatenko - 9.1.0-1 - Update to 9.1.0 * Sat Feb 02 2019 Fedora Release Engineering - 9.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Jan 14 2019 Josh Stone - 9.0.0-1 - Update to 9.0.0 * Sat Nov 10 2018 Igor Gnatenko - 8.0.1-2 - Adapt to new packaging * Sat Sep 08 2018 Igor Gnatenko - 8.0.1-1 - Update to 8.0.1 * Wed Jul 18 2018 Igor Gnatenko - 7.0.3-4 - Bump handlebars to 1 * Sat Jul 14 2018 Fedora Release Engineering - 7.0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Jun 22 2018 Igor Gnatenko - 7.0.3-2 - Update to new macro * Thu Jun 14 2018 Igor Gnatenko - 7.0.3-1 - Update to 7.0.3 * Wed Feb 21 2018 Igor Gnatenko - 7.0.1-6 - Rebuild for passing %%__cargo_common_opts bug * Tue Feb 20 2018 Igor Gnatenko - 7.0.1-5 - Bump rayon to 1 * Mon Feb 12 2018 Igor Gnatenko - 7.0.1-4 - Bump ignore to 0.4 * Sat Feb 10 2018 Igor Gnatenko - 7.0.1-3 - Bump handlebars to 0.31 * Fri Feb 09 2018 Fedora Release Engineering - 7.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Jan 22 2018 Igor Gnatenko - 7.0.1-1 - Update to 7.0.1 * Fri Jan 19 2018 Igor Gnatenko - 7.0.0-3 - Rebuild for env_logger 0.5.2 * Thu Jan 18 2018 Igor Gnatenko - 7.0.0-2 - Rebuild for env_logger 0.5.1 * Wed Jan 17 2018 Igor Gnatenko - 7.0.0-1 - Update to 7.0.0 * Mon Jan 08 2018 Igor Gnatenko - 6.1.2-8 - Rebuild for rust-packaging v5 * Tue Jan 02 2018 Igor Gnatenko - 6.1.2-7 - Bump serde_cbor to 0.8 * Thu Nov 30 2017 Igor Gnatenko - 6.1.2-6 - Bump lazy_static to 1 * Tue Nov 28 2017 Igor Gnatenko - 6.1.2-5 - Rebuild for clap 2.28.0 * Sat Nov 18 2017 Igor Gnatenko - 6.1.2-4 - Rebuild for rust-hex 0.3 * Wed Nov 15 2017 Igor Gnatenko - 6.1.2-3 - Rebuild for dependency change * Wed Nov 15 2017 Igor Gnatenko - 6.1.2-2 - Enable all feauteres * Tue Nov 14 2017 Igor Gnatenko - 6.1.2-1 - Initial package ## END: Generated by rpmautospec