Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 10b4686c0e064b7053cbdd6082eef81d > files > 8

python-xlib-0.15-4.mga3.src.rpm

# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%define pre_release rc1 
Name:           python-xlib
Version:        0.15
Release:        %mkrel 4
Summary:        X client library for Python

Group:          Development/Python
License:        GPLv2+
URL:            http://python-xlib.sourceforge.net/
Source0:        http://prdownloads.sourceforge.net/python-xlib/python-xlib-%{version}%{pre_release}.tar.gz
Source1:        defs 
Patch0:         increase-receiving-buffer
Patch1:         fix-unix-socket-in-display
Patch2:         fix-ssh-tunnel-auth 
Patch3:         fix-rhomboid-examples 
Patch4:         python-xlib-0.15rc1-xauthority.patch
Patch5:         r138-mggr-get-rid-of-annoying-Xlib.protocol.request.Query.patch
Patch6:         r139-allow-IPv6-addresses-e.g.-d-Xlib.display.Display-fff.patch
BuildArch:      noarch
BuildRequires:  python-devel
BuildRequires:  texinfo tetex-dvips texinfo-tex

%package doc
Summary:        Documentation and examples for python-xlib
Group:          Documentation


%description
The Python X Library is a complete X11R6 client-side implementation, 
written in pure Python. It can be used to write low-levelish X Windows 
client applications in Python.

%description doc
Install this package if you want the developers' documentation and examples
that tell you how to program with python-xlib.

%prep
%setup -q -n %{name}-%{version}%{pre_release}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p0
%patch5 -p2
%patch6 -p2

%build
%{__python} setup.py build
%__cp %{SOURCE1} doc/src/ 
cd doc
%__make html ps
cd html
%__rm Makefile texi2html

%install
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
%__chmod a-x examples/*.py
 

%files
%doc README COPYING
# For noarch packages: sitelib
%{python_sitelib}/*

%files doc
%doc COPYING examples doc/html doc/ps/python-xlib.ps


%changelog

* Sun Jan 13 2013 umeabot <umeabot> 0.15-4.mga3
+ Revision: 379705
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Thu Nov 08 2012 fwang <fwang> 0.15-3.mga3
+ Revision: 316405
- add br
- update rpm group

* Tue Sep 27 2011 matteo <matteo> 0.15-2.mga2
+ Revision: 149357
- fixed -doc group
- new patches

* Thu Jul 14 2011 matteo <matteo> 0.15-1.mga2
+ Revision: 124190
- python-xlib.spec: changed Group from Development/Languages to Development/Python
- imported package python-xlib