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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 389213 - (show annotations) (download)
Thu Jan 17 21:29:26 2013 UTC (11 years, 3 months ago) by pterjan
Original Path: obsolete/cauldron/python-xlib/current/SPECS/python-xlib.spec
File size: 2005 byte(s)
Drop 
1 # 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 Release: %mkrel 4
7 Summary: X client library for Python
8
9 Group: Development/Python
10 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 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 BuildArch: noarch
22 BuildRequires: python-devel
23 BuildRequires: texinfo tetex-dvips texinfo-tex
24
25 %package doc
26 Summary: Documentation and examples for python-xlib
27 Group: Documentation
28
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 %patch5 -p2
47 %patch6 -p2
48
49 %build
50 %{__python} setup.py build
51 %__cp %{SOURCE1} doc/src/
52 cd doc
53 %__make html ps
54 cd html
55 %__rm Makefile texi2html
56
57 %install
58 %{__python} setup.py install -O1 --skip-build --root %{buildroot}
59 %__chmod a-x examples/*.py
60
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