diff --git a/.files b/.files new file mode 100644 index 0000000..ebae575 Binary files /dev/null and b/.files differ diff --git a/.meta b/.meta new file mode 100644 index 0000000..ed0dd1d --- /dev/null +++ b/.meta @@ -0,0 +1,5 @@ + + + + + diff --git a/.rev b/.rev new file mode 100644 index 0000000..70bfa43 --- /dev/null +++ b/.rev @@ -0,0 +1,10 @@ + + + 35aa31bd773f8426607141e5350afad5 + 0.15.18 + + RBrownFactory + I want to maintain python-pywlroots in opensuse:Factory + 990313 + + diff --git a/fix-include-paths.patch b/fix-include-paths.patch new file mode 100644 index 0000000..1f6f83f --- /dev/null +++ b/fix-include-paths.patch @@ -0,0 +1,8 @@ +--- ./setup.py.orig 2022-07-13 00:24:21.798070153 +0800 ++++ ./setup.py 2022-07-13 08:29:07.921631859 +0800 +@@ -32,4 +32,4 @@ + + sys.path.insert(0, "wlroots") + +-setup(**keywords_with_side_effects(sys.argv)) ++setup(**keywords_with_side_effects(sys.argv), include_dirs=["/usr/include/wayland", "/usr/include/libxkbcommon", "/usr/include/libinput", "/usr/include/libdrm", "/usr/include/pixman-1"]) diff --git a/python-pywlroots-rpmlintrc b/python-pywlroots-rpmlintrc new file mode 100644 index 0000000..5575f90 --- /dev/null +++ b/python-pywlroots-rpmlintrc @@ -0,0 +1 @@ +addFilter("devel-file-in-non-devel-package") diff --git a/python-pywlroots.changes b/python-pywlroots.changes new file mode 100644 index 0000000..29f1e1a --- /dev/null +++ b/python-pywlroots.changes @@ -0,0 +1,18 @@ +------------------------------------------------------------------- +Tue Jul 19 02:43:03 UTC 2022 - John Vandenberg + +- Add runtime dependencies python-pywayland & python-xkbcommon + +------------------------------------------------------------------- +Wed Jul 13 10:54:25 UTC 2022 - Soc Virnyl Estela + +- Rename to python-pywlroots. Enables builds for all available python flavors. + +------------------------------------------------------------------- +Thu Jul 7 04:32:07 UTC 2022 - Soc Virnyl S. Estela + +- Initial spec for python-pywlroots version 0.15.18 +- add python-pywlroots-rpmlintrc: + * addFilter("devel-file-in-non-devel-package") since it is actually + part of the library +- add fix-include-paths.patch diff --git a/python-pywlroots.spec b/python-pywlroots.spec new file mode 100644 index 0000000..21a0f99 --- /dev/null +++ b/python-pywlroots.spec @@ -0,0 +1,81 @@ +# +# spec file for package python-pywlroots +# +# Copyright (c) 2022 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/ +# + + +%bcond_without test +Name: python-pywlroots +Version: 0.15.18 +Release: 0 +Summary: Python binding to the wlroots library using cffi +License: NCSA +Group: Development/Languages/Python +URL: https://github.com/flacjacket/pywlroots +Source0: https://files.pythonhosted.org/packages/source/p/pywlroots/pywlroots-%{version}.tar.gz +Source1: python-pywlroots-rpmlintrc +Patch0: fix-include-paths.patch +BuildRequires: fdupes +BuildRequires: libwlroots10 +BuildRequires: python-rpm-macros +BuildRequires: %{pythons} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module cffi} +BuildRequires: %{python_module distutils-extra} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pywayland} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: %{python_module xkbcommon} +BuildRequires: pkgconfig(glib-2.0) +BuildRequires: pkgconfig(wlroots) +BuildRequires: pkgconfig(xkbcommon) +BuildRequires: pkgconfig(xwayland) +Requires: python-pywayland +Requires: python-xkbcommon +%python_subpackages + +%description +Python binding to the wlroots library using cffi. + +%prep +%setup -q -n pywlroots-%{version} +%patch0 -p1 + +%build +export CFLAGS="-I/usr/include/wayland -I/usr/include/libdrm -I/usr/include/libxkbcommon -I/usr/include/pixman-1 -I/usr/include/libinput $CFLAGS" +%python_exec wlroots/ffi_build.py +%pyproject_wheel + +%install +export CFLAGS="-I/usr/include/wayland -I/usr/include/libdrm -I/usr/include/libxkbcommon -I/usr/include/pixman-1 -I/usr/include/libinput $CFLAGS" +%python_exec wlroots/ffi_build.py +%pyproject_install + +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%if %{with test} +%check +export CFLAGS="-I/usr/include/wayland -I/usr/include/libdrm -I/usr/include/libxkbcommon -I/usr/include/pixman-1 -I/usr/include/libinput $CFLAGS" +%pytest -vv +%endif + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitearch}/*wlroots*/ + +%changelog diff --git a/pywlroots-0.15.18.tar.gz b/pywlroots-0.15.18.tar.gz new file mode 120000 index 0000000..f1acd40 --- /dev/null +++ b/pywlroots-0.15.18.tar.gz @@ -0,0 +1 @@ +/ipfs/bafkreideuwanffdlq7447vb7gbihgyjt4r454xspbcr3lnt2tmy7ghozme \ No newline at end of file