1 %define module pyinotify
2 Summary: Pyinotify - pure Python module used for monitoring filesystems changes
3 Summary(hu.UTF-8): Pyinotify egy egyszerű Python modul, amellyel a fájlrendszer változásait lehet figyelni
4 Summary(pl.UTF-8): Pyinotify - moduł w czystym Pythonie do monitorowania zmian w systemie plików
9 Group: Development/Languages/Python
10 Source0: http://seb.dbzteam.org/pub/pyinotify/releases/%{module}-%{version}.tar.gz
11 # Source0-md5: 8e580fa1ff3971f94a6f81672b76c406
12 URL: https://github.com/seb-m/pyinotify
13 BuildRequires: python-devel
14 BuildRequires: python-setuptools
15 BuildRequires: python3-modules
16 BuildRequires: python3-setuptools
17 BuildRequires: rpm-pythonprov
18 BuildRequires: rpmbuild(macros) >= 1.219
19 Requires: glibc >= 2.4
20 Requires: python-modules
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Pyinotify is a pure Python module used for monitoring filesystems
28 %description -l hu.UTF-8
29 Pyinotify egy egyszerű Python modul, amellyel a fájlrendszer
30 változásait lehet figyelni.
32 %description -l pl.UTF-8
33 Pyinotify to moduł w czystym Pythonie służący do monitorowania zmian w
36 %package -n python3-%{module}
37 Summary: Pyinotify is a pure Python module used for monitoring filesystems changes
38 Summary(pl.UTF-8): Pyinotify - moduł w czystym Pythonie do monitorowania zmian w systemie plików
39 Group: Development/Languages/Python
41 %description -n python3-%{module}
42 Pyinotify is a pure Python module used for monitoring filesystems
45 %description -n python3-%{module} -l hu.UTF-8
46 Pyinotify egy egyszerű Python modul, amellyel a fájlrendszer
47 változásait lehet figyelni.
49 %description -n python3-%{module} -l pl.UTF-8
50 Pyinotify to moduł w czystym Pythonie służący do monitorowania zmian w
54 %setup -q -n %{module}-%{version}
57 export CFLAGS="%{rpmcflags}"
58 %{__python} setup.py build -b build_python2
59 %{__python3} setup.py build -b build_python3
62 rm -rf $RPM_BUILD_ROOT
63 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
64 mv build_python2 build
65 %{__python} setup.py install \
67 --root=$RPM_BUILD_ROOT
69 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
70 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
73 install python2/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
76 mv build_python3 build
77 %{__python3} setup.py \
79 --root=$RPM_BUILD_ROOT \
83 rm -rf $RPM_BUILD_ROOT
86 %defattr(644,root,root,755)
87 %doc old/ChangeLog old/NEWS README.md
88 %{py_sitescriptdir}/pyinotify.py[co]
89 %{py_sitescriptdir}/pyinotify-%{version}-py*.egg-info
90 %{_examplesdir}/%{name}-%{version}
92 %files -n python3-%{module}
93 %defattr(644,root,root,755)
94 %{py3_sitescriptdir}/pyinotify.py
95 %{py3_sitescriptdir}/__pycache__
96 %{py3_sitescriptdir}/pyinotify-%{version}-py*.egg-info