]>
Commit | Line | Data |
---|---|---|
a3d01b7f | 1 | # |
2 | %define module inotify | |
3 | # | |
4 | Summary: Inotify module for Python | |
e8268e0e | 5 | Summary(pl.UTF-8): Moduł inotify dla języka Python |
a3d01b7f | 6 | Name: python-%{module} |
7 | Version: 0.1.0 | |
e944e93c | 8 | Release: 1 |
a3d01b7f | 9 | License: GPL, other |
10 | Group: Libraries/Python | |
11 | Source0: http://rudd-o.com/wp-content/uploads/projects/files/python-inotify/python-%{module}-%{version}.tar.gz | |
12 | # Source0-md5: 361bcab2f0cd57cdaf6fe6fe433778b0 | |
13 | URL: http://rudd-o.com/projects/python-inotify/ | |
14 | BuildRequires: python-devel >= 1:2.3 | |
15 | BuildRequires: rpmbuild(macros) >= 1.219 | |
16 | %pyrequires_eq python-modules | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | A module designed to make the Linux inotify interface programmatically | |
21 | available for Python. | |
22 | ||
23 | %description -l pl.UTF-8 | |
24 | TODO | |
25 | ||
26 | %prep | |
27 | %setup -q | |
28 | ||
29 | %build | |
30 | python setup.py build | |
31 | ||
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | ||
35 | %{__install} -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
36 | ||
37 | python setup.py install \ | |
38 | --optimize=2 \ | |
39 | --root=$RPM_BUILD_ROOT | |
40 | ||
41 | %py_postclean | |
42 | mv $RPM_BUILD_ROOT%{_bindir}/inotify $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
49 | %doc README LICENSE ChangeLog TODO | |
50 | %{py_sitedir}/* | |
51 | %{_examplesdir}/%{name}-%{version} |