From 09598fb8ff0e9153622984719f6830c0debedd79cd50cb1fba85594ff1fd335a Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 30 Apr 2025 04:25:21 +0000 Subject: [PATCH] - Add missing BuildRequires on attrs. - Be a tiny bit more explicit in the files list. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-wmctrl?expand=0&rev=12 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + python-wmctrl.changes | 63 +++++++++++++++++++++++++++++++++ python-wmctrl.spec | 81 +++++++++++++++++++++++++++++++++++++++++++ wmctrl-0.4.tar.gz | 3 ++ wmctrl-0.5.tar.gz | 3 ++ 6 files changed, 174 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-wmctrl.changes create mode 100644 python-wmctrl.spec create mode 100644 wmctrl-0.4.tar.gz create mode 100644 wmctrl-0.5.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-wmctrl.changes b/python-wmctrl.changes new file mode 100644 index 0000000..62b049d --- /dev/null +++ b/python-wmctrl.changes @@ -0,0 +1,63 @@ +------------------------------------------------------------------- +Wed Apr 30 04:25:10 UTC 2025 - Steve Kowalik + +- Add missing BuildRequires on attrs. +- Be a tiny bit more explicit in the files list. + +------------------------------------------------------------------- +Wed Dec 11 12:48:56 UTC 2024 - Andreas Schwab + +- Avoid race condition in test script + +------------------------------------------------------------------- +Mon Dec 9 11:08:46 UTC 2024 - John Paul Adrian Glaubitz + +- Update to version 0.5 + * Add missing dependency + * Remove use of deprecated py.test in tests + * commit some edits which has been living in my local copy for years + * Modernized the packaging configuration + * Added automatic release workflow + * Added specification on what module to package + * Bumped up the version + * Fixed trigger for the publish action + * Fixed content-type parameter +- Switch package to modern Python Stack on SLE-15 + * Use Python 3.11 on SLE-15 by default + * Drop support for older Python versions +- Switch build system from setuptools to pyproject.toml + * Add python-pip and python-wheel to BuildRequires + * Replace %python_build with %pyproject_wheel + * Replace %python_install with %pyproject_install +- Update Requires from pyproject.toml + +------------------------------------------------------------------- +Thu Jan 26 01:23:32 UTC 2023 - John Vandenberg + +- Remove use of deprecated py.test in tests. + +------------------------------------------------------------------- +Fri Apr 23 18:59:14 UTC 2021 - John Vandenberg + +- Remove pr_3.patch and LICENSE which were merged upstream +- Deselect two tests that fail +- Update to v0.4 + * See https://github.com/antocuni/wmctrl/compare/v0.3...v0.4 + +------------------------------------------------------------------- +Thu Oct 29 12:57:46 UTC 2020 - John Vandenberg + +- Prefix spec and changes filenames with "python-" + +------------------------------------------------------------------- +Mon Oct 26 04:41:39 UTC 2020 - John Vandenberg + +- Add pr_3.patch to fix Python 3 +- Activate test suite +- Update URL from Bitbucket to GitHub +- Add LICENSE from new upstream + +------------------------------------------------------------------- +Thu Apr 11 15:25:22 UTC 2019 - John Vandenberg + +- Initial spec for v0.3 diff --git a/python-wmctrl.spec b/python-wmctrl.spec new file mode 100644 index 0000000..5855414 --- /dev/null +++ b/python-wmctrl.spec @@ -0,0 +1,81 @@ +# +# spec file for package python-wmctrl +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-wmctrl +Version: 0.5 +Release: 0 +Summary: Python programmatic control of X windows +# Project is in the process of transitioning from Bitbucket to GitHub +License: MIT +URL: https://github.com/antocuni/wmctrl +Source: https://files.pythonhosted.org/packages/source/w/wmctrl/wmctrl-%{version}.tar.gz +BuildRequires: %{python_module attrs} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: openbox +BuildRequires: python-rpm-macros +BuildRequires: wmctrl +BuildRequires: xclock +BuildRequires: xfontsel +BuildRequires: xorg-x11-server +BuildRequires: xvfb-run +Requires: python-attrs +Requires: wmctrl +Requires: xorg-x11-server +BuildArch: noarch +%python_subpackages + +%description +Python tool to programmatically control windows inside X. + +%prep +%setup -q -n wmctrl-%{version} + +sed -i 's/\(py$\|py\.test\)/pytest/g' test/test_wmctrl.py + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%{python_expand # +cat > /tmp/test_script.sh <