# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate aho-corasick Name: rust-aho-corasick Version: 1.0.1 Release: %autorelease Summary: Fast multiple substring searching License: Unlicense OR MIT URL: https://crates.io/crates/aho-corasick Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Fast multiple substring searching.} %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}/COPYING %license %{crate_instdir}/LICENSE-MIT %license %{crate_instdir}/UNLICENSE %doc %{crate_instdir}/DESIGN.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}+logging-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+logging-devel %{_description} This package contains library source intended for building other packages which use the "logging" feature of the "%{crate}" crate. %files -n %{name}+logging-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+perf-literal-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+perf-literal-devel %{_description} This package contains library source intended for building other packages which use the "perf-literal" feature of the "%{crate}" crate. %files -n %{name}+perf-literal-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+std-devel %{_description} This package contains library source intended for building other packages which use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-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 %ifarch %{ix86} # * ignore harmless test failure on 32-bit architectures: # https://github.com/BurntSushi/aho-corasick/issues/116 %cargo_test -- -- --skip ahocorasick::AhoCorasick::memory_usage %elifarch s390x # * ignore harmless test failure on big-endian architectures: # https://github.com/BurntSushi/aho-corasick/issues/117 %cargo_test -- -- --skip nfa::contiguous::tests::swar %else %cargo_test %endif %endif %changelog %autochangelog