You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-os_pipe/rust-os_pipe.spec

87 lines
2.0 KiB

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