forked from pool/python-vncdotool
Compare commits
2 Commits
Author | SHA256 | Date | |
---|---|---|---|
652bb4c74c | |||
6eb4fba47c |
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 13 12:44:58 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to pip-based build and libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jun 10 12:20:59 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-vncdotool
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without libalternatives
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-vncdotool
|
||||
Version: 1.0.0
|
||||
@@ -30,13 +31,15 @@ Patch1: fix-mocking.patch
|
||||
Patch2: python-vncdotool-no-mock.patch
|
||||
# gh#python/cpython#88852
|
||||
Patch3: py311-compat.patch
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: alts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: alts
|
||||
Requires: python-Pillow
|
||||
Requires: python-Twisted
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module Pillow}
|
||||
@@ -54,24 +57,19 @@ Command line VNC client.
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/vncdo
|
||||
%python_clone -a %{buildroot}%{_bindir}/vncdotool
|
||||
%python_clone -a %{buildroot}%{_bindir}/vnclog
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%post
|
||||
%python_install_alternative vncdo
|
||||
%python_install_alternative vncdotool
|
||||
%python_install_alternative vnclog
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative vncdo
|
||||
%python_uninstall_alternative vncdotool
|
||||
%python_uninstall_alternative vnclog
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative vncdo
|
||||
%python_libalternatives_reset_alternative vncdotool
|
||||
%python_libalternatives_reset_alternative vnclog
|
||||
|
||||
%check
|
||||
%pytest -k 'not functional'
|
||||
|
Reference in New Issue
Block a user