summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-10-22 09:28:27 +0000
committerCoprDistGit <infra@openeuler.org>2026-10-22 09:28:27 +0000
commitf3ebddd1713b501ccf12477b846fecb60948e277 (patch)
treea0da759e1f1b1801253eabbe46742af4f56061ed
parent51f32f2c0f31403b8500d76a51a39465c8d91675 (diff)
automatic import of ros-humble-cwiid
-rw-r--r--ros-humble-cwiid.spec15
1 files changed, 13 insertions, 2 deletions
diff --git a/ros-humble-cwiid.spec b/ros-humble-cwiid.spec
index 75e7d01..a557c22 100644
--- a/ros-humble-cwiid.spec
+++ b/ros-humble-cwiid.spec
@@ -6,7 +6,7 @@
Name: ros-humble-cwiid
Version: 0.6.00
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: CWiid Wiimote Interface — libcwiid and tools (wmgui/wminput/lswm)
License: GPLv2
@@ -58,8 +58,14 @@ Requires: bluetooth-devel
Header files, static library, development symlink and pkg-config file
for %{name}.
+# 用 %setup + 显式 %patch -p1 替代 %autosetup:本 chroot 的 rpm 中
+# %autosetup 展开后调用 patch 不带 -p 参数(-p0),对 git diff 多层路径
+# (a/wmgui/main.c)报 "No file to patch";单层路径(a/defs.mak.in)靠
+# patch 智能重试偶然成功。显式 -p1 剥掉 a//b/ 前缀,两层 patch 均可靠应用。
%prep
-%autosetup -n %{name}-%{version}
+%setup -n %{name}-%{version}
+%patch0 -p1
+%patch1 -p1
%build
# 源码仅含 configure.ac,需先生成 configure 脚本
@@ -94,6 +100,11 @@ autoreconf -if
%{_libdir}/pkgconfig/cwiid.pc
%changelog
+* Thu Oct 22 2026 openEuler Builder <builder@openeuler.org> - 0.6.00-4
+- Fix Patch1 apply failure ("No file to patch"): replace %autosetup with
+ explicit %setup + %patch -p1; this chroot's rpm expands %autosetup to
+ patch without -p, which fails on multi-path git diffs (a/wmgui/main.c).
+
* Thu Oct 22 2026 openEuler Builder <builder@openeuler.org> - 0.6.00-3
- Fix -Werror=format-security in wmgui/main.c: use "%s" format literal for gtk_message_dialog_new.