forked from davidhrbac/specs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjabberpy.spec
72 lines (55 loc) · 2.06 KB
/
jabberpy.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: jabberpy
Version: 0.5
# Used like this because upstream releases like 0.5-0
Release: 0.18%{?dist}
Summary: Python xmlstream and jabber IM protocol libs
Group: Development/Libraries
License: LGPLv2+
URL: http://sourceforge.net/projects/jabberpy/
Source0: http://downloads.sf.net/sourceforge/%{name}/%{name}-%{version}-0.tar.gz
Patch0: jabberpy-no-init.patch
Patch1: jabberpy-clean-sockets.patch
Patch2: jabberpy-ipv6.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
Requires: python
%description
jabber.py is a Python module for the jabber instant messaging
protocol. jabber.py deals with the xml parsing and socket code,
leaving the programmer to concentrate on developing quality jabber
based applications with Python.
%prep
%setup -q -n %{name}-%{version}-0
chmod -x examples/*.py
%patch0 -p1 -b .no-init
%patch1 -p1 -b .clean-sockets
%patch2 -p0 -b .ipv6
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install --root=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc examples README
%{python_sitelib}/*
%changelog
* Wed Oct 26 2011 David Hrbáč <[email protected]> - 0.5-0.18
- 670881 - IPv6 support for jabberpy
* Tue Nov 23 2010 David Hrbáč <[email protected]> - 0.5-0.17
- initial rebuild
* Fri Oct 24 2008 Michael Stahnke <[email protected]> 0.5.0.17
- Minor Spec tweaks for review
* Mon Oct 10 2008 Michael Stahnke <[email protected]> 0.5-0.16
- Clean up for Fedora Review and submission
* Wed Sep 3 2008 Jesus Rodriguez <[email protected]> 0.5-0.15
- remove reliance on external version file
* Tue Oct 09 2007 Pradeep Kilambi <[email protected]>
- clean dangling ports left out by jabberpy
* Mon Jun 14 2004 Mihai Ibanescu <[email protected]>
- Initial build
- Patched to add a __init__ file