package created using the webbuild interface [release 1.1.2-1mamba;Wed Sep 18 2024]
This commit is contained in:
parent
9c789e0cc0
commit
3ea412cf66
@ -1,2 +1,4 @@
|
|||||||
# python-gbinder
|
# python-gbinder
|
||||||
|
|
||||||
|
Python bindings for libgbinder.
|
||||||
|
|
||||||
|
58
python-gbinder.spec
Normal file
58
python-gbinder.spec
Normal file
@ -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 <silvan.calarco@mambasoft.it>
|
||||||
|
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 <silvan.calarco@mambasoft.it> 1.1.2-1mamba
|
||||||
|
- package created using the webbuild interface
|
Loading…
Reference in New Issue
Block a user