|
|
|
# Generated by rust2rpm 25
|
|
|
|
%bcond_without check
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
%global crate mio
|
|
|
|
|
|
|
|
Name: rust-mio
|
|
|
|
Version: 0.8.10
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Lightweight non-blocking I/O
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
URL: https://crates.io/crates/mio
|
|
|
|
Source: %{crates_source}
|
|
|
|
# Automatically generated patch to strip dependencies and normalize metadata
|
|
|
|
Patch: mio-fix-metadata-auto.diff
|
|
|
|
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
Lightweight non-blocking I/O.}
|
|
|
|
|
|
|
|
%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}+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}+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}+os-ext-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n %{name}+os-ext-devel %{_description}
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
use the "os-ext" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+os-ext-devel
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
%package -n %{name}+os-poll-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n %{name}+os-poll-devel %{_description}
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
use the "os-poll" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+os-poll-devel
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires -a
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cargo_build -a
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cargo_install -a
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%cargo_test -a
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%autochangelog
|