diff --git a/python-shapely.spec b/python-shapely.spec new file mode 100644 index 0000000000000000000000000000000000000000..ad723e0d56f63e7aef005f69d39169c0516a0294 --- /dev/null +++ b/python-shapely.spec @@ -0,0 +1,55 @@ +%global _empty_manifest_terminate_build 0 +%global pypi_name shapely + +Name: python-%{pypi_name} +Version: 2.0.1 +Release: 1 +Summary: Shapely is a BSD-licensed Python package for manipulation and analysis of planar geometric objects. + +License: BSD 3-Clause +URL: https://github.com/shapely/shapely +Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-virtualenv +BuildRequires: python3-poetry-core +BuildRequires: python3-Cython +BuildRequires: python3-numpy +BuildRequires: gcc +BuildRequires: geos-devel + +%description +Shapely is a BSD-licensed Python package for manipulation and analysis of planar geometric objects. + +%package -n python3-%{pypi_name} +Summary: %{summary} + +%description -n python3-%{pypi_name} +Shapely is a BSD-licensed Python package for manipulation and analysis of planar geometric objects. + +%prep +%autosetup -p1 -n %{pypi_name}-%{version} + +find shapely -type f -name '*.c' -print -delete + +%build +%pyproject_build + +%install +%pyproject_install + +%files -n python3-%{pypi_name} +%doc README.rst +%license LICENSE.txt +%{python3_sitearch}/shapely*.dist-info/ +%{python3_sitearch}/shapely + + +%changelog +* Tue Aug 22 2023 zoujiancang - 2.0.1-1 +- Initial package + diff --git a/shapely-2.0.1.tar.gz b/shapely-2.0.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..a733321436c2df7541ed16e0161b8ef4da110b1a Binary files /dev/null and b/shapely-2.0.1.tar.gz differ