# Generated by rust2rpm 25 %bcond_without check %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 Patch: chardetng-fix-metadata.diff # https://github.com/hsivonen/chardetng/pull/12 Patch: fix-missing-std-import.diff 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 %autochangelog