Drop unused example programs and drop example-specific dependencies

epel10 imports/epel10/rust-y4m-0.8.0-5.el10
Fabio Valentini 3 months ago
parent 17670b2e9f
commit 8772faf0b6
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

@ -1,4 +1,4 @@
# Generated by rust2rpm 24
# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}
@ -12,8 +12,11 @@ Summary: YUV4MPEG2 (.y4m) Encoder/Decoder
License: MIT
URL: https://crates.io/crates/y4m
Source: %{crates_source}
# Manually created patch for downstream crate metadata changes
# * drop outdated, example-only resize dev-dependency
Patch: y4m-fix-metadata.diff
BuildRequires: rust-packaging >= 21
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
YUV4MPEG2 (.y4m) Encoder/Decoder.}
@ -47,8 +50,10 @@ use the "default" feature of the "%{crate}" crate.
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
# drop unused example programs
rm -rv examples/
%generate_buildrequires
%cargo_generate_buildrequires

@ -0,0 +1,11 @@
[package]
cargo-toml-patch-comments = [
"drop outdated, example-only resize dev-dependency",
]
[scripts]
prep.post = [
"# drop unused example programs",
"rm -rv examples/",
]

@ -0,0 +1,9 @@
--- y4m-0.8.0/Cargo.toml 1970-01-01T00:00:01+00:00
+++ y4m-0.8.0/Cargo.toml 2024-10-01T19:09:44.116367+00:00
@@ -26,6 +26,3 @@
]
license = "MIT"
repository = "https://github.com/image-rs/y4m.git"
-
-[dev-dependencies.resize]
-version = "0.4"
Loading…
Cancel
Save