From fb3bd359aca814ae9072dba6932837af264a022f Mon Sep 17 00:00:00 2001 From: Jeffrey C. Ollie Date: May 28 2006 13:24:44 +0000 Subject: auto-import python-xmpp-0.3.1-1 on branch devel from python-xmpp-0.3.1-1.src.rpm --- diff --git a/.cvsignore b/.cvsignore index e69de29..9e0c183 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +xmpppy-0.3.1.tar.gz diff --git a/python-xmpp.spec b/python-xmpp.spec new file mode 100644 index 0000000..f3078a9 --- /dev/null +++ b/python-xmpp.spec @@ -0,0 +1,59 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +Name: python-xmpp +Version: 0.3.1 +Release: 1%{?dist} +Summary: Python library for easy scripting with Jabber + +Group: Development/Languages +License: GPL +URL: http://xmpppy.sourceforge.net/ +Source0: http://dl.sourceforge.net/xmpppy/xmpppy-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: python-devel +Requires: python-abi = %(%{__python} -c "import sys ; print sys.version[:3]") +Requires: python-dns + +%description +xmpppy is a Python library that is targeted to provide easy scripting +with Jabber. Similar projects are Twisted Words and jabber.py. + +This library was not designed from scratch. It inherits some code from +jabberpy and have very similar API in many places. Though it is +separate project since it have almost completely different +architecture and primarily aims to work with jabberd2 - the new Open +Source Jabber Server. + +%prep +%setup -q -n xmpppy-%{version} + +# strip executable permissions so that dependencies aren't picked up +# from documentation files. +find doc -type f | xargs chmod a-x + +%build +CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build + +%install +rm -rf %{buildroot} +%{__python} setup.py install -O1 --skip-build --root %{buildroot} + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc ChangeLog README doc/* + +%dir %{python_sitelib}/xmpp +%{python_sitelib}/xmpp/*.py +%{python_sitelib}/xmpp/*.pyc +%ghost %{python_sitelib}/xmpp/*.pyo + +%changelog +* Fri May 26 2006 Jeffrey C. Ollie - 0.3.1-1 +- First version for Fedora Extras + diff --git a/sources b/sources index e69de29..327b44e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +56e8df54288e57bd626cb53b31e2b41c xmpppy-0.3.1.tar.gz