python-py3c/python-py3c.spec

56 lines
1.5 KiB
RPMSpec
Raw Normal View History

Name: python-py3c
Version: 1.3
Release: 1mamba
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
## note: run 'autospec -u -a6 python-py3c' to get the list of build requirements.
## AUTOBUILDREQ-END
BuildRequires: libpython-devel
Requires: python >= %python_version
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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
* Wed Dec 09 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3-1mamba
- package created using the webbuild interface