From e682be4cf82fddd74b7f519ff50d6ebe74550875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Sun, 18 May 2025 22:00:16 +0200 Subject: [PATCH] Expand %{pypi_name} [skip changelog] --- python-admesh.spec | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/python-admesh.spec b/python-admesh.spec index c808633..f19b572 100644 --- a/python-admesh.spec +++ b/python-admesh.spec @@ -1,6 +1,4 @@ -%global pypi_name admesh - -Name: python-%{pypi_name} +Name: python-admesh Version: 0.98.9 Release: %autorelease Summary: Python bindings for ADMesh, STL manipulation library @@ -8,7 +6,7 @@ Summary: Python bindings for ADMesh, STL manipulation library # Automatically converted from old format: GPLv2+ - review is highly recommended. License: GPL-2.0-or-later URL: https://github.com/admesh/python-admesh -Source0: https://files.pythonhosted.org/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/a/admesh/admesh-%{version}.tar.gz # https://github.com/admesh/python-admesh/issues/15 Source1: %{url}/raw/v%{version}/test/utils.py @@ -30,20 +28,20 @@ This module provides bindings for the ADMesh library. It lets you manipulate 3D models in binary or ASCII STL format and partially repair them if necessary. -%package -n python3-%{pypi_name} +%package -n python3-admesh Summary: Python 3 bindings for ADMesh, STL manipulation library -Obsoletes: python2-%{pypi_name} < 0.98.8-2 -Obsoletes: python-%{pypi_name} < 0.98.8-2 +Obsoletes: python2-admesh < 0.98.8-2 +Obsoletes: python-admesh < 0.98.8-2 -%description -n python3-%{pypi_name} +%description -n python3-admesh This module provides bindings for the ADMesh library. It lets you manipulate 3D models in binary or ASCII STL format and partially repair them if necessary. %prep -%setup -q -n %{pypi_name}-%{version} +%setup -q -n admesh-%{version} cp %{SOURCE1} test/ %generate_buildrequires @@ -55,13 +53,13 @@ cp %{SOURCE1} test/ %install %pyproject_install -%pyproject_save_files -l %{pypi_name} +%pyproject_save_files -l admesh %check %pyproject_check_import %pytest -v -%files -n python3-%{pypi_name} -f %{pyproject_files} +%files -n python3-admesh -f %{pyproject_files} %doc README.rst