Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
1138b6250f
!9 [sync] PR-8: 添加sw架构
From: @openeuler-sync-bot 
Reviewed-by: @gaoruoshu 
Signed-off-by: @gaoruoshu
2022-11-25 07:45:23 +00:00
wzx
e4284b037e Add sw64 architecture
Signed-off-by: wzx <wuzx1226@qq.com>
(cherry picked from commit 31aca99d0117a20d78702532044f8eb75ff2086b)
2022-11-18 14:59:34 +08:00
openeuler-ci-bot
fb32d00d33
!4 【轻量级 PR】:Rebuild for next release
From: @zhangruifang2020 
Reviewed-by: @xiezhipeng1 
Signed-off-by: @xiezhipeng1
2022-10-25 08:11:57 +00:00
张瑞方
556cb96e5a
Rebuild for next release
Signed-off-by: 张瑞方 <xdzhangruifang@163.com>
2022-10-25 07:30:36 +00:00
openeuler-ci-bot
bea219cb26 !2 delete python2.
From: @weiwei_150212
Reviewed-by: @xiezhipeng1
Signed-off-by: @xiezhipeng1
2020-10-30 19:45:21 +08:00
s17723959267
a33e6d0ddf delete python2 2020-10-29 11:16:01 +08:00
openeuler-ci-bot
635e5bcce5 !1 add yaml file in package
Merge pull request !1 from Markeryang/master
2020-06-28 16:54:48 +08:00
Markeryang
2589bb93c1 删除文件 python-inotify 2020-06-12 21:08:02 +08:00
Markeryang
babd246630 add python-inotify.yaml. 2020-06-12 21:07:46 +08:00
Markeryang
32db3ec46b add python-inotify. 2020-06-12 21:06:47 +08:00
3 changed files with 32 additions and 28 deletions

14
pyinotify-0.9.6-sw.patch Executable file
View File

@ -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

View File

@ -8,33 +8,20 @@ functionalities.
Name: python-inotify
Version: 0.9.6
Release: 16
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
%description
%{_description}
%package -n python2-inotify
Summary: python2 edition of %{name}
BuildRequires: python2-devel
Provides: python2-inotify-examples
Obsoletes: python2-inotify-examples
%{?python_provide:%python_provide python2-inotify}
%description -n python2-inotify
This package is the python2 edition of %{name}.
%package -n python3-inotify
Summary: python3 edition of %{name}
@ -49,14 +36,11 @@ This package is the python3 edition of %{name}.
%prep
%autosetup -n %{_name}-%{version} -p1
sed -i '1c#! %{__python2}' python2/pyinotify.py
sed -i '1c#! %{__python3}' python3/pyinotify.py
sed -i '1c#! %{__python2}' python2/examples/*py
sed -i '1c#! %{__python3}' python3/examples/*py
cp -a . $RPM_BUILD_DIR/python3-%{_name}-%{version}
%build
%py2_build
cd $RPM_BUILD_DIR/python3-%{_name}-%{version}
%py3_build
@ -64,17 +48,7 @@ cd $RPM_BUILD_DIR/python3-%{_name}-%{version}
cd $RPM_BUILD_DIR/python3-%{_name}-%{version}
%py3_install
mv %{buildroot}%{_bindir}/%{_name} %{buildroot}%{_bindir}/python3-%{_name}
cd -
%py2_install
%files -n python2-inotify
%defattr(-,root,root)
%doc ACKS
%license COPYING
%doc python2/examples/*
%{_bindir}/%{_name}
%{python2_sitelib}/*.py*
%{python2_sitelib}/%{_name}*info/
%files -n python3-inotify
%defattr(-,root,root)
@ -91,6 +65,18 @@ cd -
%doc README.md PKG-INFO
%changelog
* Wed Oct 26 2022 wuzx<wuzx1226@qq.com> - 0.9.6-19
- Add sw64 architecture
* Tue Oct 25 2022 zhangruifang <zhangruifang1@h-partners.com> - 0.9.6-18
- Rebuild for next release
* Thu Oct 29 2020 tianwei <tianwei12@huawei.com> - 0.9.6-17
- Type:NA
- ID:NA
- SUG:NA
- DESC:delete python2 require
* Mon Dec 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.9.6-16
- Type:NA
- ID:NA

4
python-inotify.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: seb-m/pyinotify
tag_prefix: ^
seperator: .