Compare commits

2 Commits

2 changed files with 17 additions and 11 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jun 13 12:37:52 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Aug 24 13:57:00 UTC 2017 - jmatejek@suse.com Thu Aug 24 13:57:00 UTC 2017 - jmatejek@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-virtkey # spec file for package python-virtkey
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -12,22 +12,23 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define major 0.63
Name: python-virtkey Name: python-virtkey
Version: 0.63.0 Version: 0.63.0
%define major 0.63
Release: 0 Release: 0
Summary: Python extension to emulate keypresses Summary: Python extension to emulate keypresses
License: LGPL-3.0+ License: LGPL-3.0-or-later
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://launchpad.net/virtkey URL: https://launchpad.net/virtkey
Source: https://launchpad.net/virtkey/%{major}/%{version}/+download/virtkey-%{version}.tar.gz Source: https://launchpad.net/virtkey/%{major}/%{version}/+download/virtkey-%{version}.tar.gz
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: glib2-devel BuildRequires: glib2-devel
BuildRequires: gtk2-devel BuildRequires: gtk2-devel
BuildRequires: pkgconfig BuildRequires: pkgconfig
@@ -48,15 +49,15 @@ getting the keyboard geometry from the xserver.
%build %build
export CFLAGS="%{optflags}" export CFLAGS="%{optflags}"
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-) %license COPYING.LESSER
%doc AUTHORS COPYING.LESSER NEWS README %doc AUTHORS NEWS README
%{python_sitearch}/virtkey*.so %{python_sitearch}/virtkey*.so
%{python_sitearch}/virtkey-%{version}-py*.egg-info %{python_sitearch}/virtkey-%{version}*-info
%changelog %changelog