%{?!python:%define python python} %{?!pybasever:%{expand:%%define pybasever %(%{__python} -c "import sys ; print sys.version[:3]")}} %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %define origname Epsilon Name: %{python}-epsilon Version: 0.4.0 Release: 1%{?dist} Summary: Divmod utility package Group: Development/Libraries License: MIT URL: http://www.divmod.org/trac/wiki/DivmodEpsilon Source0: http://divmod.org/trac/attachment/wiki/SoftwareReleases/%{origname}-%{version}.tar.gz?format=raw BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: %{python}-twisted-core >= 2.1.1 # for FC3 and earlier %if "%{pybasever}" < "2.4" Requires: python(abi) = %{pybasever} %endif Requires: %{python}-twisted-core >= 2.1.1 %description A small utility package that depends on tools too recent for Twisted (like datetime in python2.4) but performs generic enough functions that it can be used in projects that don't want to share Divmod's other projects' large footprint. Currently included: * A powerful date/time formatting and import/export class (ExtimeDotTime), for exchanging date and time information between all Python's various ways to interpret objects as times or time deltas. * Tools for managing concurrent asynchronous processes within Twisted. * A metaclass which helps you define classes with explicit states. * A featureful Version class. * A formal system for application of monkey-patches. %prep %setup -n %{origname}-%{version} -q %build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README NAME.txt NEWS.txt %dir %{python_sitelib}/epsilon/ %{python_sitelib}/epsilon/*.py %{python_sitelib}/epsilon/*.pyc %ghost %{python_sitelib}/epsilon/*.pyo %dir %{python_sitelib}/epsilon/hotfixes/ %{python_sitelib}/epsilon/hotfixes/*.py %{python_sitelib}/epsilon/hotfixes/*.pyc %ghost %{python_sitelib}/epsilon/hotfixes/*.pyo # %dir %{python_sitelib}/epsilon/scripts/ # %{python_sitelib}/epsilon/scripts/*.py # %{python_sitelib}/epsilon/scripts/*.pyc # %ghost %{python_sitelib}/epsilon/scripts/*.pyo %dir %{python_sitelib}/epsilon/test/ %{python_sitelib}/epsilon/test/*.py %{python_sitelib}/epsilon/test/*.pyc %ghost %{python_sitelib}/epsilon/test/*.pyo %changelog * Thu Jun 08 2006 Thomas Vander Stichele - 0.4.0-1 - initial package