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