auto-import python-inotify-0.7.0-1.fc6 on branch devel from
python-inotify-0.7.0-1.fc6.src.rpm
This commit is contained in:
parent
436568d60f
commit
4845fa80a6
@ -0,0 +1 @@
|
||||
pyinotify-0.7.0.tar.bz2
|
60
python-inotify.spec
Normal file
60
python-inotify.spec
Normal file
@ -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 <terjeros@phys.ntn.no> - 0.7.0-1
|
||||
- Initial build
|
||||
|
Loading…
Reference in New Issue
Block a user