# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate io-extras Name: rust-io-extras Version: 0.18.1 Release: %autorelease Summary: File/socket handle/descriptor utilities License: Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT URL: https://crates.io/crates/io-extras Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: io-extras-fix-metadata-auto.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: File/socket handle/descriptor utilities.} %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-Apache-2.0_WITH_LLVM-exception %license %{crate_instdir}/LICENSE-MIT %doc %{crate_instdir}/CODE_OF_CONDUCT.md %doc %{crate_instdir}/ORG_CODE_OF_CONDUCT.md %doc %{crate_instdir}/README.md %doc %{crate_instdir}/SECURITY.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}+mio-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+mio-devel %{_description} This package contains library source intended for building other packages which use the "mio" feature of the "%{crate}" crate. %files -n %{name}+mio-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+os_pipe-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+os_pipe-devel %{_description} This package contains library source intended for building other packages which use the "os_pipe" feature of the "%{crate}" crate. %files -n %{name}+os_pipe-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+socket2-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+socket2-devel %{_description} This package contains library source intended for building other packages which use the "socket2" feature of the "%{crate}" crate. %files -n %{name}+socket2-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 %package -n %{name}+use_async_std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+use_async_std-devel %{_description} This package contains library source intended for building other packages which use the "use_async_std" feature of the "%{crate}" crate. %files -n %{name}+use_async_std-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+use_mio_net-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+use_mio_net-devel %{_description} This package contains library source intended for building other packages which use the "use_mio_net" feature of the "%{crate}" crate. %files -n %{name}+use_mio_net-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+use_mio_os_ext-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+use_mio_os_ext-devel %{_description} This package contains library source intended for building other packages which use the "use_mio_os_ext" feature of the "%{crate}" crate. %files -n %{name}+use_mio_os_ext-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+use_os_pipe-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+use_os_pipe-devel %{_description} This package contains library source intended for building other packages which use the "use_os_pipe" feature of the "%{crate}" crate. %files -n %{name}+use_os_pipe-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+use_socket2-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+use_socket2-devel %{_description} This package contains library source intended for building other packages which use the "use_socket2" feature of the "%{crate}" crate. %files -n %{name}+use_socket2-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+use_tokio-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+use_tokio-devel %{_description} This package contains library source intended for building other packages which use the "use_tokio" feature of the "%{crate}" crate. %files -n %{name}+use_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