# Conditional build:
%bcond_without tests # disables testing
-
-
+#
%include /usr/lib/rpm/macros.python
-
-%define beta BETA4
-
Summary: Python Refactoring Browser
Name: bicyclerepair
Version: 0.9
+%define beta BETA4
Release: 0.%{beta}.1
License: unknown
Group: Development/Languages/Python
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Bicycle Repair Man is the Python Refactoring Browser, helping Pythonistas
-everywhere glide over the gory details of refactoring their code. Watch him
-extract jumbled code into well ordered classes. Gasp, as he renames all
-occurrences of a method. Thank You, Bicycle Repair Man!
+Bicycle Repair Man is the Python Refactoring Browser, helping
+Pythonistas everywhere glide over the gory details of refactoring
+their code. Watch him extract jumbled code into well ordered classes.
+Gasp, as he renames all occurrences of a method. Thank You, Bicycle
+Repair Man!
+
+%description -l pl
+Bicycle Repair Man ("naprawiaj±cy rowery") to przegl±darka
+przebudowuj±ca dla Pythona, pomagaj±ca pythonistom wszêdzie szybowaæ
+ponad morderczymi szczegó³ami przebudowywania swojego kodu. Patrz, jak
+przemienia pomieszany kod na dobrze uporz±dkowane klasy. Oddychaj
+ciê¿ko, kiedy zmienia wszystkie wyst±pienia metody. Dziêkujemy Ci,
+Bicycle Repair Man!
%prep
%setup -q -n %{name}-%{version}-%{beta}
%build
python setup.py build
+
%{?with_tests:python -O testall.py -v}
%install
rm -rf $RPM_BUILD_ROOT
-python setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
+python setup.py install \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+
find $RPM_BUILD_ROOT%{py_sitedir} -name \*.py -exec rm -f {} \;
%clean