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-input-sys] epel10: Initial import; Fixes: RHBZ#2224960
Date: Fri, 25 Sep 2026 10:34:32 GMT [thread overview]
Message-ID: <179033247217.1.3454668368895193363.rpms-rust-input-sys-1d301d44937b@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rust-input-sys
Branch : epel10
Commit : 1d301d44937b8482e12a4e88c79d83a3d83b150a
Author : Davide Cavalca <dcavalca@fedoraproject.org>
Date : 2023-07-27T09:19:32-07:00
Stats : +168/-0 in 6 file(s)
URL : https://src.fedoraproject.org/rpms/rust-input-sys/c/1d301d44937b8482e12a4e88c79d83a3d83b150a?branch=epel10
Log:
Initial import; Fixes: RHBZ#2224960
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..36e3c0c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/input-sys-1.17.0.crate
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..286a2a3
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2017 Victor Brekenfeld
+
+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/input-sys-fix-metadata.diff b/input-sys-fix-metadata.diff
new file mode 100644
index 0000000..8a66834
--- /dev/null
+++ b/input-sys-fix-metadata.diff
@@ -0,0 +1,16 @@
+--- input-sys-1.17.0/Cargo.toml 1970-01-01T00:00:01+00:00
++++ input-sys-1.17.0/Cargo.toml 2023-07-26T23:38:19.039062+00:00
+@@ -33,11 +33,11 @@
+ version = "0.2"
+
+ [build-dependencies.bindgen]
+-version = "0.57"
++version = "0.63"
+ optional = true
+
+ [features]
+-default = ["libinput_1_21"]
++default = ["gen"]
+ gen = ["bindgen"]
+ libinput_1_11 = []
+ libinput_1_14 = []
diff --git a/rust-input-sys.spec b/rust-input-sys.spec
new file mode 100644
index 0000000..c9fcea7
--- /dev/null
+++ b/rust-input-sys.spec
@@ -0,0 +1,116 @@
+# Generated by rust2rpm 24
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate input-sys
+
+Name: rust-input-sys
+Version: 1.17.0
+Release: %autorelease
+Summary: Bindgen generated unsafe libinput wrapper
+
+License: MIT
+URL: https://crates.io/crates/input-sys
+Source: %{crates_source}
+# https://github.com/Smithay/input.rs/pull/56
+Source: https://github.com/Smithay/input.rs/raw/v0.8.3/LICENSE
+# Manually created patch for downstream crate metadata changes
+# * bump bindgen to 0.63: https://github.com/Smithay/input.rs/pull/57
+# * default to gen feature
+Patch: input-sys-fix-metadata.diff
+
+BuildRequires: rust-packaging >= 21
+BuildRequires: sed
+
+%global _description %{expand:
+Bindgen generated unsafe libinput wrapper.}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+Requires: pkgconfig(libinput)
+Requires: pkgconfig(libudev)
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "%{crate}" crate.
+
+%files devel
+%license %{crate_instdir}/LICENSE
+%{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}+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}+update_bindings-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+update_bindings-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "update_bindings" feature of the "%{crate}" crate.
+
+%files -n %{name}+update_bindings-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+cp -p %SOURCE1 .
+sed -i 's/whitelist/allowlist/g' build.rs
+%cargo_prep
+
+%generate_buildrequires
+%cargo_generate_buildrequires
+echo 'pkgconfig(libinput)'
+echo 'pkgconfig(libudev)'
+
+%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..d5b2651
--- /dev/null
+++ b/rust2rpm.conf
@@ -0,0 +1,13 @@
+[DEFAULT]
+buildrequires =
+ pkgconfig(libinput)
+ pkgconfig(libudev)
+lib.requires =
+ pkgconfig(libinput)
+ pkgconfig(libudev)
+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..1f43552
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (input-sys-1.17.0.crate) = 5c98527c89a38b3cc3284afefdef4c47a6c1709968eb65af4108d4ab8a8f1814e9a82d8541b1bb8866e5ecf88ac39eb2038734eea07f361386ca9a03c70b6336
reply other threads:[~2026-09-25 10:34 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=179033247217.1.3454668368895193363.rpms-rust-input-sys-1d301d44937b@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