Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
:
tools
>
python-xmpp
> python-xmpp.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File python-xmpp.spec of Package python-xmpp (Revision 2)
Currently displaying revision
2
,
show latest
Name: python-xmpp Version: 0.4.1 Release: 1 Url: https://launchpad.net/python-xmpp License: BSD Summary: Python Jubber protocol implementation Group: Development/Languages/Python Source0: xmpppy-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-root %if 0%{?suse_version} BuildRequires: python >= 2.6 %else BuildRequires: python-devel >= 2.6 %endif %description Python-xmpp implements the Jabber protocol, allowing you to write clients and servers in python. %prep %setup -n xmpppy-%{version} %build python setup.py build chmod -x doc/examples/* %install %if 0%{?suse_version} python setup.py install \ --root=%{buildroot} \ --prefix=%{_prefix} \ --record-rpm=%{name}.filelist %else python setup.py install \ --root=%{buildroot} \ --prefix=%{_prefix} cd $RPM_BUILD_ROOT find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > %{_builddir}/%{name}-%{version}/%{name}.filelist find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> %{_builddir}/%{name}-%{version}/%{name}.filelist find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> %{_builddir}/%{name}-%{version}/%{name}.filelist sed -i s@"\.py$"@"\.py\*"@g %{_builddir}/%{name}-%{version}/%{name}.filelist %endif %clean rm -rf %{buildroot} %files -f %{name}.filelist %defattr(-,root,root) %doc ChangeLog %doc doc %changelog