From ee86216e00600763fe211fad282710de888b5cc5 Mon Sep 17 00:00:00 2001 From: Alessandro Astone Date: Wed, 14 Dec 2022 17:56:26 +0100 Subject: [PATCH] Initial import (fedora#2120130). --- .gitignore | 1 + python-gbinder.spec | 48 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 50 insertions(+) create mode 100644 .gitignore create mode 100644 python-gbinder.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b0d7e3b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gbinder-python-1.1.1.tar.gz diff --git a/python-gbinder.spec b/python-gbinder.spec new file mode 100644 index 0000000..7635c32 --- /dev/null +++ b/python-gbinder.spec @@ -0,0 +1,48 @@ +%global proj_name gbinder-python + +Name: python-gbinder +Version: 1.1.1 +Release: 1%{?dist} +Summary: Python bindings for libgbinder + +License: GPL-3.0-only +URL: https://github.com/erfanoabdi/%{proj_name} +Source: %{url}/archive/%{version}/%{proj_name}-%{version}.tar.gz + +%global libgbinder_version 1.1.20 +BuildRequires: python3-devel +BuildRequires: python3-Cython +BuildRequires: gcc +BuildRequires: pkgconfig(libgbinder) >= %{libgbinder_version} + +%global _description %{expand: +Cython extension module for libgbinder. +Provides IPC comunication over the /dev/binder protocol for python scripts.} + +%description %{_description} + +%package -n python3-gbinder +Summary: %{summary} +Requires: libgbinder >= %{libgbinder_version} + +%description -n python3-gbinder %{_description} + +%prep +%autosetup -p1 -n %{proj_name}-%{version} +sed -i "/^USE_CYTHON =/s/False/True/" setup.py + +%generate_buildrequires +%pyproject_buildrequires + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files gbinder + +%files -n python3-gbinder -f %{pyproject_files} + +%changelog +* Sun Oct 30 2022 Alessandro Astone - 1.1.1-1 +- Initial changelog diff --git a/sources b/sources new file mode 100644 index 0000000..c7e747e --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gbinder-python-1.1.1.tar.gz) = 1910d6e904ac46da519064e9dc57e4059e1ea7072f2cf4b7ca0888a73701a590ff565fe9e9ca67acf94dba2a69f3138457d8b9533c2360befdd508b983f32a03