## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 7; 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} %global crate chardetng Name: rust-chardetng Version: 0.1.17 Release: %autorelease Summary: Character encoding detector for legacy Web content License: Apache-2.0 OR MIT URL: https://crates.io/crates/chardetng Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * https://github.com/hsivonen/chardetng/pull/10 # * update arrayvec dependency from 0.5 to 0.7: # https://github.com/hsivonen/chardetng/commit/a60b355d2a7455bc215eb28b806c5368c1182dda Patch: chardetng-fix-metadata.diff # * https://github.com/hsivonen/chardetng/pull/12 Patch10: fix-missing-std-import.diff # * Source-code change for arrayvec 0.7; backported from # https://github.com/hsivonen/chardetng/commit/a60b355d2a7455bc215eb28b806c5368c1182dda Patch11: arrayvec-0.7.patch BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A character encoding detector for legacy Web content.} %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}/COPYRIGHT %license %{crate_instdir}/LICENSE-APACHE %license %{crate_instdir}/LICENSE-MIT %doc %{crate_instdir}/CONTRIBUTING.md %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}+arrayvec-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+arrayvec-devel %{_description} This package contains library source intended for building other packages which use the "arrayvec" feature of the "%{crate}" crate. %files -n %{name}+arrayvec-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+multithreading-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+multithreading-devel %{_description} This package contains library source intended for building other packages which use the "multithreading" feature of the "%{crate}" crate. %files -n %{name}+multithreading-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rayon-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rayon-devel %{_description} This package contains library source intended for building other packages which use the "rayon" feature of the "%{crate}" crate. %files -n %{name}+rayon-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+testing-only-no-semver-guarantees-do-not-use-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+testing-only-no-semver-guarantees-do-not-use-devel %{_description} This package contains library source intended for building other packages which use the "testing-only-no-semver-guarantees-do-not-use" feature of the "%{crate}" crate. %files -n %{name}+testing-only-no-semver-guarantees-do-not-use-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Sat Jan 17 2026 Fedora Release Engineering - 0.1.17-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Sun Oct 05 2025 Benjamin A. Beasley - 0.1.17-6 - Update arrayvec dependency from 0.5 to 0.7 * Fri Jul 25 2025 Fedora Release Engineering - 0.1.17-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Sun Jan 19 2025 Fedora Release Engineering - 0.1.17-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Jul 19 2024 Fedora Release Engineering - 0.1.17-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jan 26 2024 Fedora Release Engineering - 0.1.17-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Oct 23 2023 blinxen - 0.1.17-1 - Initial package (rhbz#2245724) ## END: Generated by rpmautospec