|
|
bf6f7c |
%if 0%{?fedora}
|
|
|
bf6f7c |
%global with_python3 1
|
|
|
bf6f7c |
%endif
|
|
|
bf6f7c |
|
|
|
bf6f7c |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(0)")}
|
|
|
bf6f7c |
|
|
|
bf6f7c |
%global oname pyinotify
|
|
|
bf6f7c |
|
|
|
bf6f7c |
Summary: Monitor filesystem events with Python under Linux
|
|
|
bf6f7c |
Name: python-inotify
|
|
|
bf6f7c |
Version: 0.9.4
|
|
|
bf6f7c |
Release: 4%{?dist}
|
|
|
bf6f7c |
License: MIT
|
|
|
bf6f7c |
Group: Development/Libraries
|
|
|
bf6f7c |
URL: https://github.com/seb-m/pyinotify
|
|
|
bf6f7c |
Source0: http://seb.dbzteam.org/pub/pyinotify/releases/pyinotify-%{version}.tar.gz
|
|
|
bf6f7c |
Source1: %{oname}
|
|
|
bf6f7c |
BuildRequires: python-devel
|
|
|
bf6f7c |
%if 0%{?with_python3}
|
|
|
bf6f7c |
BuildRequires: python3-devel
|
|
|
bf6f7c |
%endif
|
|
|
bf6f7c |
BuildArch: noarch
|
|
|
bf6f7c |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
bf6f7c |
|
|
|
bf6f7c |
%description
|
|
|
bf6f7c |
This is a Python module for watching filesystems changes. pyinotify
|
|
|
bf6f7c |
can be used for various kind of fs monitoring. pyinotify relies on a
|
|
|
bf6f7c |
recent Linux Kernel feature (merged in kernel 2.6.13) called
|
|
|
bf6f7c |
inotify. inotify is an event-driven notifier, its notifications are
|
|
|
bf6f7c |
exported from kernel space to user space.
|
|
|
bf6f7c |
|
|
|
bf6f7c |
%package examples
|
|
|
bf6f7c |
Summary: Examples for Python inotify module
|
|
|
bf6f7c |
Group: Development/Libraries
|
|
|
bf6f7c |
Requires: python-inotify = %{version}-%{release}
|
|
|
bf6f7c |
|
|
|
bf6f7c |
%description examples
|
|
|
bf6f7c |
This package includes some examples usage of the Python inotify module.
|
|
|
bf6f7c |
|
|
|
bf6f7c |
%if 0%{?with_python3}
|
|
|
bf6f7c |
%package -n python3-inotify
|
|
|
bf6f7c |
Summary: Monitor filesystem events with Python under Linux
|
|
|
bf6f7c |
Group: Development/Languages
|
|
|
bf6f7c |
|
|
|
bf6f7c |
%description -n python3-inotify
|
|
|
bf6f7c |
This is a Python 3 module for watching filesystems changes. pyinotify
|
|
|
bf6f7c |
can be used for various kind of fs monitoring. pyinotify relies on a
|
|
|
bf6f7c |
recent Linux Kernel feature (merged in kernel 2.6.13) called
|
|
|
bf6f7c |
inotify. inotify is an event-driven notifier, its notifications are
|
|
|
bf6f7c |
exported from kernel space to user space.
|
|
|
bf6f7c |
|
|
|
bf6f7c |
This is the Python 3 build of pyinotify
|
|
|
bf6f7c |
%endif # if with_python3
|
|
|
bf6f7c |
|
|
|
bf6f7c |
%prep
|
|
|
bf6f7c |
%setup -q -n %{oname}-%{version}
|
|
|
bf6f7c |
|
|
|
bf6f7c |
%if 0%{?with_python3}
|
|
|
bf6f7c |
%{__rm} -rf %{py3dir}
|
|
|
bf6f7c |
cp -a . %{py3dir}
|
|
|
bf6f7c |
%endif
|
|
|
bf6f7c |
|
|
|
bf6f7c |
%build
|
|
|
bf6f7c |
%{__python} setup.py build
|
|
|
bf6f7c |
|
|
|
bf6f7c |
%if 0%{?with_python3}
|
|
|
bf6f7c |
pushd %{py3dir}
|
|
|
bf6f7c |
%{__python3} setup.py build
|
|
|
bf6f7c |
popd
|
|
|
bf6f7c |
%endif
|
|
|
bf6f7c |
|
|
|
bf6f7c |
%install
|
|
|
bf6f7c |
%{__rm} -rf %{buildroot}
|
|
|
bf6f7c |
|
|
|
bf6f7c |
# Install python 3 first, so that python 2 gets precedence:
|
|
|
bf6f7c |
%if 0%{?with_python3}
|
|
|
bf6f7c |
pushd %{py3dir}
|
|
|
bf6f7c |
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
bf6f7c |
%{__install} -D -m 0755 -p %{SOURCE1} %{buildroot}%{_bindir}/python3-%{oname}
|
|
|
bf6f7c |
%{__sed} -i -e 's/^python /python3 /' %{buildroot}%{_bindir}/python3-%{oname}
|
|
|
bf6f7c |
%{__chmod} 0755 %{buildroot}%{python3_sitelib}/%{oname}.py
|
|
|
bf6f7c |
popd
|
|
|
bf6f7c |
%endif
|
|
|
bf6f7c |
|
|
|
bf6f7c |
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
bf6f7c |
%{__install} -D -m 0755 -p %{SOURCE1} %{buildroot}%{_bindir}/%{oname}
|
|
|
bf6f7c |
%{__chmod} 0755 %{buildroot}%{python_sitelib}/%{oname}.py
|
|
|
bf6f7c |
|
|
|
bf6f7c |
# examples
|
|
|
bf6f7c |
%{__install} -d -m 0755 %{buildroot}%{_datadir}/%{oname}
|
|
|
bf6f7c |
%{__cp} -a python2/examples/* %{buildroot}%{_datadir}/%{oname}
|
|
|
bf6f7c |
|
|
|
bf6f7c |
%clean
|
|
|
bf6f7c |
%{__rm} -rf %{buildroot}
|
|
|
bf6f7c |
|
|
|
bf6f7c |
%files
|
|
|
bf6f7c |
%defattr(-, root, root, -)
|
|
|
bf6f7c |
%doc ACKS COPYING README.md
|
|
|
bf6f7c |
%{_bindir}/%{oname}
|
|
|
bf6f7c |
%{python_sitelib}/%{oname}*
|
|
|
bf6f7c |
|
|
|
bf6f7c |
%files examples
|
|
|
bf6f7c |
%defattr(-, root, root, -)
|
|
|
bf6f7c |
%{_datadir}/%{oname}
|
|
|
bf6f7c |
|
|
|
bf6f7c |
%if 0%{?with_python3}
|
|
|
bf6f7c |
%files -n python3-inotify
|
|
|
bf6f7c |
%defattr(-, root, root, -)
|
|
|
bf6f7c |
%doc ACKS COPYING README.md
|
|
|
bf6f7c |
%{_bindir}/python3-%{oname}
|
|
|
bf6f7c |
%{python3_sitelib}/%{oname}*
|
|
|
bf6f7c |
%if 0%{?fedora} > 14
|
|
|
bf6f7c |
%{python3_sitelib}/__pycache__/%{oname}*
|
|
|
bf6f7c |
%endif
|
|
|
bf6f7c |
%endif
|
|
|
bf6f7c |
|
|
|
bf6f7c |
%changelog
|
|
|
bf6f7c |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.9.4-4
|
|
|
bf6f7c |
- Mass rebuild 2013-12-27
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Fri Feb 15 2013 Jakub Filak <jfilak@redhat.com> - 0.9.4-3
|
|
|
bf6f7c |
- make with_python3 be conditional on fedora
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4-2
|
|
|
bf6f7c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Tue Dec 04 2012 Terje Rosten <terje.rosten@ntnu.no> - 0.9.4-1
|
|
|
bf6f7c |
- 0.9.4
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 0.9.3-3
|
|
|
bf6f7c |
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-2
|
|
|
bf6f7c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Wed Feb 01 2012 Terje Rosten <terje.rosten@ntnu.no> - 0.9.3-1
|
|
|
bf6f7c |
- 0.9.3
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-2
|
|
|
bf6f7c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Mon May 02 2011 Terje Rosten <terje.rosten@ntnu.no> - 0.9.2-1
|
|
|
bf6f7c |
- 0.9.2
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-2
|
|
|
bf6f7c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Mon Feb 07 2011 Terje Rosten <terje.rosten@ntnu.no> - 0.9.1-1
|
|
|
bf6f7c |
- 0.9.1
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Wed Aug 25 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.9.0-3
|
|
|
bf6f7c |
- rebuild with python3.2
|
|
|
bf6f7c |
http://lists.fedoraproject.org/pipermail/devel/2010-August/141368.html
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.9.0-2
|
|
|
bf6f7c |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Sat Jun 19 2010 Terje Rosten <terje.rosten@ntnu.no> - 0.9.0-1
|
|
|
bf6f7c |
- 0.9.0
|
|
|
bf6f7c |
- Add python 3 subpackage
|
|
|
bf6f7c |
- License changed to MIT
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Sun Dec 06 2009 Terje Rosten <terje.rosten@ntnu.no> - 0.8.8-1
|
|
|
bf6f7c |
- 0.8.8
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.6-2.git20090518
|
|
|
bf6f7c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Mon May 18 2009 Terje Rosten <terje.rosten@ntnu.no> - 0.8.6-1.git20090518
|
|
|
bf6f7c |
- Update to latest git, fixing bz #500934.
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-2.git20090208
|
|
|
bf6f7c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Sat Feb 8 2009 Terje Rosten <terje.rosten@ntnu.no> - 0.8.1-1.git20090208
|
|
|
bf6f7c |
- 0.8.1
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.8.0-4.r
|
|
|
bf6f7c |
- Rebuild for Python 2.6
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Sun Jun 22 2008 Terje Rosten <terjeros@phys.ntnu.no> - 0.8.0-3.r
|
|
|
bf6f7c |
- rebuild
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Tue Jun 17 2008 Terje Rosten <terjeros@phys.ntnu.no> - 0.8.0-2.r
|
|
|
bf6f7c |
- 0.8.0r
|
|
|
bf6f7c |
- add wrapper in /usr/bin
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Mon Jun 16 2008 Terje Rosten <terjeros@phys.ntnu.no> - 0.8.0-1.q
|
|
|
bf6f7c |
- 0.8.0q
|
|
|
bf6f7c |
- Update url, license and source url
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Sat Feb 9 2008 Terje Rosten <terjeros@phys.ntnu.no> - 0.7.1-2
|
|
|
bf6f7c |
- Rebuild
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Wed Aug 08 2007 Terje Rosten <terjeros@phys.ntnu.no> - 0.7.1-1
|
|
|
bf6f7c |
- New upstream release: 0.7.1
|
|
|
bf6f7c |
- Fix license tag
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Mon Jun 25 2007 Terje Rosten <terjeros@phys.ntnu.no> - 0.7.0-3
|
|
|
bf6f7c |
- Remove autopath from example package (bz #237464)
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Tue Mar 27 2007 Terje Rosten <terjeros@phys.ntnu.no> - 0.7.0-2
|
|
|
bf6f7c |
- Fix email address
|
|
|
bf6f7c |
|
|
|
bf6f7c |
* Tue Mar 6 2007 Terje Rosten <terjeros@phys.ntnu.no> - 0.7.0-1
|
|
|
bf6f7c |
- Initial build
|
|
|
bf6f7c |
|