|
|
f523f7d |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
f523f7d |
|
|
|
f523f7d |
Name: python-pytools
|
|
|
f523f7d |
Version: 8
|
|
|
39d3d68 |
Release: 7%{?dist}
|
|
|
f523f7d |
Summary: A collection of tools for python
|
|
|
f523f7d |
|
|
|
f523f7d |
Group: Development/Languages
|
|
|
f523f7d |
License: MIT
|
|
|
f523f7d |
URL: http://pypi.python.org/pypi/pytools
|
|
|
f523f7d |
Source0: http://pypi.python.org/packages/source/p/pytools/pytools-%{version}.tar.gz
|
|
|
f523f7d |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
f523f7d |
|
|
|
f523f7d |
BuildArch: noarch
|
|
|
f523f7d |
BuildRequires: python-devel python-setuptools
|
|
|
f523f7d |
|
|
|
f523f7d |
%description
|
|
|
f523f7d |
Pytools are a few interesting things that are missing from the Python Standard
|
|
|
f523f7d |
Library.
|
|
|
f523f7d |
|
|
|
f523f7d |
Small tool functions such as ::
|
|
|
f523f7d |
* len_iterable,
|
|
|
f523f7d |
* argmin,
|
|
|
f523f7d |
* tuple generation,
|
|
|
f523f7d |
* permutation generation,
|
|
|
f523f7d |
* ASCII table pretty printing,
|
|
|
f523f7d |
* GvR's mokeypatch_xxx() hack,
|
|
|
f523f7d |
* The elusive flatten, and much more.
|
|
|
f523f7d |
* Michele Simionato's decorator module
|
|
|
f523f7d |
* A time-series logging module, pytools.log.
|
|
|
f523f7d |
* Batch job submission, pytools.batchjob.
|
|
|
f523f7d |
* A lexer, pytools.lex.
|
|
|
f523f7d |
|
|
|
f523f7d |
|
|
|
f523f7d |
%prep
|
|
|
f523f7d |
%setup -q -n pytools-%{version}
|
|
|
f523f7d |
|
|
|
f523f7d |
|
|
|
f523f7d |
|
|
|
f523f7d |
%build
|
|
|
f523f7d |
%{__python} setup.py build
|
|
|
f523f7d |
|
|
|
f523f7d |
|
|
|
f523f7d |
%install
|
|
|
f523f7d |
rm -rf $RPM_BUILD_ROOT
|
|
|
f523f7d |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
f523f7d |
chmod +x $RPM_BUILD_ROOT%{python_sitelib}/pytools/runalyzer.py
|
|
|
f523f7d |
|
|
|
f523f7d |
%clean
|
|
|
f523f7d |
rm -rf $RPM_BUILD_ROOT
|
|
|
f523f7d |
|
|
|
f523f7d |
|
|
|
f523f7d |
%files
|
|
|
f523f7d |
%defattr(-,root,root,-)
|
|
|
f523f7d |
%doc README PKG-INFO
|
|
|
f523f7d |
%{_bindir}/*
|
|
|
f523f7d |
%{python_sitelib}/*
|
|
|
f523f7d |
|
|
|
f523f7d |
|
|
|
f523f7d |
|
|
|
f523f7d |
%changelog
|
|
|
39d3d68 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8-7
|
|
|
39d3d68 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
39d3d68 |
|
|
|
f376e44 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8-6
|
|
|
f376e44 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
f376e44 |
|
|
|
2c19ce7 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8-5
|
|
|
2c19ce7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
2c19ce7 |
|
|
|
5296ae3 |
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 8-4
|
|
|
5296ae3 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
5296ae3 |
|
|
|
1175855 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8-3
|
|
|
1175855 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
1175855 |
|
|
|
f523f7d |
* Thu Apr 09 2009 Ramakrishna Reddy Yekulla <ramkrsna@fedoraproject.org> 8-2
|
|
|
f523f7d |
- Spec file cleanup
|
|
|
f523f7d |
|
|
|
f523f7d |
* Wed Apr 08 2009 Ramakrishna Reddy Yekulla <ramkrsna@fedoraproject.org> 8-1
|
|
|
f523f7d |
- Initial RPM release
|
|
|
f523f7d |
|
|
|
f523f7d |
|