diff --git a/python-xcffib.spec b/python-xcffib.spec new file mode 100644 index 0000000..7f11168 --- /dev/null +++ b/python-xcffib.spec @@ -0,0 +1,56 @@ +%global srcname xcffib + +Name: python-xcffib +Version: 0.9.0 +Release: 1 +Summary: A drop in replacement for xpyb, an XCB python binding +License: ASL 2.0 +URL: https://github.com/tych0/xcffib +Source0: https://files.pythonhosted.org/packages/source/x/xcffib/xcffib-0.9.0.tar.gz +BuildArch: noarch + +BuildRequires: libxcb-devel +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pycparser +BuildRequires: python3-cffi >= 1.1.2 +BuildRequires: python3-six + +%description +xcffib is intended to be a (mostly) drop-in replacement for xpyb. xpyb +has an inactive upstream, several memory leaks, is python2 only and doesn't +have pypy support. xcffib is a binding which uses cffi, which mitigates +some of the issues described above. xcffib also builds bindings for 27 of +the 29 (xprint and xkb are missing) X extensions in 1.10. + +%package -n python3-xcffib +Summary: A drop in replacement for xpyb, an XCB python binding +Requires: python3-six +Requires: python3-cffi +Requires: libxcb + +%description -n python3-xcffib +xcffib is intended to be a (mostly) drop-in replacement for xpyb. xpyb +has an inactive upstream, several memory leaks, is python2 only and doesn't +have pypy support. xcffib is a binding which uses cffi, which mitigates +some of the issues described above. xcffib also builds bindings for 27 of +the 29 (xprint and xkb are missing) X extensions in 1.10. + +%prep +%setup -q -n xcffib-%{version} + +%build +%py3_build + +%install +%py3_install + +%files -n python3-xcffib +%doc LICENSE +%doc README.md +%{python3_sitelib}/xcffib +%{python3_sitelib}/xcffib*.egg-info + +%changelog +* Sat Feb 20 2021 Ge Wang - 0.9.0-1 +- Init package diff --git a/python-xcffib.yaml b/python-xcffib.yaml new file mode 100644 index 0000000..0f5fbe9 --- /dev/null +++ b/python-xcffib.yaml @@ -0,0 +1,4 @@ +version_control: pypi +src_repo: xcffib +tag_prefix: "xcffib" +seperator: "." diff --git a/xcffib-0.9.0.tar.gz b/xcffib-0.9.0.tar.gz new file mode 100644 index 0000000..ef75807 Binary files /dev/null and b/xcffib-0.9.0.tar.gz differ