You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-tokio-util/rust-tokio-util.spec

217 lines
5.6 KiB

# Generated by rust2rpm 27
# * tests can only be run in-tree
%bcond check 0
%global debug_package %{nil}
%global crate tokio-util
Name: rust-tokio-util
Version: 0.7.13
Release: %autorelease
Summary: Additional utilities for working with Tokio
License: MIT
URL: https://crates.io/crates/tokio-util
Source: %{crates_source}
# Automatically generated patch to strip dependencies and normalize metadata
Patch: tokio-util-fix-metadata-auto.diff
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
Additional utilities for working with Tokio.}
%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}/CHANGELOG.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}+codec-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+codec-devel %{_description}
This package contains library source intended for building other packages which
use the "codec" feature of the "%{crate}" crate.
%files -n %{name}+codec-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+compat-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+compat-devel %{_description}
This package contains library source intended for building other packages which
use the "compat" feature of the "%{crate}" crate.
%files -n %{name}+compat-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+full-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+full-devel %{_description}
This package contains library source intended for building other packages which
use the "full" feature of the "%{crate}" crate.
%files -n %{name}+full-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-util-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+futures-util-devel %{_description}
This package contains library source intended for building other packages which
use the "futures-util" feature of the "%{crate}" crate.
%files -n %{name}+futures-util-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+io-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+io-devel %{_description}
This package contains library source intended for building other packages which
use the "io" feature of the "%{crate}" crate.
%files -n %{name}+io-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+io-util-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+io-util-devel %{_description}
This package contains library source intended for building other packages which
use the "io-util" feature of the "%{crate}" crate.
%files -n %{name}+io-util-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+net-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+net-devel %{_description}
This package contains library source intended for building other packages which
use the "net" feature of the "%{crate}" crate.
%files -n %{name}+net-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+rt-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+rt-devel %{_description}
This package contains library source intended for building other packages which
use the "rt" feature of the "%{crate}" crate.
%files -n %{name}+rt-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}+time-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+time-devel %{_description}
This package contains library source intended for building other packages which
use the "time" feature of the "%{crate}" crate.
%files -n %{name}+time-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+tracing-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+tracing-devel %{_description}
This package contains library source intended for building other packages which
use the "tracing" feature of the "%{crate}" crate.
%files -n %{name}+tracing-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