# Generated by rust2rpm 9 %bcond_without check %global debug_package %{nil} %global crate shared_child Name: rust-%{crate} Version: 0.3.3 Release: 1%{?dist} Summary: Library for using child processes from multiple threads # Upstream license specification: MIT License: MIT URL: https://crates.io/crates/shared_child Source: %{crates_source} # Initial patched metadata # - Remove Windows only dependencies Patch0: shared_child-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif BuildRequires: rust-packaging %if ! %{__cargo_skip_build} BuildRequires: (crate(libc/default) >= 0.2.42 with crate(libc/default) < 0.3.0) BuildRequires: python3 %endif %global _description %{expand: Library for using child processes from multiple threads.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel %license LICENSE %doc README.md %{cargo_registry}/%{crate}-%{version}/ %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 "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep # Fix tests sed -i 's|Command::new("python");|Command::new("python3");|' src/lib.rs %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Wed Jun 19 00:11:31 CEST 2019 Robert-André Mauchin - 0.3.3-1 - Initial package