Compare commits

..

No commits in common. "1138b6250fc8c55f1cffac81e61089ff8c00f5d1" and "9ca9b9873a30923615a2aabaf59b70112a80bd46" have entirely different histories.

3 changed files with 28 additions and 32 deletions

View File

@ -1,14 +0,0 @@
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,20 +8,33 @@ functionalities.
Name: python-inotify
Version: 0.9.6
Release: 19
Release: 16
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}
@ -36,11 +49,14 @@ 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
@ -48,7 +64,17 @@ 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)
@ -65,18 +91,6 @@ mv %{buildroot}%{_bindir}/%{_name} %{buildroot}%{_bindir}/python3-%{_name}
%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

View File

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