# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate isolang Name: rust-isolang Version: 2.4.0 Release: 1%{?dist} Summary: Efficient, static lookup table for ISO 639 language codes License: Apache-2.0 URL: https://crates.io/crates/isolang Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Efficient, static lookup table for ISO 639 language codes.} %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.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}+english_names-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+english_names-devel %{_description} This package contains library source intended for building other packages which use the "english_names" feature of the "%{crate}" crate. %files -n %{name}+english_names-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+list_languages-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+list_languages-devel %{_description} This package contains library source intended for building other packages which use the "list_languages" feature of the "%{crate}" crate. %files -n %{name}+list_languages-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+local_names-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+local_names-devel %{_description} This package contains library source intended for building other packages which use the "local_names" feature of the "%{crate}" crate. %files -n %{name}+local_names-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+lowercase_names-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+lowercase_names-devel %{_description} This package contains library source intended for building other packages which use the "lowercase_names" feature of the "%{crate}" crate. %files -n %{name}+lowercase_names-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} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # * upstream maintainer check that regenerates src/isotable.rs, requires rustfmt %cargo_test -- -- --exact --skip generated_code_table_if_outdated %endif %changelog * Tue Nov 24 2026 Rafi Goldhammer-Baum - 2.4.0-1 - Initial package