From 3ea412cf6638a18057def77b549cd4b7faef02b6 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Wed, 18 Sep 2024 21:52:51 +0200 Subject: [PATCH] package created using the webbuild interface [release 1.1.2-1mamba;Wed Sep 18 2024] --- README.md | 2 ++ python-gbinder.spec | 58 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 python-gbinder.spec diff --git a/README.md b/README.md index 63453ff..dd7ca30 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-gbinder +Python bindings for libgbinder. + diff --git a/python-gbinder.spec b/python-gbinder.spec new file mode 100644 index 0000000..370661a --- /dev/null +++ b/python-gbinder.spec @@ -0,0 +1,58 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) +Name: python-gbinder +Version: 1.1.2 +Release: 1mamba +Summary: Python bindings for libgbinder +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/erfanoabdi/gbinder-python +Source: https://github.com/erfanoabdi/gbinder-python.git/%{version}/gbinder-python-%{version}.tar.bz2 +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgbinder-devel +BuildRequires: libpython311-devel +## AUTOBUILDREQ-END + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n gbinder-python-%{version} + +%build +CFLAGS="%{optflags}" %{__python} setup.py build --cython + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{python_inc} \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist + +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist + +#%if "%{?with_pyver}" != "3" +## Rename any conflicting file outside of python site packages tree +#for f in %{_bindir}/pdm; do +# mv %{buildroot}${f}{,-%{?pyappend}} +#done +#%endif + +%files %{?pyappend} -f %{name}.filelist +%defattr(-,root,root) +%dir %{python3_sitearch}/gbinder_python-%{version}-py*.egg-info +%{python3_sitearch}/gbinder_python-%{version}-py*.egg-info/* +%doc LICENSE + +%changelog +* Wed Sep 18 2024 Silvan Calarco 1.1.2-1mamba +- package created using the webbuild interface