Blame rust-os_pipe.spec

39f3d8d
# Generated by rust2rpm 23
b80d6a1
# * tests require building the example binaries
b80d6a1
%bcond_with check
04b3556
%global debug_package %{nil}
04b3556
04b3556
%global crate os_pipe
04b3556
533385e
Name:           rust-os_pipe
022efad
Version:        1.1.3
e9d2c91
Release:        %autorelease
04b3556
Summary:        Cross-platform library for opening OS pipes
04b3556
04b3556
License:        MIT
04b3556
URL:            https://crates.io/crates/os_pipe
04b3556
Source:         %{crates_source}
533385e
# Automatically generated patch to strip foreign dependencies
533385e
Patch:          os_pipe-fix-metadata-auto.diff
533385e
# Manually created patch for downstream crate metadata changes
b80d6a1
# * drop unwanted example binaries
533385e
Patch:          os_pipe-fix-metadata.diff
04b3556
533385e
BuildRequires:  rust-packaging >= 21
04b3556
04b3556
%global _description %{expand:
04b3556
Cross-platform library for opening OS pipes.}
04b3556
04b3556
%description %{_description}
04b3556
04b3556
%package        devel
04b3556
Summary:        %{summary}
04b3556
BuildArch:      noarch
04b3556
04b3556
%description    devel %{_description}
04b3556
b80d6a1
This package contains library source intended for building other packages which
b80d6a1
use the "%{crate}" crate.
04b3556
04b3556
%files          devel
533385e
%license %{crate_instdir}/LICENSE
533385e
%doc %{crate_instdir}/README.md
533385e
%{crate_instdir}/
04b3556
04b3556
%package     -n %{name}+default-devel
04b3556
Summary:        %{summary}
04b3556
BuildArch:      noarch
04b3556
04b3556
%description -n %{name}+default-devel %{_description}
04b3556
b80d6a1
This package contains library source intended for building other packages which
b80d6a1
use the "default" feature of the "%{crate}" crate.
04b3556
04b3556
%files       -n %{name}+default-devel
533385e
%ghost %{crate_instdir}/Cargo.toml
533385e
533385e
%package     -n %{name}+io_safety-devel
533385e
Summary:        %{summary}
533385e
BuildArch:      noarch
533385e
533385e
%description -n %{name}+io_safety-devel %{_description}
533385e
533385e
This package contains library source intended for building other packages which
533385e
use the "io_safety" feature of the "%{crate}" crate.
533385e
533385e
%files       -n %{name}+io_safety-devel
533385e
%ghost %{crate_instdir}/Cargo.toml
04b3556
04b3556
%prep
04b3556
%autosetup -n %{crate}-%{version_no_tilde} -p1
04b3556
%cargo_prep
04b3556
04b3556
%generate_buildrequires
04b3556
%cargo_generate_buildrequires
04b3556
04b3556
%build
04b3556
%cargo_build
04b3556
04b3556
%install
04b3556
%cargo_install
04b3556
04b3556
%if %{with check}
04b3556
%check
04b3556
%cargo_test
04b3556
%endif
04b3556
04b3556
%changelog
e9d2c91
%autochangelog