python-py3c/python-py3c.spec

64 lines
1.8 KiB
RPMSpec
Raw Normal View History

Name: python-py3c
Version: 1.4
Release: 2mamba
Summary: py3c helps you port C extensions to Python 3
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://pypi.org/project/py3c/
Source: https://github.com/encukou/py3c.git/v%{version}/py3c-%{version}.tar.bz2
#Source: https://pypi.debian.net/py3c/py3c-%{version}.tar.gz
License: MIT
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: python3-devel >= 3.11.5-3mamba
BuildRequires: libpython-devel
Requires: python >= %python_version
%description
%{summary}.
%if 0%{?with_pyver}
%pyver_package
%endif
%prep
%setup -q -n py3c-%{version}
%build
CFLAGS="%{optflags}" %{__python} setup.py build
%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 "s,.*/man/.*,&.gz," %{name}.filelist
%makeinstall prefix=%{_prefix}
%files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root)
%{_includedir}/py3c.h
%dir %{_includedir}/py3c
%{_includedir}/py3c/*
%{_datadir}/pkgconfig/py3c.pc
%changelog
* Tue Sep 26 2023 Automatic Build System <autodist@mambasoft.it> 1.4-2mamba
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
* Sat Oct 16 2021 Automatic Build System <autodist@mambasoft.it> 1.4-1mamba
- automatic version update by autodist
* Sun Feb 21 2021 Automatic Build System <autodist@mambasoft.it> 1.3.1-1mamba
- automatic version update by autodist
* Wed Dec 09 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3-1mamba
- package created using the webbuild interface