Name: python-xlib Version: 0.33 Release: 10%{?dist} Summary: X client library for Python # Automatically converted from old format: LGPLv2+ - review is highly recommended. License: LicenseRef-Callaway-LGPLv2+ URL: https://github.com/python-xlib/python-xlib Source0: https://github.com/%{name}/%{name}/archive/%{version}/%{name}-%{version}.tar.gz Source1: xorg.conf # Use unittest.mock in py3.8+ Patch0: python-xlib-mock.patch # tests need to import tohex # https://github.com/python-xlib/python-xlib/pull/75 Patch1: python-xlib-tohex.patch Patch2: fix-ssh-tunnel-auth # Remove failing test # https://github.com/python-xlib/python-xlib/issues/1 Patch4: python-xlib-test.patch BuildArch: noarch BuildRequires: make BuildRequires: texinfo-tex BuildRequires: tex(dvips) # For tests BuildRequires: xorg-x11-drv-dummy %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. %package -n python%{python3_pkgversion}-xlib Summary: X client library for Python 3 BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-setuptools_scm BuildRequires: python%{python3_pkgversion}-six >= 1.10.0 BuildRequires: python%{python3_pkgversion}-tkinter BuildRequires: python%{python3_pkgversion}-pytest Requires: python%{python3_pkgversion}-six >= 1.10.0 Suggests: python%{python3_pkgversion}-tkinter %{?python_provide:%python_provide python%{python3_pkgversion}-xlib} %description -n python%{python3_pkgversion}-xlib 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 3. %package doc Summary: Documentation and examples for python-xlib BuildRequires: texi2html %description doc Install this package if you want the developers' documentation and examples that tell you how to program with python-xlib. %prep %autosetup -p1 %build %py3_build cd doc make html ps cd html rm Makefile %install %py3_install chmod a-x examples/*.py %check # Note - tests fail on big-endian, see https://github.com/python-xlib/python-xlib/issues/76 cp %SOURCE1 . if [ -x /usr/libexec/Xorg ]; then Xorg=/usr/libexec/Xorg elif [ -x /usr/libexec/Xorg.bin ]; then Xorg=/usr/libexec/Xorg.bin else Xorg=/usr/bin/Xorg fi $Xorg -noreset +extension GLX +extension RANDR +extension RENDER -logfile ./xorg.log -config ./xorg.conf -configdir . :99 & export DISPLAY=:99 %pytest -v || (cat xorg.log && exit 1) kill %1 || : cat xorg.log %files -n python%{python3_pkgversion}-xlib %license LICENSE %doc CHANGELOG.md README.rst TODO %{python3_sitelib}/* %files doc %license LICENSE %doc examples doc/html doc/ps/python-xlib.ps %changelog * Wed Sep 04 2024 Miroslav Suchý - 0.33-10 - convert license to SPDX * Fri Aug 16 2024 Orion Poplawski - 0.33-9 - Run runtests.py for tests * Fri Jul 19 2024 Fedora Release Engineering - 0.33-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 0.33-7 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 0.33-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.33-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.33-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 0.33-3 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.33-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Jan 02 2023 Sérgio Basto - 0.33-1 - Update python-xlib to 0.33 (#2156387) * Mon Nov 07 2022 Orion Poplawski - 0.32-1 - Update to 0.32 * Fri Jul 22 2022 Fedora Release Engineering - 0.31-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.31-4 - Rebuilt for Python 3.11 * Mon Apr 25 2022 Orion Poplawski - 0.31-3 - Drop mock for python 3 * Fri Jan 21 2022 Fedora Release Engineering - 0.31-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 30 2021 Aleksei Bavshin - 0.31-1 - Update to 0.31 * Tue Jul 27 2021 Fedora Release Engineering - 0.29-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.29-2 - Rebuilt for Python 3.10 * Sat Apr 10 2021 Artem Polishchuk - 0.29-1 - Update to 0.29 * Wed Jan 27 2021 Fedora Release Engineering - 0.28-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Oct 05 2020 Orion Poplawski - 0.28-2 - Add BR on python-setuptools * Wed Sep 23 2020 Artem Polishchuk - 0.28-1 - Update to 0.28 * Wed Jul 29 2020 Fedora Release Engineering - 0.26-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.26-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.26-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Jan 08 2020 Artem Polishchuk - 0.26-1 - Update to 0.26 * Tue Nov 26 2019 Orion Poplawski - 0.25-1 - Update to 0.25 * Tue Oct 29 2019 Orion Poplawski - 0.23-8 - Drop python2 for Fedora 32+ (bz#1764881) * Thu Oct 03 2019 Miro Hrončok - 0.23-7 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.23-6 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.23-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.23-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 0.23-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.23-2 - Rebuilt for Python 3.7 * Fri Apr 13 2018 Orion Poplawski - 0.23-1 - Update to 0.23 * Fri Apr 13 2018 Orion Poplawski - 0.20-4 - Use Xdummy for tests, remove failing one. * Thu Apr 12 2018 Orion Poplawski - 0.20-3 - Fix dvips BR * Fri Feb 09 2018 Fedora Release Engineering - 0.20-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Nov 21 2017 Orion Poplawski - 0.20-1 - Update to 0.20 * Thu Jul 27 2017 Fedora Release Engineering - 0.19-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Wed Mar 1 2017 Orion Poplawski - 0.19-2 - Add patch to fix test error * Tue Feb 28 2017 Orion Poplawski - 0.19-1 - Update to 0.19 - Drop upstreamed patches * Sat Feb 11 2017 Fedora Release Engineering - 0.17-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.17-2 - Rebuild for Python 3.6 * Fri Sep 30 2016 Orion Poplawski - 0.17-1 - Update to 0.17 - License changed to LGPLv2+ - Ship python3-xlib (bug #1360713) - Modernize spec * Thu Feb 04 2016 Fedora Release Engineering - 0.15-0.12.rc1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Fri Jun 19 2015 Orion Poplawski - 0.15-0.11.rc1 - Add patch to fix perl usage * Thu Jun 18 2015 Fedora Release Engineering - 0.15-0.11.rc1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 0.15-0.10.rc1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Fedora Release Engineering - 0.15-0.9.rc1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0.15-0.8.rc1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 0.15-0.7.rc1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jan 14 2012 Fedora Release Engineering - 0.15-0.6.rc1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Sat Jun 04 2011 Luke Macken - 0.15-0.5.rc1 - Apply a couple of patches from upstream: * r139 - Accept IPv6 addresses in Xlib.display.Display * r138 - Remove a stray print statement * Wed Feb 09 2011 Fedora Release Engineering - 0.15-0.4.rc1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Sep 3 2010 Thomas Spura - 0.15-0.3.rc1 - try a workaround proposed by upstream for #552491 * Thu Jul 22 2010 David Malcolm - 0.15-0.2.rc1 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Mon Dec 14 2009 Jef Spaleta - 0.15-0.1.rc1 - New upstream pre-release and some cherry picked patches from Debian from Fedora bug 537264 * Sun Jul 26 2009 Fedora Release Engineering - 0.14-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 0.14-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.14-3 - Rebuild for Python 2.6 * Wed Sep 3 2008 Tom "spot" Callaway - 0.14-2 - fix license tag * Tue Jul 1 2008 Jef Spaleta - 0.14-1 - Latest upstream release * Tue Apr 10 2007 Jef Spaleta - 0.13-3 - Created doc subpackage per suggestion in review * Mon Mar 26 2007 Jef Spaleta - 0.13-2 - Review Cleanup * Sat Mar 24 2007 Jef Spaleta - 0.13-1 - Initial packaging