15
0

- 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
This commit is contained in:
2025-06-06 04:24:10 +00:00
committed by Git OBS Bridge
commit adaf327be2
6 changed files with 137 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
0.0.6.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d4ec75384989945ac45d5a15679bdde71d2b95f7d74517a69812723fe97a0c68
size 48633

View File

@@ -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'])]
)

35
python-xpybutil.changes Normal file
View File

@@ -0,0 +1,35 @@
-------------------------------------------------------------------
Fri Jun 6 04:21:18 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- No more greedy globs in %files.
-------------------------------------------------------------------
Wed Feb 21 09:35:45 UTC 2024 - Michael Vetter <mvetter@suse.com>
- 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

58
python-xpybutil.spec Normal file
View File

@@ -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