|
|
|
@ -1,24 +1,21 @@
|
|
|
|
|
# Generated by rust2rpm 26
|
|
|
|
|
# Generated by rust2rpm 24
|
|
|
|
|
%bcond_without check
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%global crate shared_child
|
|
|
|
|
|
|
|
|
|
Name: rust-shared_child
|
|
|
|
|
Version: 1.0.1
|
|
|
|
|
Version: 1.0.0
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: Library for using child processes from multiple threads
|
|
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: https://crates.io/crates/shared_child
|
|
|
|
|
Source: %{crates_source}
|
|
|
|
|
# Automatically generated patch to strip dependencies and normalize metadata
|
|
|
|
|
# Automatically generated patch to strip foreign dependencies
|
|
|
|
|
Patch: shared_child-fix-metadata-auto.diff
|
|
|
|
|
|
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
|
%if %{with check}
|
|
|
|
|
BuildRequires: /usr/bin/python
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
A library for using child processes from multiple threads.}
|
|
|
|
@ -52,7 +49,7 @@ use the "default" feature of the "%{crate}" crate.
|
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
@ -66,7 +63,10 @@ use the "default" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
|
%check
|
|
|
|
|
%cargo_test
|
|
|
|
|
# * doctests try to run unversioned "python"
|
|
|
|
|
# * skip a test that fails with Rust 1.72 and newer:
|
|
|
|
|
# https://github.com/oconnor663/shared_child.rs/issues/23
|
|
|
|
|
%cargo_test -- --lib -- --skip test_into_inner_after_wait
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|