public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-drm] epel10: Drop outdated, examples-only rustyline dev-dependency
@ 2026-09-25 10:35 Fabio Valentini
  0 siblings, 0 replies; only message in thread
From: Fabio Valentini @ 2026-09-25 10:35 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rust-drm
Branch : epel10
Commit : 57f58636e015df4b66382b86cf5afa3ab5f2a4d9
Author : Fabio Valentini <decathorpe@gmail.com>
Date   : 2023-10-22T15:33:55+02:00
Stats  : +20/-7 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-drm/c/57f58636e015df4b66382b86cf5afa3ab5f2a4d9?branch=epel10

Log:
Drop outdated, examples-only rustyline dev-dependency

---
diff --git a/README.md b/README.md
deleted file mode 100644
index 6aa3eb7..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-drm
-
-The rust-drm package

diff --git a/drm-fix-metadata.diff b/drm-fix-metadata.diff
new file mode 100644
index 0000000..76514bd
--- /dev/null
+++ b/drm-fix-metadata.diff
@@ -0,0 +1,11 @@
+--- drm-0.9.0/Cargo.toml	1970-01-01T00:00:01+00:00
++++ drm-0.9.0/Cargo.toml	2023-10-22T13:21:13.789238+00:00
+@@ -52,8 +52,5 @@
+ features = ["png"]
+ default-features = false
+ 
+-[dev-dependencies.rustyline]
+-version = "^8.0.0"
+-
+ [features]
+ use_bindgen = ["drm-ffi/use_bindgen"]

diff --git a/rust-drm.spec b/rust-drm.spec
index 1e592a3..709cb8c 100644
--- a/rust-drm.spec
+++ b/rust-drm.spec
@@ -1,4 +1,4 @@
-# Generated by rust2rpm 24
+# Generated by rust2rpm 25
 %bcond_without check
 %global debug_package %{nil}
 
@@ -12,12 +12,15 @@ Summary:        Safe, low-level bindings to the Direct Rendering Manager API
 License:        MIT
 URL:            https://crates.io/crates/drm
 Source:         %{crates_source}
-
-BuildRequires:  rust-packaging >= 21
+# Manually created patch for downstream crate metadata changes
+# * drop example-only rustyline dev-dependency
+Patch:          drm-fix-metadata.diff
 
 # No prebuilt bindings for target architecture
 ExcludeArch:    ppc64le s390x
 
+BuildRequires:  cargo-rpm-macros >= 24
+
 %global _description %{expand:
 Safe, low-level bindings to the Direct Rendering Manager API.}
 
@@ -62,8 +65,10 @@ use the "use_bindgen" 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 examples with outdated dependencies
+rm -rf examples/
 
 %generate_buildrequires
 %cargo_generate_buildrequires

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-25 10:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-25 10:35 [rpms/rust-drm] epel10: Drop outdated, examples-only rustyline dev-dependency Fabio Valentini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox