Fix and re-enable tests

epel10
Fabio Valentini 11 months ago
parent b62bba805b
commit ee2ab4af8b
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

@ -1,5 +1,5 @@
--- os_pipe-1.1.5/Cargo.toml 1970-01-01T00:00:01+00:00
+++ os_pipe-1.1.5/Cargo.toml 2023-12-31T16:32:25.209713+00:00
+++ os_pipe-1.1.5/Cargo.toml 2024-03-08T21:40:08.657756+00:00
@@ -35,11 +35,3 @@
[target."cfg(not(windows))".dependencies.libc]
version = "0.2.62"

@ -1,10 +0,0 @@
--- os_pipe-1.1.5/Cargo.toml 1970-01-01T00:00:01+00:00
+++ os_pipe-1.1.5/Cargo.toml 2023-12-31T16:32:29.819737+00:00
@@ -25,6 +25,7 @@
]
license = "MIT"
repository = "https://github.com/oconnor663/os_pipe.rs"
+autobins = false
[package.metadata.docs.rs]
features = ["io_safety"]

@ -1,8 +1,10 @@
# Generated by rust2rpm 25
# * tests require building the example binaries
%bcond_with check
# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}
# prevent executables from being installed
%global cargo_install_bin 0
%global crate os_pipe
Name: rust-os_pipe
@ -15,11 +17,8 @@ URL: https://crates.io/crates/os_pipe
Source: %{crates_source}
# Automatically generated patch to strip dependencies and normalize metadata
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: cargo-rpm-macros >= 24
BuildRequires: cargo-rpm-macros >= 26
%global _description %{expand:
A cross-platform library for opening OS pipes.}
@ -70,6 +69,9 @@ use the "io_safety" feature of the "%{crate}" crate.
%generate_buildrequires
%cargo_generate_buildrequires
%if %{with check}
echo '/usr/bin/python'
%endif
%build
%cargo_build

@ -1,4 +1,6 @@
[tests]
run = ["none"]
comments = ["tests require building the example binaries"]
[package]
cargo-install-bin = false
[requires]
test = ["/usr/bin/python"]

Loading…
Cancel
Save