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-fourcc] epel10: Initial import; Fixes: RHBZ#2224810
Date: Fri, 25 Sep 2026 10:32:45 GMT	[thread overview]
Message-ID: <179033236529.1.14929423475631951920.rpms-rust-drm-fourcc-cfb377fa5f8f@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rust-drm-fourcc
Branch : epel10
Commit : cfb377fa5f8fc1dc719d1c708e63e9abb86e84a1
Author : Davide Cavalca <dcavalca@fedoraproject.org>
Date   : 2023-07-23T07:45:17-07:00
Stats  : +186/-0 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-drm-fourcc/c/cfb377fa5f8fc1dc719d1c708e63e9abb86e84a1?branch=epel10

Log:
Initial import; Fixes: RHBZ#2224810

---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..1660c8a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/drm-fourcc-2.2.0.crate

diff --git a/21.patch b/21.patch
new file mode 100644
index 0000000..92c1c71
--- /dev/null
+++ b/21.patch
@@ -0,0 +1,39 @@
+From bb1b81f184650e1418e1dce512e34071675206d7 Mon Sep 17 00:00:00 2001
+From: Davide Cavalca <dcavalca@fedoraproject.org>
+Date: Sat, 22 Jul 2023 21:28:32 -0700
+Subject: [PATCH] Add license text
+
+---
+ LICENSE | 23 +++++++++++++++++++++++
+ 1 file changed, 23 insertions(+)
+ create mode 100644 LICENSE
+
+diff --git a/LICENSE b/LICENSE
+new file mode 100644
+index 0000000..31aa793
+--- /dev/null
++++ b/LICENSE
+@@ -0,0 +1,23 @@
++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-fourcc-fix-metadata.diff b/drm-fourcc-fix-metadata.diff
new file mode 100644
index 0000000..07f8ac8
--- /dev/null
+++ b/drm-fourcc-fix-metadata.diff
@@ -0,0 +1,11 @@
+--- drm-fourcc-2.2.0/Cargo.toml	1970-01-01T00:00:01+00:00
++++ drm-fourcc-2.2.0/Cargo.toml	2023-07-23T04:32:38.521449+00:00
+@@ -25,7 +25,7 @@
+ features = ["derive"]
+ optional = true
+ [build-dependencies.bindgen]
+-version = "0.57.0"
++version = "0.63"
+ optional = true
+ 
+ [build-dependencies.regex]

diff --git a/rust-drm-fourcc.spec b/rust-drm-fourcc.spec
new file mode 100644
index 0000000..b18b375
--- /dev/null
+++ b/rust-drm-fourcc.spec
@@ -0,0 +1,134 @@
+# Generated by rust2rpm 24
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate drm-fourcc
+
+Name:           rust-drm-fourcc
+Version:        2.2.0
+Release:        %autorelease
+Summary:        Enum with every valid Direct Rendering Manager (DRM) format fourcc
+
+License:        MIT
+URL:            https://crates.io/crates/drm-fourcc
+Source:         %{crates_source}
+# Manually created patch for downstream crate metadata changes
+# * bump bindgen to 0.63
+Patch:          drm-fourcc-fix-metadata.diff
+# Add license text
+Patch:          https://github.com/danielzfranklin/drm-fourcc-rs/pull/21.patch
+
+BuildRequires:  rust-packaging >= 21
+
+%global _description %{expand:
+Provides an enum with every valid Direct Rendering Manager (DRM) format
+fourcc.}
+
+%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}+bindgen-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+bindgen-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "bindgen" feature of the "%{crate}" crate.
+
+%files       -n %{name}+bindgen-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package     -n %{name}+build_bindings-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+build_bindings-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "build_bindings" feature of the "%{crate}" crate.
+
+%files       -n %{name}+build_bindings-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package     -n %{name}+regex-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+regex-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "regex" feature of the "%{crate}" crate.
+
+%files       -n %{name}+regex-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package     -n %{name}+serde-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+serde-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "serde" feature of the "%{crate}" crate.
+
+%files       -n %{name}+serde-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package     -n %{name}+std-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+std-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "std" feature of the "%{crate}" crate.
+
+%files       -n %{name}+std-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

diff --git a/sources b/sources
new file mode 100644
index 0000000..6fdedda
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (drm-fourcc-2.2.0.crate) = a63d4ee86a3e0940682516377ad857e5d96bba19338f18072fd3a9ba99a77700d932cfc00212ec26eda560bcdfb2e3a85cc22d55f99aa9f53d017f17782fcd4a

                 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=179033236529.1.14929423475631951920.rpms-rust-drm-fourcc-cfb377fa5f8f@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