# Generated by rust2rpm 9 %bcond_without check %global debug_package %{nil} %global crate duct Name: rust-%{crate} Version: 0.12.0 Release: 1%{?dist} Summary: Library for creating shell pipelines # Upstream license specification: MIT License: MIT URL: https://crates.io/crates/duct Source: %{crates_source} ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif BuildRequires: rust-packaging %if ! %{__cargo_skip_build} BuildRequires: (crate(lazycell/default) >= 1.2.0 with crate(lazycell/default) < 2.0.0) BuildRequires: (crate(libc/default) >= 0.2.43 with crate(libc/default) < 0.3.0) BuildRequires: (crate(os_pipe/default) >= 0.8.0 with crate(os_pipe/default) < 0.9.0) BuildRequires: (crate(shared_child/default) >= 0.3.3 with crate(shared_child/default) < 0.4.0) %if %{with check} BuildRequires: (crate(tempdir/default) >= 0.3.7 with crate(tempdir/default) < 0.4.0) %endif %endif %global _description %{expand: Library for creating shell pipelines.} %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 %build %cargo_build %install %cargo_install # We don't need these binaries rm -rf %{buildroot}%{_bindir}/* %if %{with check} %check %cargo_test %endif %changelog * Wed Jun 19 00:51:57 CEST 2019 Robert-André Mauchin - 0.12.0-1 - Initial package