From adaf327be2d41d40f9fed032934ee00a5436e3a682adc871deb6a63ce6867c94 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 6 Jun 2025 04:24:10 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xpybutil?expand=0&rev=10 --- .gitattributes | 23 ++++++++ .gitignore | 1 + 0.0.6.tar.gz | 3 ++ python-xpybutil-0.0.5-remove-selftest.patch | 17 ++++++ python-xpybutil.changes | 35 +++++++++++++ python-xpybutil.spec | 58 +++++++++++++++++++++ 6 files changed, 137 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 0.0.6.tar.gz create mode 100644 python-xpybutil-0.0.5-remove-selftest.patch create mode 100644 python-xpybutil.changes create mode 100644 python-xpybutil.spec 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/0.0.6.tar.gz b/0.0.6.tar.gz new file mode 100644 index 0000000..69843e8 --- /dev/null +++ b/0.0.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d4ec75384989945ac45d5a15679bdde71d2b95f7d74517a69812723fe97a0c68 +size 48633 diff --git a/python-xpybutil-0.0.5-remove-selftest.patch b/python-xpybutil-0.0.5-remove-selftest.patch new file mode 100644 index 0000000..9bf073a --- /dev/null +++ b/python-xpybutil-0.0.5-remove-selftest.patch @@ -0,0 +1,17 @@ +diff -urEbw xpybutil-0.0.6/setup.py xpybutil-0.0.6.new/setup.py +--- xpybutil-0.0.6/setup.py 2019-07-22 03:04:18.000000000 +0200 ++++ xpybutil-0.0.6.new/setup.py 2019-07-22 09:09:41.692554432 +0200 +@@ -11,7 +11,6 @@ + print('See: http://cgit.freedesktop.org/xcb/xpyb/') + print('More options: xpyb-ng:', 'https://github.com/dequis/xpyb-ng', + 'and xcffib:', 'https://github.com/tych0/xcffib') +- sys.exit(1) + + setup( + name="xpybutil", +@@ -24,5 +23,4 @@ + url="http://github.com/BurntSushi/xpybutil", + platforms='POSIX', + packages=['xpybutil'], +- data_files=[('share/doc/xpybutil', ['README.md', 'COPYING'])] + ) diff --git a/python-xpybutil.changes b/python-xpybutil.changes new file mode 100644 index 0000000..b53fbdb --- /dev/null +++ b/python-xpybutil.changes @@ -0,0 +1,35 @@ +------------------------------------------------------------------- +Fri Jun 6 04:21:18 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + +------------------------------------------------------------------- +Wed Feb 21 09:35:45 UTC 2024 - Michael Vetter + +- Use %autosetup macro. Allows to eliminate the usage of deprecated + %patchN. + +------------------------------------------------------------------- +Mon Jul 22 07:07:43 UTC 2019 - mvetter@suse.com + +- Update to 0.0.6: + * Fixed bug affecting windows with opacity==0 +- Refresh python-xpybutil-0.0.5-remove-selftest.patch + +------------------------------------------------------------------- +Wed Jul 18 11:22:57 UTC 2018 - tchvatal@suse.com + +- Require python-rpm-macros + +------------------------------------------------------------------- +Wed Jun 6 08:57:15 UTC 2018 - mvetter@suse.com + +- Add python-xpybutil-0.0.5-remove-selftest.patch: + Don't test whether package itself is present + Don't install README here too + +------------------------------------------------------------------- +Wed Jun 6 08:25:27 UTC 2018 - mvetter@suse.com + +- Initial package in version 0.0.5 for openSUSE diff --git a/python-xpybutil.spec b/python-xpybutil.spec new file mode 100644 index 0000000..40a7977 --- /dev/null +++ b/python-xpybutil.spec @@ -0,0 +1,58 @@ +# +# spec file for package python-xpybutil +# +# 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/ +# + + +Name: python-xpybutil +Version: 0.0.6 +Release: 0 +Summary: Abstraction over xpyb +License: WTFPL +Group: Development/Languages/Python +URL: https://github.com/BurntSushi/xpybutil +Source: https://github.com/BurntSushi/xpybutil/archive/%{version}.tar.gz +Patch0: python-xpybutil-0.0.5-remove-selftest.patch +BuildRequires: %{python_module base} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: %{python_module xcffib} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-xcffib +BuildArch: noarch +%python_subpackages + +%description +xpybutil is an abstraction over the X Python Binding (xpyb). It exists because xpyb is a very low level library that communicates with X. + +%prep +%autosetup -p1 -n xpybutil-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib}/ + +%files %{python_files} +%license COPYING +%doc README.md +%{python_sitelib}/xpybutil +%{python_sitelib}/xpybutil-%{version}.dist-info + +%changelog