f3c8c4a
# Generated by rust2rpm 24
f3c8c4a
# * missing dev-dependency: loom (which is also only available on x86_64)
54c5e2e
%bcond_with check
54c5e2e
%global debug_package %{nil}
54c5e2e
54c5e2e
%global crate tokio-sync
54c5e2e
f3c8c4a
Name:           rust-tokio-sync
ab40a8f
Version:        0.1.8
721aef6
Release:        %autorelease
54c5e2e
Summary:        Synchronization utilities
54c5e2e
54c5e2e
License:        MIT
54c5e2e
URL:            https://crates.io/crates/tokio-sync
ea5b182
Source:         %{crates_source}
54c5e2e
f3c8c4a
BuildRequires:  rust-packaging >= 21
54c5e2e
47a8212
%global _description %{expand:
47a8212
Synchronization utilities.}
54c5e2e
54c5e2e
%description %{_description}
54c5e2e
54c5e2e
%package        devel
54c5e2e
Summary:        %{summary}
54c5e2e
BuildArch:      noarch
54c5e2e
54c5e2e
%description    devel %{_description}
54c5e2e
f3c8c4a
This package contains library source intended for building other packages which
f3c8c4a
use the "%{crate}" crate.
54c5e2e
54c5e2e
%files          devel
f3c8c4a
%license %{crate_instdir}/LICENSE
f3c8c4a
%doc %{crate_instdir}/CHANGELOG.md
f3c8c4a
%doc %{crate_instdir}/README.md
f3c8c4a
%{crate_instdir}/
54c5e2e
54c5e2e
%package     -n %{name}+default-devel
54c5e2e
Summary:        %{summary}
54c5e2e
BuildArch:      noarch
54c5e2e
54c5e2e
%description -n %{name}+default-devel %{_description}
54c5e2e
f3c8c4a
This package contains library source intended for building other packages which
f3c8c4a
use the "default" feature of the "%{crate}" crate.
54c5e2e
54c5e2e
%files       -n %{name}+default-devel
f3c8c4a
%ghost %{crate_instdir}/Cargo.toml
54c5e2e
54c5e2e
%prep
ea5b182
%autosetup -n %{crate}-%{version_no_tilde} -p1
54c5e2e
%cargo_prep
54c5e2e
47a8212
%generate_buildrequires
47a8212
%cargo_generate_buildrequires
47a8212
54c5e2e
%build
54c5e2e
%cargo_build
54c5e2e
54c5e2e
%install
54c5e2e
%cargo_install
54c5e2e
54c5e2e
%if %{with check}
54c5e2e
%check
54c5e2e
%cargo_test
54c5e2e
%endif
54c5e2e
54c5e2e
%changelog
721aef6
%autochangelog