From 469ab8c5b88ee6fe3f05431d9eab62b72e1176f5 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:22:41 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.3-1mamba;Wed Dec 09 2020] --- README.md | 2 ++ python-py3c.spec | 55 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 python-py3c.spec diff --git a/README.md b/README.md index 9e7321d..18756c6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-py3c +py3c helps you port C extensions to Python 3. + diff --git a/python-py3c.spec b/python-py3c.spec new file mode 100644 index 0000000..69958d0 --- /dev/null +++ b/python-py3c.spec @@ -0,0 +1,55 @@ +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 +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 1.3-1mamba +- package created using the webbuild interface