2015-04-13 18:54:36 +00:00
|
|
|
%global with_python3 1
|
2009-12-06 16:28:59 +00:00
|
|
|
%global oname pyinotify
|
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
|
2015-06-04 17:51:59 +00:00
|
|
|
Version: 0.9.6
|
2015-11-06 11:40:36 +00:00
|
|
|
Release: 3%{?dist}
|
2010-06-19 16:00:09 +00:00
|
|
|
License: MIT
|
2008-06-16 11:25:16 +00:00
|
|
|
Group: Development/Libraries
|
2011-02-07 20:01:25 +00:00
|
|
|
URL: https://github.com/seb-m/pyinotify
|
2009-12-06 16:28:59 +00:00
|
|
|
Source0: http://seb.dbzteam.org/pub/pyinotify/releases/pyinotify-%{version}.tar.gz
|
2008-06-22 20:41:18 +00:00
|
|
|
Source1: %{oname}
|
2007-03-26 17:55:27 +00:00
|
|
|
BuildRequires: python-devel
|
2015-04-13 18:54:36 +00:00
|
|
|
BuildRequires: gmp-devel
|
2010-06-19 16:00:09 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
%endif
|
2008-06-16 11:25:16 +00:00
|
|
|
BuildArch: noarch
|
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.
|
|
|
|
|
2010-06-19 16:00:09 +00:00
|
|
|
%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.
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
%package -n python3-inotify
|
|
|
|
Summary: Monitor filesystem events with Python under Linux
|
|
|
|
Group: Development/Languages
|
|
|
|
|
|
|
|
%description -n python3-inotify
|
|
|
|
This is a Python 3 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.
|
2007-03-26 17:55:27 +00:00
|
|
|
|
2010-06-19 16:00:09 +00:00
|
|
|
This is the Python 3 build of pyinotify
|
|
|
|
%endif # if with_python3
|
2007-03-26 17:55:27 +00:00
|
|
|
|
|
|
|
%prep
|
2012-02-01 19:51:46 +00:00
|
|
|
%setup -q -n %{oname}-%{version}
|
2010-06-19 16:00:09 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
%{__rm} -rf %{py3dir}
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
%endif
|
|
|
|
|
2007-03-26 17:55:27 +00:00
|
|
|
%build
|
2015-04-13 18:54:36 +00:00
|
|
|
%{__python2} setup.py build
|
2007-03-26 17:55:27 +00:00
|
|
|
|
2010-06-19 16:00:09 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
%{__python3} setup.py build
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
2007-03-26 17:55:27 +00:00
|
|
|
%install
|
2010-06-19 16:00:09 +00:00
|
|
|
# Install python 3 first, so that python 2 gets precedence:
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
2015-04-13 18:54:36 +00:00
|
|
|
install -D -m 0755 -p %{SOURCE1} %{buildroot}%{_bindir}/python3-%{oname}
|
|
|
|
sed -i -e 's/^python /python3 /' %{buildroot}%{_bindir}/python3-%{oname}
|
|
|
|
chmod 0755 %{buildroot}%{python3_sitelib}/%{oname}.py
|
2010-06-19 16:00:09 +00:00
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
2015-04-13 18:54:36 +00:00
|
|
|
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
install -D -m 0755 -p %{SOURCE1} %{buildroot}%{_bindir}/%{oname}
|
|
|
|
chmod 0755 %{buildroot}%{python_sitelib}/%{oname}.py
|
2007-06-25 18:14:40 +00:00
|
|
|
|
2010-06-19 16:00:09 +00:00
|
|
|
# examples
|
2015-04-13 18:54:36 +00:00
|
|
|
install -d -m 0755 %{buildroot}%{_datadir}/%{oname}
|
|
|
|
cp -a python2/examples/* %{buildroot}%{_datadir}/%{oname}
|
2007-03-26 17:55:27 +00:00
|
|
|
|
|
|
|
%files
|
2011-05-02 07:04:22 +00:00
|
|
|
%doc ACKS COPYING README.md
|
2008-06-22 20:41:18 +00:00
|
|
|
%{_bindir}/%{oname}
|
2010-06-19 16:00:09 +00:00
|
|
|
%{python_sitelib}/%{oname}*
|
2007-03-26 17:55:27 +00:00
|
|
|
|
|
|
|
%files examples
|
2010-06-19 16:00:09 +00:00
|
|
|
%{_datadir}/%{oname}
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
%files -n python3-inotify
|
2011-05-02 07:04:22 +00:00
|
|
|
%doc ACKS COPYING README.md
|
2010-06-19 16:00:09 +00:00
|
|
|
%{_bindir}/python3-%{oname}
|
|
|
|
%{python3_sitelib}/%{oname}*
|
2010-08-25 16:03:12 +00:00
|
|
|
%{python3_sitelib}/__pycache__/%{oname}*
|
2010-06-19 16:00:09 +00:00
|
|
|
%endif
|
2007-03-26 17:55:27 +00:00
|
|
|
|
|
|
|
%changelog
|
2015-11-06 11:40:36 +00:00
|
|
|
* Fri Nov 6 2015 Jakub Filak <jfilak@redhat.com> - 0.9.6-3
|
|
|
|
- Rebuilt for Python3.5 rebuild
|
|
|
|
|
2015-06-18 19:38:31 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-06-04 17:51:59 +00:00
|
|
|
* Thu Jun 04 2015 Terje Rosten <terje.rosten@ntnu.no> - 0.9.6-1
|
|
|
|
- 0.9.6
|
|
|
|
|
2015-04-13 18:54:36 +00:00
|
|
|
* Mon Apr 13 2015 Terje Rosten <terje.rosten@ntnu.no> - 0.9.5-1
|
|
|
|
- 0.9.5
|
|
|
|
|
2014-06-07 20:52:38 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-27 22:17:32 +00:00
|
|
|
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 0.9.4-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
|
|
2013-08-04 08:01:37 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-02-15 10:06:39 +00:00
|
|
|
* Fri Feb 15 2013 Jakub Filak <jfilak@redhat.com> - 0.9.4-3
|
|
|
|
- make with_python3 be conditional on fedora
|
|
|
|
|
2013-02-14 19:40:33 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-12-04 07:45:51 +00:00
|
|
|
* Tue Dec 04 2012 Terje Rosten <terje.rosten@ntnu.no> - 0.9.4-1
|
|
|
|
- 0.9.4
|
|
|
|
|
2012-08-04 04:24:25 +00:00
|
|
|
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 0.9.3-3
|
|
|
|
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
|
|
|
2012-07-21 06:40:09 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-02-01 19:51:46 +00:00
|
|
|
* Wed Feb 01 2012 Terje Rosten <terje.rosten@ntnu.no> - 0.9.3-1
|
|
|
|
- 0.9.3
|
|
|
|
|
2012-01-14 01:47:58 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-05-02 06:51:30 +00:00
|
|
|
* Mon May 02 2011 Terje Rosten <terje.rosten@ntnu.no> - 0.9.2-1
|
|
|
|
- 0.9.2
|
|
|
|
|
2011-02-09 04:19:53 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2011-02-07 20:01:25 +00:00
|
|
|
* Mon Feb 07 2011 Terje Rosten <terje.rosten@ntnu.no> - 0.9.1-1
|
|
|
|
- 0.9.1
|
|
|
|
|
2010-08-25 16:03:12 +00:00
|
|
|
* Wed Aug 25 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.9.0-3
|
|
|
|
- rebuild with python3.2
|
|
|
|
http://lists.fedoraproject.org/pipermail/devel/2010-August/141368.html
|
|
|
|
|
2010-07-22 04:27:34 +00:00
|
|
|
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.9.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
|
2010-06-19 16:00:09 +00:00
|
|
|
* Sat Jun 19 2010 Terje Rosten <terje.rosten@ntnu.no> - 0.9.0-1
|
|
|
|
- 0.9.0
|
|
|
|
- Add python 3 subpackage
|
|
|
|
- License changed to MIT
|
|
|
|
|
2009-12-06 16:28:59 +00:00
|
|
|
* Sun Dec 06 2009 Terje Rosten <terje.rosten@ntnu.no> - 0.8.8-1
|
|
|
|
- 0.8.8
|
|
|
|
|
2009-07-26 20:28:32 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.6-2.git20090518
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-05-18 09:11:23 +00:00
|
|
|
* Mon May 18 2009 Terje Rosten <terje.rosten@ntnu.no> - 0.8.6-1.git20090518
|
|
|
|
- Update to latest git, fixing bz #500934.
|
|
|
|
|
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
|
|
|
|
|
2015-04-13 18:54:36 +00:00
|
|
|
* Sun Feb 8 2009 Terje Rosten <terje.rosten@ntnu.no> - 0.8.1-1.git20090208
|
2009-02-08 18:19:11 +00:00
|
|
|
- 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
|
|
|
|
|