# Generated by rust2rpm 24 # * Missing test-strategy and three of its deps. %bcond_with check %global debug_package %{nil} %global crate compact_str Name: rust-compact_str Version: 0.7.0 Release: %autorelease Summary: Memory efficient string type License: MIT URL: https://crates.io/crates/compact_str Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Remove markup feature that requires unpackaged dependencies Patch: compact_str-fix-metadata.diff BuildRequires: rust-packaging >= 21 %global _description %{expand: A memory efficient string type that transparently stores strings on the stack, when possible.} %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}/LICENSE %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}+arbitrary-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+arbitrary-devel %{_description} This package contains library source intended for building other packages which use the "arbitrary" feature of the "%{crate}" crate. %files -n %{name}+arbitrary-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+bytes-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bytes-devel %{_description} This package contains library source intended for building other packages which use the "bytes" feature of the "%{crate}" crate. %files -n %{name}+bytes-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+proptest-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+proptest-devel %{_description} This package contains library source intended for building other packages which use the "proptest" feature of the "%{crate}" crate. %files -n %{name}+proptest-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+quickcheck-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+quickcheck-devel %{_description} This package contains library source intended for building other packages which use the "quickcheck" feature of the "%{crate}" crate. %files -n %{name}+quickcheck-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rkyv-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rkyv-devel %{_description} This package contains library source intended for building other packages which use the "rkyv" feature of the "%{crate}" crate. %files -n %{name}+rkyv-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 %package -n %{name}+smallvec-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+smallvec-devel %{_description} This package contains library source intended for building other packages which use the "smallvec" feature of the "%{crate}" crate. %files -n %{name}+smallvec-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