]>
Commit | Line | Data |
---|---|---|
62420600 KK |
1 | Summary: Passive checker of Python programs |
2 | Name: pyflakes | |
3 | Version: 0.2.1 | |
4 | Release: 0.1 | |
5 | License: MIT | |
6 | Group: Development/Tools | |
7 | Source0: http://www.divmod.org/static/projects/pyflakes/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: e65d9245d706350b3db811280d897f30 | |
9 | Patch0: %{name}-IOError.patch | |
10 | URL: http://www.divmod.org/projects/pyflakes | |
11 | BuildRequires: python-devel | |
12 | BuildRequires: rpm-pythonprov | |
13 | BuildRequires: rpmbuild(macros) >= 1.219 | |
14 | %pyrequires_eq python-modules | |
15 | BuildArch: noarch | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | Pyflakes is a simple program which checks Python source files for | |
20 | errors. It is similar to PyChecker in scope, but differs in that it | |
21 | does not execute the modules to check them. This is both safer and | |
22 | faster, although it does not perform as many checks. Unlike PyLint, | |
23 | Pyflakes checks only for logical errors in programs; it does not | |
24 | perform any checks on style. | |
25 | ||
26 | %prep | |
27 | %setup -q | |
28 | %patch0 -p1 | |
29 | ||
30 | %install | |
31 | rm -rf $RPM_BUILD_ROOT | |
32 | ||
33 | python ./setup.py install \ | |
34 | --optimize=2 \ | |
35 | --root=$RPM_BUILD_ROOT | |
36 | ||
37 | %py_postclean | |
38 | ||
39 | %clean | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | %files | |
43 | %defattr(644,root,root,755) | |
44 | %attr(755,root,root) %{_bindir}/* | |
45 | %{py_sitescriptdir}/pyflakes |