From 296a3ac34c78070d2dc65af428ae3e3f7d0ae136 Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Mar 27 2021 01:47:37 +0000 Subject: Initial package --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3142e49 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/PyVirtualDisplay-2.1.tar.gz diff --git a/python-pyvirtualdisplay.spec b/python-pyvirtualdisplay.spec new file mode 100644 index 0000000..98b2130 --- /dev/null +++ b/python-pyvirtualdisplay.spec @@ -0,0 +1,61 @@ +%global pypi_name PyVirtualDisplay +%global dist_name %{py_dist_name %{pypi_name}} + +Name: python-%{dist_name} +Version: 2.1 +Release: 1%{?dist} +Summary: Python wrapper for Xvfb, Xephyr and Xvnc + +License: BSD +URL: https://github.com/ponty/PyVirtualDisplay +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: %{py3_dist setuptools} +# For Tests +BuildRequires: %{py3_dist EasyProcess} +BuildRequires: %{py3_dist pillow} +BuildRequires: %{py3_dist psutil} +BuildRequires: %{py3_dist pytest} +BuildRequires: xmessage +BuildRequires: xorg-x11-server-Xephyr +BuildRequires: xorg-x11-server-Xvfb + +%global _description %{expand: +pyvirtualdisplay is a python wrapper for Xvfb, Xephyr and Xvnc} + +%description %_description + +%package -n python3-%{dist_name} +Summary: %{summary} + +Requires: %{py3_dist py} +Requires: xorg-x11-server-Xvfb +%description -n python3-%{dist_name} %_description + +%prep +%autosetup -n %{pypi_name}-%{version} +# TODO: package entrypoint2 and vncdotool and enable these tests +rm tests/test_race.py +rm tests/test_xvnc.py + +%build +%py3_build + +%install +%py3_install + +%check +%pytest + + +%files -n python3-%{dist_name} +%doc README.md +%license LICENSE.txt +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ +%{python3_sitelib}/%{dist_name}/ + +%changelog +* Sat Feb 13 2021 Scott Talbert - 2.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..8ee1331 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (PyVirtualDisplay-2.1.tar.gz) = df9c2640df506ac9324f6edff8ba0a0d594f83e6ec5afc05337d9d1a9892c463cb98a08a4cd141ab8e25f413d679c576aff97e64cdb67533b4855b4e944f3afe