/[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 149357 - (hide annotations) (download)
Tue Sep 27 11:24:06 2011 UTC (12 years, 7 months ago) by matteo
File size: 2143 byte(s)
fixed -doc group
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 matteo 149310 Release: %mkrel 2
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     BuildRequires: texinfo tetex-dvips
24    
25     %package doc
26     Summary: Documentation and examples for python-xlib
27 matteo 149357 Group: Books/Other
28 matteo 124179 Requires: %{name} = %{version}-%{release}
29    
30    
31     %description
32     The Python X Library is a complete X11R6 client-side implementation,
33     written in pure Python. It can be used to write low-levelish X Windows
34     client applications in Python.
35    
36     %description doc
37     Install this package if you want the developers' documentation and examples
38     that tell you how to program with python-xlib.
39    
40     %prep
41     %setup -q -n %{name}-%{version}%{pre_release}
42     %patch0 -p1
43     %patch1 -p1
44     %patch2 -p1
45     %patch3 -p1
46     %patch4 -p0
47 matteo 149310 %patch5 -p2
48     %patch6 -p2
49 matteo 124179
50     %build
51     %{__python} setup.py build
52 matteo 149310 %__cp %{SOURCE1} doc/src/
53 matteo 124179 cd doc
54 matteo 149310 %__make html ps
55 matteo 124179 cd html
56 matteo 149310 %__rm Makefile texi2html
57 matteo 124179
58     %install
59 matteo 149310 %__rm -rf %{buildroot}
60     %{__python} setup.py install -O1 --skip-build --root %{buildroot}
61     %__chmod a-x examples/*.py
62 matteo 124179
63     %clean
64 matteo 149310 %__rm -rf %{buildroot}
65 matteo 124179
66    
67     %files
68     %defattr(-,root,root,-)
69     %doc README COPYING
70     # For noarch packages: sitelib
71     %{python_sitelib}/*
72    
73     %files doc
74     %defattr(-,root,root,-)
75     %doc COPYING examples doc/html doc/ps/python-xlib.ps
76    
77    

  ViewVC Help
Powered by ViewVC 1.1.30