/[packages]/cauldron/python-xlib/current/SPECS/python-xlib.spec
ViewVC logotype

Annotation of /cauldron/python-xlib/current/SPECS/python-xlib.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 499772 - (hide annotations) (download)
Tue Oct 15 00:10:34 2013 UTC (10 years, 6 months ago) by pterjan
File size: 2005 byte(s)
Rebuild to add different pythonegg provides for python 2 and 3
1 matteo 124179 # sitelib for noarch packages, sitearch for others (remove the unneeded one)
2     %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
3     %define pre_release rc1
4     Name: python-xlib
5     Version: 0.15
6 pterjan 499772 Release: %mkrel 5
7 matteo 124179 Summary: X client library for Python
8    
9 matteo 124190 Group: Development/Python
10 matteo 124179 License: GPLv2+
11     URL: http://python-xlib.sourceforge.net/
12     Source0: http://prdownloads.sourceforge.net/python-xlib/python-xlib-%{version}%{pre_release}.tar.gz
13     Source1: defs
14     Patch0: increase-receiving-buffer
15     Patch1: fix-unix-socket-in-display
16     Patch2: fix-ssh-tunnel-auth
17     Patch3: fix-rhomboid-examples
18     Patch4: python-xlib-0.15rc1-xauthority.patch
19 matteo 149310 Patch5: r138-mggr-get-rid-of-annoying-Xlib.protocol.request.Query.patch
20     Patch6: r139-allow-IPv6-addresses-e.g.-d-Xlib.display.Display-fff.patch
21 matteo 124179 BuildArch: noarch
22     BuildRequires: python-devel
23 fwang 316405 BuildRequires: texinfo tetex-dvips texinfo-tex
24 matteo 124179
25     %package doc
26     Summary: Documentation and examples for python-xlib
27 fwang 316394 Group: Documentation
28 matteo 124179
29    
30     %description
31     The Python X Library is a complete X11R6 client-side implementation,
32     written in pure Python. It can be used to write low-levelish X Windows
33     client applications in Python.
34    
35     %description doc
36     Install this package if you want the developers' documentation and examples
37     that tell you how to program with python-xlib.
38    
39     %prep
40     %setup -q -n %{name}-%{version}%{pre_release}
41     %patch0 -p1
42     %patch1 -p1
43     %patch2 -p1
44     %patch3 -p1
45     %patch4 -p0
46 matteo 149310 %patch5 -p2
47     %patch6 -p2
48 matteo 124179
49     %build
50     %{__python} setup.py build
51 matteo 149310 %__cp %{SOURCE1} doc/src/
52 matteo 124179 cd doc
53 matteo 149310 %__make html ps
54 matteo 124179 cd html
55 matteo 149310 %__rm Makefile texi2html
56 matteo 124179
57     %install
58 matteo 149310 %{__python} setup.py install -O1 --skip-build --root %{buildroot}
59     %__chmod a-x examples/*.py
60 matteo 124179
61    
62     %files
63     %doc README COPYING
64     # For noarch packages: sitelib
65     %{python_sitelib}/*
66    
67     %files doc
68     %doc COPYING examples doc/html doc/ps/python-xlib.ps

  ViewVC Help
Powered by ViewVC 1.1.30