# Generated by rust2rpm 16 %bcond_without check %global crate tokei Name: rust-%{crate} Version: 12.0.4 Release: 11%{?dist} Summary: Utility that allows you to count code, quickly # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/tokei Source: %{crates_source} # Initial patched metadata # * Bump to parking_lot 0.11, https://github.com/XAMPPRocky/tokei/pull/575 # * Bump to dashmap 4.0.1, https://github.com/XAMPPRocky/tokei/pull/680 Patch0: tokei-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif BuildRequires: rust-packaging %global _description %{expand: Utility that allows you to count code, quickly.} %description %{_description} %if ! %{__cargo_skip_build} %package -n %{crate} Summary: %{summary} # * (MIT or ASL 2.0) and Public Domain # * ASL 2.0 or Boost # * ASL 2.0 or MIT # * BSD # * MIT # * MIT or ASL 2.0 # * Unlicense or MIT License: MIT and BSD and (ASL 2.0 or Boost) and Public Domain %description -n %{crate} %{_description} %files -n %{crate} %license LICENCE-MIT LICENCE-APACHE %{_bindir}/tokei %endif %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel %license LICENCE-MIT LICENCE-APACHE %{cargo_registry}/%{crate}-%{version_no_tilde}/ %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 "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "all" feature of "%{crate}" crate. %files -n %{name}+all-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "cbor" feature of "%{crate}" crate. %files -n %{name}+cbor-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+hex-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+hex-devel %{_description} This package contains library source intended for building other packages which use "hex" feature of "%{crate}" crate. %files -n %{name}+hex-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+serde_cbor-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde_cbor-devel %{_description} This package contains library source intended for building other packages which use "serde_cbor" feature of "%{crate}" crate. %files -n %{name}+serde_cbor-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+serde_yaml-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde_yaml-devel %{_description} This package contains library source intended for building other packages which use "serde_yaml" feature of "%{crate}" crate. %files -n %{name}+serde_yaml-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 "yaml" feature of "%{crate}" crate. %files -n %{name}+yaml-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -a %build %cargo_build -a %install %cargo_install -a %if %{with check} %check # * doctest failures caused by codegen issues with LLVM 12 on i686: # https://bugzilla.redhat.com/show_bug.cgi?id=2020861 # * doctest failures caused by rustc crashes with LLVM 13 on armv7hl: # https://bugzilla.redhat.com/show_bug.cgi?id=2045116 %cargo_test -a -- --lib %endif %changelog * 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