Blame python-pyvirtualdisplay.spec

296a3ac
%global pypi_name PyVirtualDisplay
296a3ac
%global dist_name %{py_dist_name %{pypi_name}}
296a3ac
296a3ac
Name:           python-%{dist_name}
296a3ac
Version:        2.1
296a3ac
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
296a3ac
* Sat Feb 13 2021 Scott Talbert <swt@techie.net> - 2.1-1
296a3ac
- Initial package