LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File python-bajjer.spec of Package python-bajjer (Project home:sjcundy:AccessGrid)

%{!?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

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

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

%{__python} setup.py build

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

rm -rf %{buildroot}

%defattr(-, root, root)
%if 0%{?fedora} >= 9
%config(noreplace) /usr/share/bajjer/etc/logging.cfg

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