-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
- Loading branch information
Showing
16 changed files
with
1,868 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
# Generated by rust2rpm 26 | ||
%bcond_without check | ||
%global debug_package %{nil} | ||
|
||
%global crate futures-intrusive | ||
|
||
Name: rust-futures-intrusive | ||
Version: 0.5.0 | ||
Release: %autorelease | ||
Summary: Futures based on intrusive data structures - for std and no-std environments | ||
|
||
License: MIT OR Apache-2.0 | ||
URL: https://crates.io/crates/futures-intrusive | ||
Source: %{crates_source} | ||
|
||
BuildRequires: cargo-rpm-macros >= 24 | ||
# Do downstream crate metadata changes programmatically in %%prep. Since %%prep | ||
# runs before %%generate_buildrequires, we must add the following manually | ||
# rather than generating a dynamic BuildRequires via rust2rpm.toml. | ||
BuildRequires: tomcli | ||
|
||
%global _description %{expand: | ||
Futures based on intrusive data structures - for std and no-std | ||
environments.} | ||
|
||
%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}/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}+parking_lot-devel | ||
Summary: %{summary} | ||
BuildArch: noarch | ||
|
||
%description -n %{name}+parking_lot-devel %{_description} | ||
|
||
This package contains library source intended for building other packages which | ||
use the "parking_lot" feature of the "%{crate}" crate. | ||
|
||
%files -n %{name}+parking_lot-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 | ||
|
||
%prep | ||
%autosetup -n %{crate}-%{version} -p1 | ||
%cargo_prep | ||
# Do not depend on criterion; it is needed only for benchmarks. | ||
tomcli set Cargo.toml del dev-dependencies.criterion | ||
|
||
%generate_buildrequires | ||
%cargo_generate_buildrequires | ||
|
||
%build | ||
%cargo_build | ||
|
||
%install | ||
%cargo_install | ||
|
||
%if %{with check} | ||
%check | ||
# * Tests are using debug_assert! | ||
%cargo_test -- -- --skip if_std::mpmc_channel_tests::try_send_unbuffered_panics --skip local_mpmc_channel_tests::try_send_unbuffered_panics | ||
%endif | ||
|
||
%changelog | ||
%autochangelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[scripts.prep] | ||
post = [ | ||
"# Do not depend on criterion; it is needed only for benchmarks.", | ||
"tomcli set Cargo.toml del dev-dependencies.criterion", | ||
] | ||
|
||
[tests] | ||
skip = [ | ||
"if_std::mpmc_channel_tests::try_send_unbuffered_panics", | ||
"local_mpmc_channel_tests::try_send_unbuffered_panics", | ||
] | ||
comments = [ | ||
"Tests are using debug_assert!" | ||
] |
Oops, something went wrong.