public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Davide Cavalca <dcavalca@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-drm-sys] epel10: Update to 0.6.1; Fixes: RHBZ#2240196
Date: Fri, 25 Sep 2026 10:32:50 GMT	[thread overview]
Message-ID: <179033237005.1.15353641122479569873.rpms-rust-drm-sys-d5137fd7d28d@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rust-drm-sys
Branch : epel10
Commit : d5137fd7d28dd1e2add93a8eb3e98dbdb2dae398
Author : Davide Cavalca <dcavalca@fedoraproject.org>
Date   : 2024-01-17T20:57:03-08:00
Stats  : +51/-34 in 7 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-drm-sys/c/d5137fd7d28dd1e2add93a8eb3e98dbdb2dae398?branch=epel10

Log:
Update to 0.6.1; Fixes: RHBZ#2240196

---
diff --git a/.gitignore b/.gitignore
index 963e038..16a1d3a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /drm-sys-0.4.0.crate
+/drm-sys-0.6.1.crate

diff --git a/LICENSE b/LICENSE
deleted file mode 100644
index 31aa793..0000000
--- a/LICENSE
+++ /dev/null
@@ -1,23 +0,0 @@
-Permission is hereby granted, free of charge, to any
-person obtaining a copy of this software and associated
-documentation files (the "Software"), to deal in the
-Software without restriction, including without
-limitation the rights to use, copy, modify, merge,
-publish, distribute, sublicense, and/or sell copies of
-the Software, and to permit persons to whom the Software
-is furnished to do so, subject to the following
-conditions:
-
-The above copyright notice and this permission notice
-shall be included in all copies or substantial portions
-of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
-ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
-TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
-PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
-SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
-IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
-DEALINGS IN THE SOFTWARE.

diff --git a/drm-sys-fix-metadata-auto.diff b/drm-sys-fix-metadata-auto.diff
new file mode 100644
index 0000000..69b90ab
--- /dev/null
+++ b/drm-sys-fix-metadata-auto.diff
@@ -0,0 +1,8 @@
+--- drm-sys-0.6.1/Cargo.toml	1970-01-01T00:00:01+00:00
++++ drm-sys-0.6.1/Cargo.toml	2024-01-18T04:56:29.562513+00:00
+@@ -45,5 +45,3 @@
+ ]
+ default-features = false
+ 
+-[target."cfg(not(any(target_os = \"android\", target_os = \"linux\")))".dependencies.libc]
+-version = "0.2"

diff --git a/drm-sys-fix-metadata.diff b/drm-sys-fix-metadata.diff
new file mode 100644
index 0000000..7643e41
--- /dev/null
+++ b/drm-sys-fix-metadata.diff
@@ -0,0 +1,20 @@
+--- drm-sys-0.6.1/Cargo.toml	1970-01-01T00:00:01+00:00
++++ drm-sys-0.6.1/Cargo.toml	2024-01-18T04:56:42.912658+00:00
+@@ -22,7 +22,7 @@
+ repository = "https://github.com/Smithay/drm-rs"
+ 
+ [build-dependencies.bindgen]
+-version = "0.69.1"
++version = "0.68.1"
+ optional = true
+ 
+ [build-dependencies.pkg-config]
+@@ -30,7 +30,7 @@
+ optional = true
+ 
+ [features]
+-default = []
++default = ["use_bindgen"]
+ update_bindings = ["use_bindgen"]
+ use_bindgen = [
+     "bindgen",

diff --git a/rust-drm-sys.spec b/rust-drm-sys.spec
index 9ca95c2..d716592 100644
--- a/rust-drm-sys.spec
+++ b/rust-drm-sys.spec
@@ -1,24 +1,25 @@
-# Generated by rust2rpm 24
+# Generated by rust2rpm 25
 %bcond_without check
 %global debug_package %{nil}
 
 %global crate drm-sys
 
 Name:           rust-drm-sys
-Version:        0.4.0
+Version:        0.6.1
 Release:        %autorelease
 Summary:        Bindings to the Direct Rendering Manager API
 
 License:        MIT
 URL:            https://crates.io/crates/drm-sys
 Source:         %{crates_source}
-# https://github.com/Smithay/drm-rs/pull/152
-Source:         https://github.com/Smithay/drm-rs/raw/v0.9.0/LICENSE
+# Automatically generated patch to strip dependencies and normalize metadata
+Patch:          drm-sys-fix-metadata-auto.diff
+# Manually created patch for downstream crate metadata changes
+# * regenerate bindings by default
+# * temporarily downgrade bindgen to 0.68.1
+Patch:          drm-sys-fix-metadata.diff
 
-BuildRequires:  rust-packaging >= 21
-
-# No prebuilt bindings for target architecture
-ExcludeArch:    ppc64le s390x
+BuildRequires:  cargo-rpm-macros >= 24
 
 %global _description %{expand:
 Bindings to the Direct Rendering Manager API.}
@@ -28,6 +29,7 @@ Bindings to the Direct Rendering Manager API.}
 %package        devel
 Summary:        %{summary}
 BuildArch:      noarch
+Requires:       pkgconfig(libdrm)
 
 %description    devel %{_description}
 
@@ -78,6 +80,7 @@ use the "pkg-config" feature of the "%{crate}" crate.
 %package     -n %{name}+update_bindings-devel
 Summary:        %{summary}
 BuildArch:      noarch
+Requires:       pkgconfig(libdrm)
 
 %description -n %{name}+update_bindings-devel %{_description}
 
@@ -90,6 +93,7 @@ use the "update_bindings" feature of the "%{crate}" crate.
 %package     -n %{name}+use_bindgen-devel
 Summary:        %{summary}
 BuildArch:      noarch
+Requires:       pkgconfig(libdrm)
 
 %description -n %{name}+use_bindgen-devel %{_description}
 
@@ -100,12 +104,12 @@ use the "use_bindgen" feature of the "%{crate}" crate.
 %ghost %{crate_instdir}/Cargo.toml
 
 %prep
-%autosetup -n %{crate}-%{version_no_tilde} -p1
-cp -p %SOURCE1 .
+%autosetup -n %{crate}-%{version} -p1
 %cargo_prep
 
 %generate_buildrequires
 %cargo_generate_buildrequires
+echo 'pkgconfig(libdrm)'
 
 %build
 %cargo_build

diff --git a/rust2rpm.toml b/rust2rpm.toml
new file mode 100644
index 0000000..5c7d0f2
--- /dev/null
+++ b/rust2rpm.toml
@@ -0,0 +1,7 @@
+[requires]
+build = ["pkgconfig(libdrm)"]
+lib = ["pkgconfig(libdrm)"]
+
+[requires.features]
+update_bindings = ["pkgconfig(libdrm)"]
+use_bindgen = ["pkgconfig(libdrm)"]

diff --git a/sources b/sources
index 60a2bc0..718f593 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (drm-sys-0.4.0.crate) = c61b7fb0e4aa7ee2bcb40dc6a8207fa04eb081a5765d059fda4090abeca9afe4f9f1d7c56e2024f79f7c91e2223295c080e52831863c8a54eecc39083721d1fb
+SHA512 (drm-sys-0.6.1.crate) = 031d43d5dd7061aeb9b86828e7b3ec8982166765cfa7a70f7f93b974462c18606d7f2b63a8e224aec37469f6a494a42ac98f181ef0d2273744d90fc5766f353f

                 reply	other threads:[~2026-09-25 10:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179033237005.1.15353641122479569873.rpms-rust-drm-sys-d5137fd7d28d@fedoraproject.org \
    --to=dcavalca@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox