File python-epsilon.spec of Package python-epsilon
%define python_sitelib %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib()')
%define origname Epsilon
Name: python-epsilon
Version: 0.5.11
Release: 1
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
Packager: Pablo Marti <pmarti@warp.es>
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel
%if 0%{?suse_version}
BuildRequires: python-twisted
%else
BuildRequires: python-twisted-core
%endif
# Must have setuptools to build the package
# The build portions moved to a subpackage in F-8
%if 0%{?fedora} >= 8
BuildRequires: python-setuptools-devel
%else
BuildRequires: python-setuptools
%endif
%if 0%{?suse_version}
Requires: python-twisted
%else
Requires: python-twisted-core
%endif
%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
%{__python} setup.py build
%install
%{__python} setup.py install --skip-build --prefix=/usr --root $RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT/usr/bin/benchmark
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README NAME.txt NEWS.txt
%dir %{python_sitelib}/epsilon/
%dir %{python_sitelib}/Epsilon-*
%{python_sitelib}/epsilon/*.py
%{python_sitelib}/epsilon/*.pyc
%dir %{python_sitelib}/epsilon/hotfixes/
%{python_sitelib}/epsilon/hotfixes/*.py
%{python_sitelib}/epsilon/hotfixes/*.pyc
%dir %{python_sitelib}/epsilon/scripts/
%{python_sitelib}/epsilon/scripts/*.py
%{python_sitelib}/epsilon/scripts/*.pyc
%dir %{python_sitelib}/epsilon/test/
%{python_sitelib}/epsilon/test/*.py
%{python_sitelib}/epsilon/test/*.pyc
%if %{defined fedora_version}
#%{python_sitelib}/epsilon/*.pyo
#%{python_sitelib}/epsilon/hotfixes/*.pyo
#%{python_sitelib}/epsilon/scripts/*.pyo
#%{python_sitelib}/epsilon/test/*.pyo
%endif
%changelog
* Sat Feb 09 2007 Mauricio Teixeira <mteixeira@webset.net> 0.5.8-0
- initial package