commit db8c386beebb3d91f4076304b75b6f9821f55904456ddcc2a3aa415b94f476f6 Author: Ondřej Súkup Date: Wed Jun 6 09:16:50 2018 +0000 Accepting request 614498 from home:jubalh Needed for (future) package flashfocus. Please add me as maintainer. OBS-URL: https://build.opensuse.org/request/show/614498 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xpybutil?expand=0&rev=1 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.5.tar.gz b/0.0.5.tar.gz new file mode 100644 index 0000000..f906fd5 --- /dev/null +++ b/0.0.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:79105d0abccfb16c42afaabe8ae0920ee87758aeae452f751a012398c12b0f60 +size 48509 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..6c24451 --- /dev/null +++ b/python-xpybutil-0.0.5-remove-selftest.patch @@ -0,0 +1,17 @@ +diff -urEbwB xpybutil-0.0.5/setup.py xpybutil-0.0.5.new/setup.py +--- xpybutil-0.0.5/setup.py 2018-05-09 05:42:29.000000000 +0200 ++++ xpybutil-0.0.5.new/setup.py 2018-06-06 10:50:36.838622926 +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://pytyle.com", + 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..94e9a4e --- /dev/null +++ b/python-xpybutil.changes @@ -0,0 +1,11 @@ +------------------------------------------------------------------- +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..c6bb857 --- /dev/null +++ b/python-xpybutil.spec @@ -0,0 +1,56 @@ +# +# spec file for package python-xpybutil +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-xpybutil +Version: 0.0.5 +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 setuptools} +BuildRequires: %{python_module xcffib} +BuildRequires: fdupes +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 +%setup -q -n xpybutil-%{version} +%patch0 -p1 + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib}/ + +%files %{python_files} +%license COPYING +%doc README.md +%{python_sitelib}/* + +%changelog