## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 21 %bcond_without check %global debug_package %{nil} %global crate async-std Name: rust-%{crate} Version: 1.12.0 Release: %autorelease Summary: Async version of the Rust standard library # Upstream license specification: Apache-2.0/MIT License: ASL 2.0 or MIT URL: https://crates.io/crates/async-std Source: %{crates_source} # Initial patched metadata # * drop windows-specific dependencies and features # * drop WASM-specific dependencies and features # * drop tokio 0.3 features # * drop optional surf dependency Patch0: async-std-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21 %global _description %{expand: Async version of the Rust standard library.} %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}/CHANGELOG.md %doc %{crate_instdir}/CODE_OF_CONDUCT.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}+alloc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+alloc-devel %{_description} This package contains library source intended for building other packages which use the "alloc" feature of the "%{crate}" crate. %files -n %{name}+alloc-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async-attributes-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-attributes-devel %{_description} This package contains library source intended for building other packages which use the "async-attributes" feature of the "%{crate}" crate. %files -n %{name}+async-attributes-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async-channel-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-channel-devel %{_description} This package contains library source intended for building other packages which use the "async-channel" feature of the "%{crate}" crate. %files -n %{name}+async-channel-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async-global-executor-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-global-executor-devel %{_description} This package contains library source intended for building other packages which use the "async-global-executor" feature of the "%{crate}" crate. %files -n %{name}+async-global-executor-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async-io-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-io-devel %{_description} This package contains library source intended for building other packages which use the "async-io" feature of the "%{crate}" crate. %files -n %{name}+async-io-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async-lock-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-lock-devel %{_description} This package contains library source intended for building other packages which use the "async-lock" feature of the "%{crate}" crate. %files -n %{name}+async-lock-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async-process-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-process-devel %{_description} This package contains library source intended for building other packages which use the "async-process" feature of the "%{crate}" crate. %files -n %{name}+async-process-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+attributes-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+attributes-devel %{_description} This package contains library source intended for building other packages which use the "attributes" feature of the "%{crate}" crate. %files -n %{name}+attributes-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+crossbeam-utils-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+crossbeam-utils-devel %{_description} This package contains library source intended for building other packages which use the "crossbeam-utils" feature of the "%{crate}" crate. %files -n %{name}+crossbeam-utils-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+docs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+docs-devel %{_description} This package contains library source intended for building other packages which use the "docs" feature of the "%{crate}" crate. %files -n %{name}+docs-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+futures-core-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+futures-core-devel %{_description} This package contains library source intended for building other packages which use the "futures-core" feature of the "%{crate}" crate. %files -n %{name}+futures-core-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+futures-io-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+futures-io-devel %{_description} This package contains library source intended for building other packages which use the "futures-io" feature of the "%{crate}" crate. %files -n %{name}+futures-io-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+futures-lite-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+futures-lite-devel %{_description} This package contains library source intended for building other packages which use the "futures-lite" feature of the "%{crate}" crate. %files -n %{name}+futures-lite-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+kv-log-macro-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+kv-log-macro-devel %{_description} This package contains library source intended for building other packages which use the "kv-log-macro" feature of the "%{crate}" crate. %files -n %{name}+kv-log-macro-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+log-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+log-devel %{_description} This package contains library source intended for building other packages which use the "log" feature of the "%{crate}" crate. %files -n %{name}+log-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+memchr-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+memchr-devel %{_description} This package contains library source intended for building other packages which use the "memchr" feature of the "%{crate}" crate. %files -n %{name}+memchr-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+once_cell-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+once_cell-devel %{_description} This package contains library source intended for building other packages which use the "once_cell" feature of the "%{crate}" crate. %files -n %{name}+once_cell-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+pin-project-lite-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pin-project-lite-devel %{_description} This package contains library source intended for building other packages which use the "pin-project-lite" feature of the "%{crate}" crate. %files -n %{name}+pin-project-lite-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+pin-utils-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pin-utils-devel %{_description} This package contains library source intended for building other packages which use the "pin-utils" feature of the "%{crate}" crate. %files -n %{name}+pin-utils-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+slab-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+slab-devel %{_description} This package contains library source intended for building other packages which use the "slab" feature of the "%{crate}" crate. %files -n %{name}+slab-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 %package -n %{name}+tokio02-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tokio02-devel %{_description} This package contains library source intended for building other packages which use the "tokio02" feature of the "%{crate}" crate. %files -n %{name}+tokio02-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tokio1-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tokio1-devel %{_description} This package contains library source intended for building other packages which use the "tokio1" feature of the "%{crate}" crate. %files -n %{name}+tokio1-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+unstable-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+unstable-devel %{_description} This package contains library source intended for building other packages which use the "unstable" feature of the "%{crate}" crate. %files -n %{name}+unstable-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 # remove example that depends on the optional surf dependency rm examples/surf-web.rs %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check # skip one failing test (probably related to mock environment) %cargo_test -- -- --skip io_timeout_timedout %endif %changelog * Mon Jan 15 2024 Arkady L. Shane - 1.12.0-2 - Rebuilt for MSVSphere 9.3 * Sat Jul 23 2022 Fedora Release Engineering 1.12.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Jul 16 2022 Fabio Valentini 1.12.0-1 - Update to version 1.12.0; Fixes RHBZ#2098407 * Tue Mar 22 2022 Fabio Valentini 1.11.0-1 - Update to version 1.11.0; Fixes RHBZ#2066939 * Fri Jan 21 2022 Fedora Release Engineering 1.10.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sat Aug 28 2021 Fabio Valentini 1.10.0-1 - Update to version 1.10.0; Fixes RHBZ#1998173 * Fri Jul 23 2021 Fedora Release Engineering - 1.9.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 28 2021 Fabio Valentini - 1.9.0-1 - Initial package