Compare commits
10 Commits
9ca9b9873a
...
1138b6250f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1138b6250f | ||
|
|
e4284b037e | ||
|
|
fb32d00d33 | ||
|
|
556cb96e5a | ||
|
|
bea219cb26 | ||
|
|
a33e6d0ddf | ||
|
|
635e5bcce5 | ||
|
|
2589bb93c1 | ||
|
|
babd246630 | ||
|
|
32db3ec46b |
14
pyinotify-0.9.6-sw.patch
Executable file
14
pyinotify-0.9.6-sw.patch
Executable 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
|
||||||
@ -8,33 +8,20 @@ functionalities.
|
|||||||
|
|
||||||
Name: python-inotify
|
Name: python-inotify
|
||||||
Version: 0.9.6
|
Version: 0.9.6
|
||||||
Release: 16
|
Release: 19
|
||||||
Summary: A Python module for monitoring filesystems changes
|
Summary: A Python module for monitoring filesystems changes
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/seb-m/pyinotify
|
URL: https://github.com/seb-m/pyinotify
|
||||||
Source0: https://github.com/seb-m/pyinotify/archive/%{version}.tar.gz#/%{_name}-%{version}.tar.gz
|
Source0: https://github.com/seb-m/pyinotify/archive/%{version}.tar.gz#/%{_name}-%{version}.tar.gz
|
||||||
|
|
||||||
Patch0: pyinotify-0.9.6-epoint.patch
|
Patch0: pyinotify-0.9.6-epoint.patch
|
||||||
|
Patch1: pyinotify-0.9.6-sw.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: gmp-devel
|
BuildRequires: gmp-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{_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
|
%package -n python3-inotify
|
||||||
Summary: python3 edition of %{name}
|
Summary: python3 edition of %{name}
|
||||||
|
|
||||||
@ -49,14 +36,11 @@ This package is the python3 edition of %{name}.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{_name}-%{version} -p1
|
%autosetup -n %{_name}-%{version} -p1
|
||||||
sed -i '1c#! %{__python2}' python2/pyinotify.py
|
|
||||||
sed -i '1c#! %{__python3}' python3/pyinotify.py
|
sed -i '1c#! %{__python3}' python3/pyinotify.py
|
||||||
sed -i '1c#! %{__python2}' python2/examples/*py
|
|
||||||
sed -i '1c#! %{__python3}' python3/examples/*py
|
sed -i '1c#! %{__python3}' python3/examples/*py
|
||||||
cp -a . $RPM_BUILD_DIR/python3-%{_name}-%{version}
|
cp -a . $RPM_BUILD_DIR/python3-%{_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
|
||||||
cd $RPM_BUILD_DIR/python3-%{_name}-%{version}
|
cd $RPM_BUILD_DIR/python3-%{_name}-%{version}
|
||||||
%py3_build
|
%py3_build
|
||||||
|
|
||||||
@ -64,17 +48,7 @@ cd $RPM_BUILD_DIR/python3-%{_name}-%{version}
|
|||||||
cd $RPM_BUILD_DIR/python3-%{_name}-%{version}
|
cd $RPM_BUILD_DIR/python3-%{_name}-%{version}
|
||||||
%py3_install
|
%py3_install
|
||||||
mv %{buildroot}%{_bindir}/%{_name} %{buildroot}%{_bindir}/python3-%{_name}
|
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
|
%files -n python3-inotify
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -91,6 +65,18 @@ cd -
|
|||||||
%doc README.md PKG-INFO
|
%doc README.md PKG-INFO
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Dec 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.9.6-16
|
||||||
- Type:NA
|
- Type:NA
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
4
python-inotify.yaml
Normal file
4
python-inotify.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: seb-m/pyinotify
|
||||||
|
tag_prefix: ^
|
||||||
|
seperator: .
|
||||||
Loading…
x
Reference in New Issue
Block a user