From 31aca99d0117a20d78702532044f8eb75ff2086b Mon Sep 17 00:00:00 2001 From: wzx Date: Wed, 26 Oct 2022 15:41:48 +0800 Subject: [PATCH] Add sw64 architecture Signed-off-by: wzx --- pyinotify-0.9.6-sw.patch | 14 ++++++++++++++ python-inotify.spec | 6 +++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100755 pyinotify-0.9.6-sw.patch diff --git a/pyinotify-0.9.6-sw.patch b/pyinotify-0.9.6-sw.patch new file mode 100755 index 0000000..b8e1f46 --- /dev/null +++ b/pyinotify-0.9.6-sw.patch @@ -0,0 +1,14 @@ +diff -Naur pyinotify-0.9.6.org/common/inotify_syscalls.c pyinotify-0.9.6.sw/common/inotify_syscalls.c +--- pyinotify-0.9.6.org/common/inotify_syscalls.c 2022-02-26 08:07:47.680000000 +0000 ++++ pyinotify-0.9.6.sw/common/inotify_syscalls.c 2022-02-26 08:10:17.730000000 +0000 +@@ -52,6 +52,10 @@ + # define __NR_inotify_init 444 + # define __NR_inotify_add_watch 445 + # define __NR_inotify_rm_watch 446 ++# elif defined (__sw_64__) ++# define __NR_inotify_init 444 ++# define __NR_inotify_add_watch 445 ++# define __NR_inotify_rm_watch 446 + # elif defined (__sparc__) || defined (__sparc64__) + # define __NR_inotify_init 151 + # define __NR_inotify_add_watch 152 diff --git a/python-inotify.spec b/python-inotify.spec index 6b8fbb8..a55e90a 100644 --- a/python-inotify.spec +++ b/python-inotify.spec @@ -8,13 +8,14 @@ functionalities. Name: python-inotify Version: 0.9.6 -Release: 18 +Release: 19 Summary: A Python module for monitoring filesystems changes License: MIT URL: https://github.com/seb-m/pyinotify Source0: https://github.com/seb-m/pyinotify/archive/%{version}.tar.gz#/%{_name}-%{version}.tar.gz Patch0: pyinotify-0.9.6-epoint.patch +Patch1: pyinotify-0.9.6-sw.patch BuildArch: noarch BuildRequires: gmp-devel @@ -64,6 +65,9 @@ mv %{buildroot}%{_bindir}/%{_name} %{buildroot}%{_bindir}/python3-%{_name} %doc README.md PKG-INFO %changelog +* Wed Oct 26 2022 wuzx - 0.9.6-19 +- Add sw64 architecture + * Tue Oct 25 2022 zhangruifang - 0.9.6-18 - Rebuild for next release -- Gitee