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 3)
Currently displaying revision
3
,
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 %define _pkgname xmpppy %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=%{_pkgname}.filelist %else python setup.py install \ --root=%{buildroot} \ --prefix=%{_prefix} cd $RPM_BUILD_ROOT mkdir -p %{_builddir}/%{_pkgname}-%{version} find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > %{_builddir}/%{_pkgname}-%{version}/%{_pkgname}.filelist find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> %{_builddir}/%{_pkgname}-%{version}/%{_pkgname}.filelist find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> %{_builddir}/%{_pkgname}-%{version}/%{_pkgname}.filelist sed -i s@"\.py$"@"\.py\*"@g %{_builddir}/%{_pkgname}-%{version}/%{_pkgname}.filelist %endif %clean rm -rf %{buildroot} %files -f %{_pkgname}.filelist %defattr(-,root,root) %doc ChangeLog %doc doc %changelog