be93481
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
be93481
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
be93481
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
be93481
%endif
be93481
be93481
Name:           python-pretty
be93481
Version:        0.1
be93481
Release:        1%{?dist}
be93481
Summary:        Extensible pprint successor
be93481
be93481
Group:          Development/Libraries
be93481
License:        BSD
be93481
URL:            http://pypi.python.org/pypi/pretty/
be93481
Source0:        http://pypi.python.org/packages/source/p/pretty/pretty-%{version}.tar.gz
be93481
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
be93481
be93481
BuildArch:      noarch
be93481
BuildRequires:  python-devel
be93481
be93481
%description
be93481
Python advanced pretty printer.  This pretty printer is intended to
be93481
replace the old `pprint` python module which does not allow developers
be93481
to provide their own pretty print callbacks.
be93481
be93481
be93481
%prep
be93481
%setup -q -n pretty-%{version}
be93481
be93481
be93481
%build
be93481
%{__python} setup.py build
be93481
be93481
be93481
%install
be93481
rm -rf %{buildroot}
be93481
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
be93481
be93481
 
be93481
%clean
be93481
rm -rf %{buildroot}
be93481
be93481
be93481
%files
be93481
%defattr(-,root,root,-)
be93481
%doc
be93481
%{python_sitelib}/pretty.py*
be93481
%{python_sitelib}/pretty*egg-info
be93481
be93481
be93481
%changelog
be93481
* Sat Jun 19 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.1-1
be93481
- initial packaging