File python-bajjer.spec of Package python-bajjer

%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Summary: Python Jabber API
Name: python-bajjer
Version: 0.2.5
Release: 6%{?dist}
License: BSD style
Group: Development/Libraries
Prefix: %{_prefix}
BuildArch: noarch
URL: http://codeforge.lbl.gov/projects/pccejt/
Source: Bajjer-%{version}.tar.gz
Patch0: Bajjer-0.2.5-io.patch
Patch1: Bajjer-0.2.5-stream.patch
Patch2: Bajjer-0.2.5-python25.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root


BuildRequires: python python-devel

%description
Bajjer is a library of Python modules for writing your own Jabber
components (clients, servers, bots, toasters, etc.).

%prep
%setup -n Bajjer-%{version}
%patch0 -p1 -b .io
%patch1 -p1 -b .stream
%patch2 -p1 -b .python25

%build
%{__python} setup.py build

%install
rm -rf %{buildroot}
%{__python} setup.py install --root=%{buildroot} --prefix=%{_prefix}


%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root)
%doc CHANGELOG LICENSE README examples
%if 0%{?fedora} >= 9
  %{python_sitelib}/Bajjer-%{version}-py*.egg-info
%endif
%{python_sitelib}/gov
%config(noreplace) /usr/share/bajjer/etc/logging.cfg

%changelog
* Mon Oct 9 2007 Douglas kosovic <douglask[AT]itee.uq.edu.au>
- speedup patch - don't sleep if data is available to be read