# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} %global crate fs4 Name: rust-fs4 Version: 0.8.1 Release: %autorelease Summary: No libc, pure Rust cross-platform file locks # Upstream license specification: MIT/Apache-2.0 License: MIT OR Apache-2.0 URL: https://crates.io/crates/fs4 Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: fs4-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes # * Disable feature 'smol' (missing dependencies: smol, smol-potat) Patch: fs4-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: No libc, pure Rust cross-platform file locks. Original fs2, now supports async and replace libc by rustix.} %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-APACHE %license %{crate_instdir}/LICENSE-MIT %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}+async-std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-std-devel %{_description} This package contains library source intended for building other packages which use the "async-std" feature of the "%{crate}" crate. %files -n %{name}+async-std-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async-trait-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-trait-devel %{_description} This package contains library source intended for building other packages which use the "async-trait" feature of the "%{crate}" crate. %files -n %{name}+async-trait-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+sync-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+sync-devel %{_description} This package contains library source intended for building other packages which use the "sync" feature of the "%{crate}" crate. %files -n %{name}+sync-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tokio-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tokio-devel %{_description} This package contains library source intended for building other packages which use the "tokio" feature of the "%{crate}" crate. %files -n %{name}+tokio-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