b14b7f1
%global oname  pyinotify
4845fa8
f3a87df
Summary:       Monitor filesystem events with Python under Linux
f3a87df
Name:          python-inotify
8f540a7
Version:       0.9.6
f25ef62
Release:       6%{?dist}
bc108ae
License:       MIT
f3a87df
Group:         Development/Libraries
c92de46
URL:           https://github.com/seb-m/pyinotify
b14b7f1
Source0:       http://seb.dbzteam.org/pub/pyinotify/releases/pyinotify-%{version}.tar.gz
f25ef62
Patch01:       pyinotify-0.9.6-epoint.patch
4845fa8
BuildRequires: python-devel
eb84f20
BuildRequires: gmp-devel
bc108ae
BuildRequires: python3-devel
f3a87df
BuildArch:     noarch
4845fa8
4845fa8
%description
4845fa8
This is a Python module for watching filesystems changes. pyinotify
4845fa8
can be used for various kind of fs monitoring. pyinotify relies on a
4845fa8
recent Linux Kernel feature (merged in kernel 2.6.13) called
4845fa8
inotify. inotify is an event-driven notifier, its notifications are
4845fa8
exported from kernel space to user space.
4845fa8
f25ef62
%package -n    python2-inotify
f25ef62
Summary:       Monitor filesystem events with Python under Linux
f25ef62
Group:         Development/Languages
f25ef62
%{?python_provide:%python_provide python2-inotify}
f25ef62
f25ef62
%description -n python2-inotify
f25ef62
This is a Python 2 module for watching filesystems changes. pyinotify
f25ef62
can be used for various kind of fs monitoring. pyinotify relies on a
f25ef62
recent Linux Kernel feature (merged in kernel 2.6.13) called
f25ef62
inotify. inotify is an event-driven notifier, its notifications are
f25ef62
exported from kernel space to user space.
f25ef62
f25ef62
%package -n    python2-inotify-examples
bc108ae
Summary:       Examples for Python inotify module
bc108ae
Group:         Development/Libraries
f25ef62
Requires:      python2-inotify = %{version}-%{release}
f25ef62
%{?python_provide:%python_provide python2-inotify-examples}
bc108ae
f25ef62
%description -n python2-inotify-examples
bc108ae
This package includes some examples usage of the Python inotify module.
bc108ae
bc108ae
%package -n    python3-inotify
bc108ae
Summary:       Monitor filesystem events with Python under Linux
bc108ae
Group:         Development/Languages
f25ef62
%{?python_provide:%python_provide python3-inotify}
bc108ae
bc108ae
%description -n python3-inotify
bc108ae
This is a Python 3 module for watching filesystems changes. pyinotify
bc108ae
can be used for various kind of fs monitoring. pyinotify relies on a
bc108ae
recent Linux Kernel feature (merged in kernel 2.6.13) called
bc108ae
inotify. inotify is an event-driven notifier, its notifications are
bc108ae
exported from kernel space to user space.
4845fa8
4845fa8
%prep
0e1c2cc
%setup -q -n %{oname}-%{version}
f25ef62
%patch01 -p1
f25ef62
rm -rf %{py3dir}
bc108ae
cp -a . %{py3dir}
bc108ae
4845fa8
%build
f25ef62
%py2_build
bc108ae
pushd %{py3dir}
f25ef62
%py3_build
bc108ae
popd
bc108ae
4845fa8
%install
bc108ae
pushd %{py3dir}
f25ef62
%py3_install
f25ef62
mv %{buildroot}%{_bindir}/%{oname} %{buildroot}%{_bindir}/python3-%{oname}
bc108ae
popd
f25ef62
%py2_install
554f868
bc108ae
# examples
eb84f20
install -d -m 0755 %{buildroot}%{_datadir}/%{oname}
eb84f20
cp -a python2/examples/* %{buildroot}%{_datadir}/%{oname}
4845fa8
f25ef62
%files -n python2-inotify
f25ef62
%license COPYING
f25ef62
%doc ACKS README.md
6748747
%{_bindir}/%{oname}
bc108ae
%{python_sitelib}/%{oname}*
4845fa8
f25ef62
%files -n python2-inotify-examples
f25ef62
%license COPYING
bc108ae
%{_datadir}/%{oname}
bc108ae
bc108ae
%files -n python3-inotify
f25ef62
%license COPYING
f25ef62
%doc ACKS README.md
bc108ae
%{_bindir}/python3-%{oname}
bc108ae
%{python3_sitelib}/%{oname}*
14b468b
%{python3_sitelib}/__pycache__/%{oname}*
4845fa8
4845fa8
%changelog
f25ef62
* Tue Sep 20 2016 Terje Rosten <terje.rosten@ntnu.no> - 0.9.6-6
f25ef62
- Add entry point script
f25ef62
d365317
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-5
d365317
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
d365317
bf595cb
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.6-4
bf595cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
bf595cb
Jakub Filak 719d51a
* Fri Nov 6 2015 Jakub Filak <jfilak@redhat.com> - 0.9.6-3
Jakub Filak 719d51a
- Rebuilt for Python3.5 rebuild
Jakub Filak 719d51a
96a5130
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-2
96a5130
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
96a5130
8f540a7
* Thu Jun 04 2015 Terje Rosten <terje.rosten@ntnu.no> - 0.9.6-1
8f540a7
- 0.9.6
8f540a7
eb84f20
* Mon Apr 13 2015 Terje Rosten <terje.rosten@ntnu.no> - 0.9.5-1
eb84f20
- 0.9.5
eb84f20
3667c3c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4-6
3667c3c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3667c3c
6745697
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 0.9.4-5
6745697
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
6745697
94ee6c7
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4-4
94ee6c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
94ee6c7
Jakub Filak d3e3e0a
* Fri Feb 15 2013 Jakub Filak <jfilak@redhat.com> - 0.9.4-3
Jakub Filak d3e3e0a
- make with_python3 be conditional on fedora
Jakub Filak d3e3e0a
1761105
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4-2
1761105
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
1761105
2a67128
* Tue Dec 04 2012 Terje Rosten <terje.rosten@ntnu.no> - 0.9.4-1
2a67128
- 0.9.4
2a67128
844a86f
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 0.9.3-3
844a86f
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
844a86f
c67023a
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.3-2
c67023a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c67023a
0e1c2cc
* Wed Feb 01 2012 Terje Rosten <terje.rosten@ntnu.no> - 0.9.3-1
0e1c2cc
- 0.9.3
0e1c2cc
77a5e5c
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-2
77a5e5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
77a5e5c
353c63c
* Mon May 02 2011 Terje Rosten <terje.rosten@ntnu.no> - 0.9.2-1
353c63c
- 0.9.2
353c63c
d67edf8
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.1-2
d67edf8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d67edf8
c92de46
* Mon Feb 07 2011 Terje Rosten <terje.rosten@ntnu.no> - 0.9.1-1
c92de46
- 0.9.1
c92de46
14b468b
* Wed Aug 25 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.9.0-3
14b468b
- rebuild with python3.2
14b468b
  http://lists.fedoraproject.org/pipermail/devel/2010-August/141368.html
14b468b
d928347
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.9.0-2
d928347
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
d928347
bc108ae
* Sat Jun 19 2010 Terje Rosten <terje.rosten@ntnu.no> - 0.9.0-1
bc108ae
- 0.9.0
bc108ae
- Add python 3 subpackage
bc108ae
- License changed to MIT
bc108ae
b14b7f1
* Sun Dec 06 2009 Terje Rosten <terje.rosten@ntnu.no> - 0.8.8-1
b14b7f1
- 0.8.8
b14b7f1
8115c10
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.6-2.git20090518
8115c10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8115c10
b9b787e
* Mon May 18 2009 Terje Rosten <terje.rosten@ntnu.no> - 0.8.6-1.git20090518
b9b787e
- Update to latest git, fixing bz #500934.
b9b787e
e4924b6
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-2.git20090208
e4924b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e4924b6
eb84f20
* Sun Feb  8 2009 Terje Rosten <terje.rosten@ntnu.no> - 0.8.1-1.git20090208
30c7fc4
- 0.8.1
30c7fc4
64e97ed
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.8.0-4.r
64e97ed
- Rebuild for Python 2.6
64e97ed
fe6e9a8
* Sun Jun 22 2008 Terje Rosten <terjeros@phys.ntnu.no> - 0.8.0-3.r
fe6e9a8
- rebuild 
fe6e9a8
6748747
* Tue Jun 17 2008 Terje Rosten <terjeros@phys.ntnu.no> - 0.8.0-2.r
6748747
- 0.8.0r
6748747
- add wrapper in /usr/bin
6748747
f3a87df
* Mon Jun 16 2008 Terje Rosten <terjeros@phys.ntnu.no> - 0.8.0-1.q
f3a87df
- 0.8.0q
f3a87df
- Update url, license and source url
f3a87df
1f20338
* Sat Feb  9 2008 Terje Rosten <terjeros@phys.ntnu.no> - 0.7.1-2
1f20338
- Rebuild
1f20338
340abca
* Wed Aug 08 2007 Terje Rosten <terjeros@phys.ntnu.no> - 0.7.1-1
340abca
- New upstream release: 0.7.1
340abca
- Fix license tag
340abca
554f868
* Mon Jun 25 2007 Terje Rosten <terjeros@phys.ntnu.no> - 0.7.0-3
554f868
- Remove autopath from example package (bz #237464)
554f868
40fe31b
* Tue Mar 27 2007 Terje Rosten <terjeros@phys.ntnu.no> - 0.7.0-2
40fe31b
- Fix email address
40fe31b
40fe31b
* Tue Mar  6 2007 Terje Rosten <terjeros@phys.ntnu.no> - 0.7.0-1
4845fa8
- Initial build
4845fa8