1 %define module pyinotify
2 Summary: Pyinotify is a 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
8 Group: Development/Languages/Python
9 Source0: http://seb.dbzteam.org/pub/pyinotify/releases/%{module}-%{version}.tar.gz
10 # Source0-md5: 701c91854d241514ede7ffe72086566d
11 URL: https://github.com/seb-m/pyinotify
12 BuildRequires: python-devel
13 BuildRequires: python3-modules
14 BuildRequires: rpm-pythonprov
15 BuildRequires: rpmbuild(macros) >= 1.219
16 Requires: glibc >= 2.4
17 Requires: python-modules
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Pyinotify is a pure Python module used for monitoring filesystems
24 %description -l hu.UTF-8
25 Pyinotify egy egyszerű Python modul, amellyel a fájlrendszer
26 változásait lehet figyelni.
28 %package -n python3-%{module}
29 Summary: Pyinotify is a pure Python module used for monitoring filesystems changes
32 Group: Development/Languages/Python
34 %description -n python3-%{module}
35 Pyinotify is a pure Python module used for monitoring filesystems
38 %description -n python3-%{module} -l hu.UTF-8
39 Pyinotify egy egyszerű Python modul, amellyel a fájlrendszer
40 változásait lehet figyelni.
43 %setup -q -n %{module}-%{version}
46 export CFLAGS="%{rpmcflags}"
47 %{__python} setup.py build -b build_python2
48 %{__python3} setup.py build -b build_python3
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
53 mv build_python2 build
54 %{__python} setup.py install \
56 --root=$RPM_BUILD_ROOT
58 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
59 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
62 install python2/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
65 mv build_python3 build
66 %{__python3} setup.py \
68 --root=$RPM_BUILD_ROOT \
72 rm -rf $RPM_BUILD_ROOT
75 %defattr(644,root,root,755)
76 %doc old/ChangeLog old/NEWS README.md
77 %{_examplesdir}/%{name}-%{version}
78 %{py_sitescriptdir}/*.py[co]
79 %{py_sitescriptdir}/%{module}-*.egg-info
81 %files -n python3-%{module}
82 %defattr(644,root,root,755)
83 %{py3_sitescriptdir}/%{module}*.py
84 %{py3_sitescriptdir}/__pycache__
85 %{py3_sitescriptdir}/%{module}-*.egg-info