diff --git a/README.md b/README.md index 8c9c3df..3b467ab 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-contourpy +Python library for calculating contours of 2D quadrilateral grids. + diff --git a/python-contourpy.spec b/python-contourpy.spec new file mode 100644 index 0000000..316cfde --- /dev/null +++ b/python-contourpy.spec @@ -0,0 +1,58 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) +Name: python-contourpy +Version: 1.1.0 +Release: 1mamba +Summary: Python library for calculating contours of 2D quadrilateral grids +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/contourpy/contourpy +Source: http://pypi.debian.net/contourpy/contourpy-%{version}.tar.gz +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libpython310-devel +BuildRequires: libstdc++6-devel +BuildRequires: python3.10dist(numpy) +## AUTOBUILDREQ-END +BuildRequires: python-meson-py310 +BuildRequires: python-ninja-py310 +BuildRequires: python-pybind11-py310 + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n contourpy-%{version} + +%build +CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} -m installer --destdir=%{buildroot} dist/*.whl + +#%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} +%defattr(-,root,root) +%dir %{python_sitearch}/%{pkgname}-%{version}.dist-info +%{python_sitearch}/%{pkgname}-%{version}.dist-info/* +%dir %{python_sitearch}/%{pkgname} +%{python_sitearch}/%{pkgname}/* +%doc LICENSE + +%changelog +* Sat Sep 09 2023 Silvan Calarco 1.1.0-1mamba +- package created using the webbuild interface