Blame python-pyvirtualdisplay.spec

296a3ac
%global pypi_name PyVirtualDisplay
296a3ac
%global dist_name %{py_dist_name %{pypi_name}}
296a3ac
296a3ac
Name:           python-%{dist_name}
dcb6ea6
Version:        2.2
dcb6ea6
Release:        1%{?dist}
296a3ac
Summary:        Python wrapper for Xvfb, Xephyr and Xvnc
296a3ac
296a3ac
License:        BSD
296a3ac
URL:            https://github.com/ponty/PyVirtualDisplay
296a3ac
Source0:        %{pypi_source}
296a3ac
BuildArch:      noarch
296a3ac
296a3ac
BuildRequires:  python3-devel
296a3ac
BuildRequires:  %{py3_dist setuptools}
296a3ac
# For Tests
296a3ac
BuildRequires:  %{py3_dist EasyProcess}
296a3ac
BuildRequires:  %{py3_dist pillow}
296a3ac
BuildRequires:  %{py3_dist psutil}
296a3ac
BuildRequires:  %{py3_dist pytest}
296a3ac
BuildRequires:  xmessage
296a3ac
BuildRequires:  xorg-x11-server-Xephyr
296a3ac
BuildRequires:  xorg-x11-server-Xvfb
296a3ac
296a3ac
%global _description %{expand:
296a3ac
pyvirtualdisplay is a python wrapper for Xvfb, Xephyr and Xvnc}
296a3ac
296a3ac
%description %_description
296a3ac
296a3ac
%package -n     python3-%{dist_name}
296a3ac
Summary:        %{summary}
296a3ac
296a3ac
Requires:       %{py3_dist py}
296a3ac
Requires:       xorg-x11-server-Xvfb
296a3ac
%description -n python3-%{dist_name} %_description
296a3ac
296a3ac
%prep
296a3ac
%autosetup -n %{pypi_name}-%{version}
296a3ac
# TODO: package entrypoint2 and vncdotool and enable these tests
296a3ac
rm tests/test_race.py
296a3ac
rm tests/test_xvnc.py
296a3ac
296a3ac
%build
296a3ac
%py3_build
296a3ac
296a3ac
%install
296a3ac
%py3_install
296a3ac
296a3ac
%check
296a3ac
%pytest
296a3ac
296a3ac
296a3ac
%files -n python3-%{dist_name}
296a3ac
%doc README.md
296a3ac
%license LICENSE.txt
296a3ac
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
296a3ac
%{python3_sitelib}/%{dist_name}/
296a3ac
296a3ac
%changelog
dcb6ea6
* Thu Jul 29 2021 Scott Talbert <swt@techie.net> - 2.2-1
dcb6ea6
- Update to new upstream release 2.2 to fix FTBFS (#1987889)
dcb6ea6
5ca7add
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-3
5ca7add
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
5ca7add
e975148
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.1-2
e975148
- Rebuilt for Python 3.10
e975148
296a3ac
* Sat Feb 13 2021 Scott Talbert <swt@techie.net> - 2.1-1
296a3ac
- Initial package