9 Star 0 Fork 5

src-openEuler/python-inotify

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
python-inotify.spec 2.50 KB
一键复制 编辑 原始数据 按行查看 历史
wuzx 提交于 3年前 . Add sw64 architecture
%global _name pyinotify
%global _description Pyinotify is a Python module for monitoring filesystems changes. \
Pyinotify relies on a Linux Kernel feature (merged in kernel 2.6.13) called inotify. \
inotify is an event-driven notifier, its notifications are exported from kernel space \
to user space through three system calls. pyinotify binds these system calls and provides \
an implementation on top of them offering a generic and abstract way to manipulate those \
functionalities.
Name: python-inotify
Version: 0.9.6
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 python3-inotify
Summary: python3 edition of %{name}
BuildRequires: python3-devel
%{?python_provide:%python_provide python3-inotify}
%description -n python3-inotify
This package is the python3 edition of %{name}.
%package_help
%prep
%autosetup -n %{_name}-%{version} -p1
sed -i '1c#! %{__python3}' python3/pyinotify.py
sed -i '1c#! %{__python3}' python3/examples/*py
cp -a . $RPM_BUILD_DIR/python3-%{_name}-%{version}
%build
cd $RPM_BUILD_DIR/python3-%{_name}-%{version}
%py3_build
%install
cd $RPM_BUILD_DIR/python3-%{_name}-%{version}
%py3_install
mv %{buildroot}%{_bindir}/%{_name} %{buildroot}%{_bindir}/python3-%{_name}
%files -n python3-inotify
%defattr(-,root,root)
%doc ACKS
%license COPYING
%doc python3/examples/*
%{_bindir}/*3-%{_name}
%{python3_sitelib}/*.py*
%{python3_sitelib}/%{_name}*info/
%{python3_sitelib}/__pycache__/*.pyc
%files help
%defattr(-,root,root)
%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
- SUG:NA
- DESC:delete unneeded comments
* Fri Sep 27 2019 shenyangyang<shenyangyang4@huawei.com> - 0.9.6-15
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:move license file
* Thu Sep 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.9.6-14
- Package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/python-inotify.git
git@gitee.com:src-openeuler/python-inotify.git
src-openeuler
python-inotify
python-inotify
openEuler-22.03-LTS

搜索帮助