public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-input] epel10: Initial import; Fixes: RHBZ#2224961
@ 2026-09-25 10:35 Davide Cavalca
  0 siblings, 0 replies; only message in thread
From: Davide Cavalca @ 2026-09-25 10:35 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rust-input
Branch : epel10
Commit : 10c5bae7b393f96d32248c6cc2dbaffa6d4b821e
Author : Davide Cavalca <davide@cavalca.name>
Date   : 2023-07-29T16:20:05-07:00
Stats  : +128/-0 in 5 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-input/c/10c5bae7b393f96d32248c6cc2dbaffa6d4b821e?branch=epel10

Log:
Initial import; Fixes: RHBZ#2224961

---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..2b2a603
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/input-0.8.3.crate

diff --git a/input-fix-metadata.diff b/input-fix-metadata.diff
new file mode 100644
index 0000000..817a57a
--- /dev/null
+++ b/input-fix-metadata.diff
@@ -0,0 +1,11 @@
+--- input-0.8.3/Cargo.toml	1970-01-01T00:00:01+00:00
++++ input-0.8.3/Cargo.toml	2023-07-26T23:44:05.268981+00:00
+@@ -59,7 +59,7 @@
+ default = [
+     "udev",
+     "log",
+-    "libinput_1_21",
++    "gen",
+ ]
+ gen = ["input-sys/gen"]
+ libinput_1_11 = ["input-sys/libinput_1_11"]

diff --git a/rust-input.spec b/rust-input.spec
new file mode 100644
index 0000000..ec3e161
--- /dev/null
+++ b/rust-input.spec
@@ -0,0 +1,108 @@
+# Generated by rust2rpm 24
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate input
+
+Name:           rust-input
+Version:        0.8.3
+Release:        %autorelease
+Summary:        Libinput bindings for rust
+
+License:        MIT
+URL:            https://crates.io/crates/input
+Source:         %{crates_source}
+# Manually created patch for downstream crate metadata changes
+# * default to gen feature
+Patch:          input-fix-metadata.diff
+
+BuildRequires:  rust-packaging >= 21
+
+%global _description %{expand:
+Libinput bindings for rust.}
+
+%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}/CHANGELOG.md
+%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}+gen-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+gen-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "gen" feature of the "%{crate}" crate.
+
+%files       -n %{name}+gen-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package     -n %{name}+log-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+log-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "log" feature of the "%{crate}" crate.
+
+%files       -n %{name}+log-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package     -n %{name}+udev-devel
+Summary:        %{summary}
+BuildArch:      noarch
+
+%description -n %{name}+udev-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "udev" feature of the "%{crate}" crate.
+
+%files       -n %{name}+udev-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/rust2rpm.conf b/rust2rpm.conf
new file mode 100644
index 0000000..795c817
--- /dev/null
+++ b/rust2rpm.conf
@@ -0,0 +1,7 @@
+[DEFAULT]
+unwanted-features =
+  libinput_1_11
+  libinput_1_14
+  libinput_1_15
+  libinput_1_19
+  libinput_1_21

diff --git a/sources b/sources
new file mode 100644
index 0000000..4ea33c1
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (input-0.8.3.crate) = 35d4031eb755614b8531d557b2ed316de5e4bc6e8fb830de13f09050ffeafb5df80100c4596afcbebcc96e07e52e203e43a792e954f543b67482530f7472dd32

^ 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-input] epel10: Initial import; Fixes: RHBZ#2224961 Davide Cavalca

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