|
|
2c5cce1 |
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
|
|
|
2c5cce1 |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
2c5cce1 |
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
|
|
2c5cce1 |
%endif
|
|
|
2c5cce1 |
|
|
|
2c5cce1 |
Name: python-pretty
|
|
|
2c5cce1 |
Version: 0.1
|
|
|
9fae191 |
Release: 7%{?dist}
|
|
|
2c5cce1 |
Summary: Extensible pprint successor
|
|
|
2c5cce1 |
|
|
|
2c5cce1 |
Group: Development/Libraries
|
|
|
2c5cce1 |
License: BSD
|
|
|
2c5cce1 |
URL: http://pypi.python.org/pypi/pretty/
|
|
|
2c5cce1 |
Source0: http://pypi.python.org/packages/source/p/pretty/pretty-%{version}.tar.gz
|
|
|
2c5cce1 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
2c5cce1 |
|
|
|
2c5cce1 |
BuildArch: noarch
|
|
|
2c5cce1 |
BuildRequires: python-devel
|
|
|
2c5cce1 |
|
|
|
2c5cce1 |
%description
|
|
|
2c5cce1 |
Python advanced pretty printer. This pretty printer is intended to
|
|
|
2c5cce1 |
replace the old `pprint` python module which does not allow developers
|
|
|
2c5cce1 |
to provide their own pretty print callbacks.
|
|
|
2c5cce1 |
|
|
|
2c5cce1 |
|
|
|
2c5cce1 |
%prep
|
|
|
2c5cce1 |
%setup -q -n pretty-%{version}
|
|
|
2c5cce1 |
|
|
|
2c5cce1 |
|
|
|
2c5cce1 |
%build
|
|
|
2c5cce1 |
%{__python} setup.py build
|
|
|
2c5cce1 |
|
|
|
2c5cce1 |
|
|
|
2c5cce1 |
%install
|
|
|
2c5cce1 |
rm -rf %{buildroot}
|
|
|
2c5cce1 |
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
2c5cce1 |
|
|
|
2c5cce1 |
|
|
|
2c5cce1 |
%clean
|
|
|
2c5cce1 |
rm -rf %{buildroot}
|
|
|
2c5cce1 |
|
|
|
2c5cce1 |
|
|
|
2c5cce1 |
%files
|
|
|
2c5cce1 |
%defattr(-,root,root,-)
|
|
|
2c5cce1 |
%doc
|
|
|
2c5cce1 |
%{python_sitelib}/pretty.py*
|
|
|
2c5cce1 |
%{python_sitelib}/pretty*egg-info
|
|
|
2c5cce1 |
|
|
|
2c5cce1 |
|
|
|
2c5cce1 |
%changelog
|
|
|
9fae191 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-7
|
|
|
9fae191 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
9fae191 |
|
|
|
7eb09df |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-6
|
|
|
7eb09df |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
7eb09df |
|
|
|
00a313a |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-5
|
|
|
00a313a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
00a313a |
|
|
|
4b1a3c5 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-4
|
|
|
4b1a3c5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
4b1a3c5 |
|
|
|
fde15c7 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-3
|
|
|
fde15c7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
fde15c7 |
|
|
|
1f2d929 |
* Fri Jul 30 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.1-2
|
|
|
1f2d929 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
1f2d929 |
|
|
|
2c5cce1 |
* Sat Jun 19 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.1-1
|
|
|
2c5cce1 |
- initial packaging
|