From be9348163618b086dd940fbe4976b63e77f1c910 Mon Sep 17 00:00:00 2001 From: tomspur Date: Jun 21 2010 07:21:17 +0000 Subject: Initial commit (#605998) --- diff --git a/python-pretty.spec b/python-pretty.spec new file mode 100644 index 0000000..30308f7 --- /dev/null +++ b/python-pretty.spec @@ -0,0 +1,52 @@ +%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} +%endif + +Name: python-pretty +Version: 0.1 +Release: 1%{?dist} +Summary: Extensible pprint successor + +Group: Development/Libraries +License: BSD +URL: http://pypi.python.org/pypi/pretty/ +Source0: http://pypi.python.org/packages/source/p/pretty/pretty-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: python-devel + +%description +Python advanced pretty printer. This pretty printer is intended to +replace the old `pprint` python module which does not allow developers +to provide their own pretty print callbacks. + + +%prep +%setup -q -n pretty-%{version} + + +%build +%{__python} setup.py build + + +%install +rm -rf %{buildroot} +%{__python} setup.py install -O1 --skip-build --root %{buildroot} + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc +%{python_sitelib}/pretty.py* +%{python_sitelib}/pretty*egg-info + + +%changelog +* Sat Jun 19 2010 Thomas Spura - 0.1-1 +- initial packaging diff --git a/sources b/sources index e69de29..a2cc377 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d54ea60ac41336498c7d53f155d9b25d pretty-0.1.tar.gz