# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate encoding_rs Name: rust-encoding_rs Version: 0.8.33 Release: %autorelease Summary: Gecko-oriented implementation of the Encoding Standard # * source code: Apache-2.0 OR MIT # * source code derived from the WHATWG Encoding Standard: BSD-3-Clause License: (Apache-2.0 OR MIT) AND BSD-3-Clause URL: https://crates.io/crates/encoding_rs Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop unneeded script: https://github.com/hsivonen/encoding_rs/pull/38 # * drop simd_accel feature / optional packed_simd_2 dependency Patch: encoding_rs-fix-metadata.diff BuildRequires: rust-packaging >= 21 %global _description %{expand: A Gecko-oriented implementation of the Encoding Standard.} %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 %license %{crate_instdir}/LICENSE-WHATWG %doc %{crate_instdir}/CONTRIBUTING.md %doc %{crate_instdir}/Ideas.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}+alloc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+alloc-devel %{_description} This package contains library source intended for building other packages which use the "alloc" feature of the "%{crate}" crate. %files -n %{name}+alloc-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fast-big5-hanzi-encode-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fast-big5-hanzi-encode-devel %{_description} This package contains library source intended for building other packages which use the "fast-big5-hanzi-encode" feature of the "%{crate}" crate. %files -n %{name}+fast-big5-hanzi-encode-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fast-gb-hanzi-encode-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fast-gb-hanzi-encode-devel %{_description} This package contains library source intended for building other packages which use the "fast-gb-hanzi-encode" feature of the "%{crate}" crate. %files -n %{name}+fast-gb-hanzi-encode-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fast-hangul-encode-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fast-hangul-encode-devel %{_description} This package contains library source intended for building other packages which use the "fast-hangul-encode" feature of the "%{crate}" crate. %files -n %{name}+fast-hangul-encode-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fast-hanja-encode-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fast-hanja-encode-devel %{_description} This package contains library source intended for building other packages which use the "fast-hanja-encode" feature of the "%{crate}" crate. %files -n %{name}+fast-hanja-encode-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fast-kanji-encode-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fast-kanji-encode-devel %{_description} This package contains library source intended for building other packages which use the "fast-kanji-encode" feature of the "%{crate}" crate. %files -n %{name}+fast-kanji-encode-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+fast-legacy-encode-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fast-legacy-encode-devel %{_description} This package contains library source intended for building other packages which use the "fast-legacy-encode" feature of the "%{crate}" crate. %files -n %{name}+fast-legacy-encode-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+less-slow-big5-hanzi-encode-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+less-slow-big5-hanzi-encode-devel %{_description} This package contains library source intended for building other packages which use the "less-slow-big5-hanzi-encode" feature of the "%{crate}" crate. %files -n %{name}+less-slow-big5-hanzi-encode-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+less-slow-gb-hanzi-encode-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+less-slow-gb-hanzi-encode-devel %{_description} This package contains library source intended for building other packages which use the "less-slow-gb-hanzi-encode" feature of the "%{crate}" crate. %files -n %{name}+less-slow-gb-hanzi-encode-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+less-slow-kanji-encode-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+less-slow-kanji-encode-devel %{_description} This package contains library source intended for building other packages which use the "less-slow-kanji-encode" feature of the "%{crate}" crate. %files -n %{name}+less-slow-kanji-encode-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages which use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog