2008-06-16 11:25:16 +00:00
|
|
|
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(0)")}
|
2007-03-26 17:55:27 +00:00
|
|
|
|
2009-02-08 18:19:11 +00:00
|
|
|
%define oname pyinotify
|
|
|
|
%define git beba626
|
|
|
|
%define date 20090208
|
2007-03-26 17:55:27 +00:00
|
|
|
|
2008-06-16 11:25:16 +00:00
|
|
|
Summary: Monitor filesystem events with Python under Linux
|
|
|
|
Name: python-inotify
|
2009-02-08 18:19:11 +00:00
|
|
|
Version: 0.8.1
|
2009-02-26 21:48:33 +00:00
|
|
|
Release: 2.git%{date}%{?dist}
|
2008-06-16 11:25:16 +00:00
|
|
|
License: GPLv2
|
|
|
|
Group: Development/Libraries
|
|
|
|
URL: http://trac.dbzteam.org/pyinotify
|
2009-02-08 18:19:11 +00:00
|
|
|
# Tarball created by
|
|
|
|
# $ git clone http://git.dbzteam.org/pyinotify.git/
|
|
|
|
# $ cd pyinotify
|
|
|
|
# $ git-archive --format=tar --prefix=%{oname}-%{version}/ %{gitver} | bzip2 > %{oname}-%{version}-%{date}.tar.bz2
|
|
|
|
Source0: %{oname}-%{version}-%{date}.tar.bz2
|
2008-06-22 20:41:18 +00:00
|
|
|
Source1: %{oname}
|
2007-03-26 17:55:27 +00:00
|
|
|
BuildRequires: python-devel
|
2008-06-16 11:25:16 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2007-03-26 17:55:27 +00:00
|
|
|
|
|
|
|
%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
|
2008-06-16 11:25:16 +00:00
|
|
|
Summary: Examples for Python inotify module
|
|
|
|
Group: Development/Libraries
|
2007-03-26 17:55:27 +00:00
|
|
|
Requires: python-inotify = %{version}-%{release}
|
|
|
|
|
|
|
|
%description examples
|
|
|
|
This package includes some examples usage of the Python inotify module,
|
|
|
|
extensive documentation is also included.
|
|
|
|
|
|
|
|
%prep
|
2009-02-08 18:19:11 +00:00
|
|
|
%setup -q -n %{oname}-%{version}
|
|
|
|
|
2008-06-16 11:25:16 +00:00
|
|
|
for f in ChangeLog ; do
|
|
|
|
mv $f $f.iso88591
|
|
|
|
iconv -o $f -f iso88591 -t utf8 $f.iso88591
|
|
|
|
rm -f $f.iso88591
|
|
|
|
done
|
2007-03-26 17:55:27 +00:00
|
|
|
|
|
|
|
%build
|
2008-06-16 11:25:16 +00:00
|
|
|
%{__python} setup.py build
|
2007-03-26 17:55:27 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
%{__install} -d %{buildroot}%{_datadir}/%{name}
|
2008-06-16 11:25:16 +00:00
|
|
|
%{__cp} -a loop.py chain.py daemon.py loop.py not_quiet.py stats.py \
|
|
|
|
stats_threaded.py transient_file.py %{buildroot}%{_datadir}/%{name}
|
2008-06-22 20:41:18 +00:00
|
|
|
%{__install} -D -m 0755 -p %{SOURCE1} %{buildroot}%{_bindir}/%{oname}
|
|
|
|
%{__chmod} 0755 %{buildroot}%{python_sitelib}/%{oname}.py
|
2007-06-25 18:14:40 +00:00
|
|
|
|
2007-03-26 17:55:27 +00:00
|
|
|
%clean
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root, -)
|
2008-06-16 11:25:16 +00:00
|
|
|
%doc ChangeLog NEWS
|
|
|
|
%{python_sitelib}/%{oname}*
|
2008-06-22 20:41:18 +00:00
|
|
|
%{_bindir}/%{oname}
|
2007-03-26 17:55:27 +00:00
|
|
|
|
|
|
|
%files examples
|
2009-02-08 18:19:11 +00:00
|
|
|
%defattr(-, root, root, -)
|
2008-06-16 11:25:16 +00:00
|
|
|
%doc docstrings/*
|
2007-03-26 17:55:27 +00:00
|
|
|
%{_datadir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|
2009-02-26 21:48:33 +00:00
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-2.git20090208
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-02-08 18:19:11 +00:00
|
|
|
* Sat Feb 8 2009 Terje Rosten <terje.rosten@ntnu.no> - 0.8.1-1.git20090208
|
|
|
|
- 0.8.1
|
|
|
|
|
2008-11-29 15:36:03 +00:00
|
|
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.8.0-4.r
|
|
|
|
- Rebuild for Python 2.6
|
|
|
|
|
2008-06-22 20:48:33 +00:00
|
|
|
* Sun Jun 22 2008 Terje Rosten <terjeros@phys.ntnu.no> - 0.8.0-3.r
|
|
|
|
- rebuild
|
|
|
|
|
2008-06-22 20:41:18 +00:00
|
|
|
* Tue Jun 17 2008 Terje Rosten <terjeros@phys.ntnu.no> - 0.8.0-2.r
|
|
|
|
- 0.8.0r
|
|
|
|
- add wrapper in /usr/bin
|
|
|
|
|
2008-06-16 11:25:16 +00:00
|
|
|
* Mon Jun 16 2008 Terje Rosten <terjeros@phys.ntnu.no> - 0.8.0-1.q
|
|
|
|
- 0.8.0q
|
|
|
|
- Update url, license and source url
|
|
|
|
|
2008-02-09 20:19:43 +00:00
|
|
|
* Sat Feb 9 2008 Terje Rosten <terjeros@phys.ntnu.no> - 0.7.1-2
|
|
|
|
- Rebuild
|
|
|
|
|
2007-08-19 19:29:41 +00:00
|
|
|
* Wed Aug 08 2007 Terje Rosten <terjeros@phys.ntnu.no> - 0.7.1-1
|
|
|
|
- New upstream release: 0.7.1
|
|
|
|
- Fix license tag
|
|
|
|
|
2007-06-25 18:14:40 +00:00
|
|
|
* Mon Jun 25 2007 Terje Rosten <terjeros@phys.ntnu.no> - 0.7.0-3
|
|
|
|
- Remove autopath from example package (bz #237464)
|
|
|
|
|
2007-03-27 19:51:58 +00:00
|
|
|
* Tue Mar 27 2007 Terje Rosten <terjeros@phys.ntnu.no> - 0.7.0-2
|
|
|
|
- Fix email address
|
|
|
|
|
|
|
|
* Tue Mar 6 2007 Terje Rosten <terjeros@phys.ntnu.no> - 0.7.0-1
|
2007-03-26 17:55:27 +00:00
|
|
|
- Initial build
|
|
|
|
|