|
|
c072f95 |
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
|
|
|
c072f95 |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
8f7eece |
%define pre_release rc1
|
|
|
c072f95 |
Name: python-xlib
|
|
|
8f7eece |
Version: 0.15
|
|
|
b426961 |
Release: 0.6.%{pre_release}%{?dist}
|
|
|
c072f95 |
Summary: X client library for Python
|
|
|
c072f95 |
|
|
|
c072f95 |
Group: Development/Languages
|
|
|
ce09f43 |
License: GPLv2+
|
|
|
c072f95 |
URL: http://python-xlib.sourceforge.net/
|
|
|
8f7eece |
Source0: http://prdownloads.sourceforge.net/python-xlib/python-xlib-%{version}%{pre_release}.tar.gz
|
|
|
8f7eece |
Source1: defs
|
|
|
c072f95 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
8f7eece |
Patch0: increase-receiving-buffer
|
|
|
8f7eece |
Patch1: fix-unix-socket-in-display
|
|
|
8f7eece |
Patch2: fix-ssh-tunnel-auth
|
|
|
8f7eece |
Patch3: fix-rhomboid-examples
|
|
|
dc28098 |
Patch4: python-xlib-0.15rc1-xauthority.patch
|
|
Luke Macken |
8a69924 |
Patch5: r138-mggr-get-rid-of-annoying-Xlib.protocol.request.Query.patch
|
|
Luke Macken |
8a69924 |
Patch6: r139-allow-IPv6-addresses-e.g.-d-Xlib.display.Display-fff.patch
|
|
|
c072f95 |
BuildArch: noarch
|
|
|
c072f95 |
BuildRequires: python-devel
|
|
|
c072f95 |
BuildRequires: texinfo-tex tetex-dvips
|
|
|
c072f95 |
|
|
|
c072f95 |
%package doc
|
|
|
c072f95 |
Summary: Documentation and examples for python-xlib
|
|
|
c072f95 |
Group: Documentation
|
|
|
c072f95 |
Requires: %{name} = %{version}-%{release}
|
|
|
c072f95 |
|
|
|
c072f95 |
|
|
|
c072f95 |
%description
|
|
|
c072f95 |
The Python X Library is a complete X11R6 client-side implementation,
|
|
|
c072f95 |
written in pure Python. It can be used to write low-levelish X Windows
|
|
|
c072f95 |
client applications in Python.
|
|
|
c072f95 |
|
|
|
c072f95 |
%description doc
|
|
|
c072f95 |
Install this package if you want the developers' documentation and examples
|
|
|
c072f95 |
that tell you how to program with python-xlib.
|
|
|
c072f95 |
|
|
|
c072f95 |
%prep
|
|
|
8f7eece |
%setup -q -n %{name}-%{version}%{pre_release}
|
|
|
8f7eece |
%patch0 -p1
|
|
|
8f7eece |
%patch1 -p1
|
|
|
8f7eece |
%patch2 -p1
|
|
|
8f7eece |
%patch3 -p1
|
|
|
dc28098 |
%patch4 -p0
|
|
Luke Macken |
8a69924 |
%patch5 -p2
|
|
Luke Macken |
8a69924 |
%patch6 -p2
|
|
|
c072f95 |
|
|
|
c072f95 |
%build
|
|
|
c072f95 |
%{__python} setup.py build
|
|
|
8f7eece |
cp %{SOURCE1} doc/src/
|
|
|
c072f95 |
cd doc
|
|
|
c072f95 |
make html ps
|
|
|
c072f95 |
cd html
|
|
|
c072f95 |
rm Makefile texi2html
|
|
|
c072f95 |
|
|
|
c072f95 |
%install
|
|
|
c072f95 |
rm -rf $RPM_BUILD_ROOT
|
|
|
c072f95 |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
c072f95 |
chmod a-x examples/*.py
|
|
|
c072f95 |
|
|
|
c072f95 |
%clean
|
|
|
c072f95 |
rm -rf $RPM_BUILD_ROOT
|
|
|
c072f95 |
|
|
|
c072f95 |
|
|
|
c072f95 |
%files
|
|
|
c072f95 |
%defattr(-,root,root,-)
|
|
|
c072f95 |
%doc README COPYING
|
|
|
c072f95 |
# For noarch packages: sitelib
|
|
|
c072f95 |
%{python_sitelib}/*
|
|
|
c072f95 |
|
|
|
c072f95 |
%files doc
|
|
|
c072f95 |
%defattr(-,root,root,-)
|
|
|
c072f95 |
%doc COPYING examples doc/html doc/ps/python-xlib.ps
|
|
|
c072f95 |
|
|
|
c072f95 |
|
|
|
c072f95 |
%changelog
|
|
|
b426961 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-0.6.rc1
|
|
|
b426961 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
b426961 |
|
|
Luke Macken |
8a69924 |
* Sat Jun 04 2011 Luke Macken <lmacken@redhat.com> - 0.15-0.5.rc1
|
|
Luke Macken |
8a69924 |
- Apply a couple of patches from upstream:
|
|
Luke Macken |
8a69924 |
* r139 - Accept IPv6 addresses in Xlib.display.Display
|
|
Luke Macken |
8a69924 |
* r138 - Remove a stray print statement
|
|
Luke Macken |
8a69924 |
|
|
|
9dd1d2b |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-0.4.rc1
|
|
|
9dd1d2b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
9dd1d2b |
|
|
|
dc28098 |
* Fri Sep 3 2010 Thomas Spura <tomspur@fedoraproject.org> - 0.15-0.3.rc1
|
|
|
dc28098 |
- try a workaround proposed by upstream for #552491
|
|
|
dc28098 |
|
|
|
534397e |
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.15-0.2.rc1
|
|
|
534397e |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
534397e |
|
|
|
8f7eece |
* Mon Dec 14 2009 Jef Spaleta <jspaleta AT fedoraproject DOT org> - 0.15-0.1.rc1
|
|
|
8f7eece |
- New upstream pre-release and some cherry picked patches from Debian from Fedora bug 537264
|
|
|
8f7eece |
|
|
|
af940f5 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14-5
|
|
|
af940f5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
af940f5 |
|
|
|
1805d98 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14-4
|
|
|
1805d98 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
1805d98 |
|
|
|
d17dd21 |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.14-3
|
|
|
d17dd21 |
- Rebuild for Python 2.6
|
|
|
d17dd21 |
|
|
|
ce09f43 |
* Wed Sep 3 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.14-2
|
|
|
ce09f43 |
- fix license tag
|
|
|
ce09f43 |
|
|
|
4fcc7e4 |
* Tue Jul 1 2008 Jef Spaleta <jspaleta AT fedoraproject DOT org> - 0.14-1
|
|
|
4fcc7e4 |
- Latest upstream release
|
|
|
4fcc7e4 |
|
|
|
c072f95 |
* Tue Apr 10 2007 Jef Spaleta <jspaleta@gmail.com> - 0.13-3
|
|
|
c072f95 |
- Created doc subpackage per suggestion in review
|
|
|
c072f95 |
|
|
|
c072f95 |
* Mon Mar 26 2007 Jef Spaleta <jspaleta@gmail.com> - 0.13-2
|
|
|
c072f95 |
- Review Cleanup
|
|
|
c072f95 |
|
|
|
c072f95 |
* Sat Mar 24 2007 Jef Spaleta <jspaleta@gmail.com> - 0.13-1
|
|
|
c072f95 |
- Initial packaging
|
|
|
c072f95 |
|