]>
Commit | Line | Data |
---|---|---|
71555a82 | 1 | %define module pyinotify |
a045dcfd | 2 | Summary: Pyinotify - pure Python module used for monitoring filesystems changes |
71555a82 | 3 | Summary(hu.UTF-8): Pyinotify egy egyszerű Python modul, amellyel a fájlrendszer változásait lehet figyelni |
a045dcfd | 4 | Summary(pl.UTF-8): Pyinotify - moduł w czystym Pythonie do monitorowania zmian w systemie plików |
71555a82 | 5 | Name: python-%{module} |
02ec8ccc | 6 | Version: 0.9.6 |
5d60fc28 | 7 | Release: 2 |
9ec50e11 | 8 | License: MIT |
71555a82 ZU |
9 | Group: Development/Languages/Python |
10 | Source0: http://seb.dbzteam.org/pub/pyinotify/releases/%{module}-%{version}.tar.gz | |
02ec8ccc | 11 | # Source0-md5: 8e580fa1ff3971f94a6f81672b76c406 |
b6b3a26c | 12 | URL: https://github.com/seb-m/pyinotify |
71555a82 | 13 | BuildRequires: python-devel |
02ec8ccc | 14 | BuildRequires: python-setuptools |
b0e73454 | 15 | BuildRequires: python3-modules |
02ec8ccc | 16 | BuildRequires: python3-setuptools |
71555a82 ZU |
17 | BuildRequires: rpm-pythonprov |
18 | BuildRequires: rpmbuild(macros) >= 1.219 | |
d5c61dcc | 19 | Requires: glibc >= 2.4 |
71555a82 | 20 | Requires: python-modules |
a045dcfd | 21 | BuildArch: noarch |
71555a82 ZU |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | Pyinotify is a pure Python module used for monitoring filesystems | |
26 | changes. | |
27 | ||
b0e73454 KK |
28 | %description -l hu.UTF-8 |
29 | Pyinotify egy egyszerű Python modul, amellyel a fájlrendszer | |
30 | változásait lehet figyelni. | |
31 | ||
a045dcfd JB |
32 | %description -l pl.UTF-8 |
33 | Pyinotify to moduł w czystym Pythonie służący do monitorowania zmian w | |
34 | systemie plików. | |
35 | ||
36 | %package -n python3-%{module} | |
b0e73454 | 37 | Summary: Pyinotify is a pure Python module used for monitoring filesystems changes |
a045dcfd | 38 | Summary(pl.UTF-8): Pyinotify - moduł w czystym Pythonie do monitorowania zmian w systemie plików |
b0e73454 KK |
39 | Group: Development/Languages/Python |
40 | ||
41 | %description -n python3-%{module} | |
42 | Pyinotify is a pure Python module used for monitoring filesystems | |
43 | changes. | |
44 | ||
45 | %description -n python3-%{module} -l hu.UTF-8 | |
71555a82 ZU |
46 | Pyinotify egy egyszerű Python modul, amellyel a fájlrendszer |
47 | változásait lehet figyelni. | |
48 | ||
a045dcfd JB |
49 | %description -n python3-%{module} -l pl.UTF-8 |
50 | Pyinotify to moduł w czystym Pythonie służący do monitorowania zmian w | |
51 | systemie plików. | |
52 | ||
71555a82 | 53 | %prep |
ac8ce622 | 54 | %setup -q -n %{module}-%{version} |
71555a82 ZU |
55 | |
56 | %build | |
57 | export CFLAGS="%{rpmcflags}" | |
15f7d877 KK |
58 | %{__python} setup.py build -b build_python2 |
59 | %{__python3} setup.py build -b build_python3 | |
71555a82 ZU |
60 | |
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
0b0dbc86 | 63 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
15f7d877 | 64 | mv build_python2 build |
71555a82 ZU |
65 | %{__python} setup.py install \ |
66 | --optimize=2 \ | |
67 | --root=$RPM_BUILD_ROOT | |
68 | ||
69 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
70 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
71 | %py_postclean | |
0b6d722d JR |
72 | |
73 | install python2/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
71555a82 | 74 | |
15f7d877 KK |
75 | %{__rm} -r build |
76 | mv build_python3 build | |
b0e73454 KK |
77 | %{__python3} setup.py \ |
78 | install \ | |
79 | --root=$RPM_BUILD_ROOT \ | |
80 | --optimize=2 | |
81 | ||
71555a82 ZU |
82 | %clean |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %files | |
86 | %defattr(644,root,root,755) | |
b0e73454 | 87 | %doc old/ChangeLog old/NEWS README.md |
a045dcfd JB |
88 | %{py_sitescriptdir}/pyinotify.py[co] |
89 | %{py_sitescriptdir}/pyinotify-%{version}-py*.egg-info | |
0b0dbc86 | 90 | %{_examplesdir}/%{name}-%{version} |
b0e73454 KK |
91 | |
92 | %files -n python3-%{module} | |
93 | %defattr(644,root,root,755) | |
a045dcfd | 94 | %{py3_sitescriptdir}/pyinotify.py |
b0e73454 | 95 | %{py3_sitescriptdir}/__pycache__ |
a045dcfd | 96 | %{py3_sitescriptdir}/pyinotify-%{version}-py*.egg-info |