]>
Commit | Line | Data |
---|---|---|
57cbe366 | 1 | |
2 | # | |
3 | # todo: | |
4 | # - emacs, idle and vim subpackages | |
5 | # | |
6 | ||
7 | ||
8 | %include /usr/lib/rpm/macros.python | |
9 | ||
10 | %define beta BETA3 | |
11 | ||
12 | Summary: Python Refactoring Browser | |
13 | Name: bicyclerepair | |
14 | Version: 0.9 | |
15 | Release: 0.%{beta}.1 | |
16 | License: unknown | |
17 | Group: Development/Languages/Python | |
18 | Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}-%{beta}.tar.gz | |
0c3fb01d | 19 | # Source0-md5: c8c22c2a8133a72aaf30b3d105fe7499 |
57cbe366 | 20 | URL: http://bicyclerepair.sourceforge.net/ |
21 | BuildRequires: python-modules >= 2.2.1 | |
22 | BuildRequires: rpm-pythonprov | |
23 | %pyrequires_eq python-modules | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Bicycle Repair Man is the Python Refactoring Browser, helping Pythonistas | |
29 | everywhere glide over the gory details of refactoring their code. Watch him | |
30 | extract jumbled code into well ordered classes. Gasp, as he renames all | |
31 | occurrences of a method. Thank You, Bicycle Repair Man! | |
32 | ||
33 | %prep | |
34 | %setup -q -n %{name}-%{version}-%{beta} | |
35 | ||
36 | %build | |
37 | python setup.py build | |
38 | ||
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT | |
43 | find $RPM_BUILD_ROOT%{py_sitedir} -name \*.py -exec rm -f {} \; | |
44 | ||
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
50 | %doc AUTHORS COPYING ChangeLog DESIGN NEWS README* | |
51 | %doc ide-integration/bike.vim | |
52 | #%attr(755,root,root) %{_bindir}/* | |
53 | %{py_sitedir}/* |