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-mio/rust-mio.spec

113 lines
2.6 KiB

# Generated by rust2rpm 21
%bcond_without check
%global debug_package %{nil}
%global crate mio
Name: rust-%{crate}
Version: 0.8.3
Release: %autorelease
Summary: Lightweight non-blocking IO
# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/mio
Source: %{crates_source}
# Initial patched metadata
# * drop WASI- and Windows-specific dependencies
7 years ago
Patch0: mio-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging >= 21
%global _description %{expand:
Lightweight non-blocking IO.}
%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}+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
5 years ago
%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.
5 years ago
%files -n %{name}+os-poll-devel
%ghost %{crate_instdir}/Cargo.toml
5 years ago
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
5 years ago
%cargo_generate_buildrequires -a
%build
5 years ago
%cargo_build -a
%install
5 years ago
%cargo_install -a
%if %{with check}
%check
5 years ago
export RUST_BACKTRACE=1
%cargo_test -a
%endif
%changelog
%autochangelog