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