59 lines
1.6 KiB
RPMSpec
59 lines
1.6 KiB
RPMSpec
%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 <silvan.calarco@mambasoft.it>
|
|
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 <silvan.calarco@mambasoft.it> 1.1.0-1mamba
|
|
- package created using the webbuild interface
|