diff --git a/.cvsignore b/.cvsignore index e69de29..1df66cc 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +pyinotify-0.7.0.tar.bz2 diff --git a/python-inotify.spec b/python-inotify.spec new file mode 100644 index 0000000..89167d3 --- /dev/null +++ b/python-inotify.spec @@ -0,0 +1,60 @@ +%{!?python_sitelib_platform: %define python_sitelib_platform %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +%define oname pyinotify + +Summary: Monitor filesystem events with Python under Linux +Name: python-inotify +Version: 0.7.0 +Release: 1%{?dist} +License: GPL +Group: Development/Libraries +URL: http://pyinotify.sourceforge.net/ +Source0: http://downloads.sourceforge.net/%{oname}/%{oname}-%{version}.tar.bz2 +BuildRequires: python-devel +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +%description +This is a Python module for watching filesystems changes. pyinotify +can be used for various 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. + +%package examples +Summary: Examples for Python inotify module +Group: Development/Libraries +Requires: python-inotify = %{version}-%{release} + +%description examples +This package includes some examples usage of the Python inotify module, +extensive documentation is also included. + +%prep +%setup -q -n %{oname}-%{version} + +%build +CFLAGS="%{optflags}" %{__python} setup.py build + +%install +%{__rm} -rf %{buildroot} +%{__python} setup.py install -O1 --skip-build --root %{buildroot} +%{__install} -d %{buildroot}%{_datadir}/%{name} +%{__cp} -a src/examples %{buildroot}%{_datadir}/%{name} + +%clean +%{__rm} -rf %{buildroot} + +%files +%defattr(-, root, root, -) +%doc AUTHORS COPYING ChangeLog README TODO +%{python_sitelib_platform}/%{oname}.pth +%{python_sitelib_platform}/%{oname} + +%files examples +%doc doc/* +%{_datadir}/%{name} + +%changelog +* Tue Mar 6 2007 Terje Rosten - 0.7.0-1 +- Initial build + diff --git a/sources b/sources index e69de29..4c1a235 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +159ba32d41c087d98da6248890958ba0 pyinotify-0.7.0.tar.bz2