# # spec file for package python-pyinotify (Version 0.6.2) # # Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: python-pyinotify BuildRequires: python-devel Url: http://pyinotify.sourceforge.net/ License: GPLv2 Group: Productivity/System Autoreqprov: on Version: 0.7.1 Release: 1 Summary: Python module for watching filesystems changes Source: http://www.pyinotify.org/kits/stable/pyinotify-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build %{py_requires} %description pyinotify is a Python module for watching filesystems changes. By its design pyinotify can be used for any kind of fs monitoring. pyinotify relies on a recent 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. The raw interface of inotify is compounded of three system calls. pyinotify binds these system calls and provides an implementation on top of them offering a generic and abstract way to use inotify with Python. Pyinotify doesn't requires much detailed knowledge of inotify. Moreover, it only needs few statements for initializing, watching, handling (eventually trough a new separate thread), and processing events notifications through subclassing. The only things to know is the path of items to watch, the kind of events to monitor and the actions to execute on these notifications. Note: pyinotify requires Python 2.3 and above, and Linux 2.6.13 at least. Authors: -------- %prep %setup -n pyinotify-%{version} %build export CFLAGS="$RPM_OPT_FLAGS" python setup.py build %install python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES chmod 644 src/{examples,tests}/*.py %clean rm -rf $RPM_BUILD_ROOT %files -f INSTALLED_FILES %defattr(-,root,root) %doc AUTHORS ChangeLog COPYING MANIFEST.in NEWS PKG-INFO README TODO %doc doc %doc src/examples %doc src/tests %changelog -n python-pyinotify * Fri Jan 19 2007 - judas_iscariote@shorewall.net - update to 0.6.3 * Fri Sep 15 2006 - poeml@suse.de - create package (version 0.6.2)