From 113757a11b926a1ed530f9ca89f6a2d75c96fb03 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Jul 25 2023 17:33:04 +0000 Subject: Spec cleanup: Expand %{pypi_name} --- diff --git a/python-nudatus.spec b/python-nudatus.spec index 07380f3..abb5fc3 100644 --- a/python-nudatus.spec +++ b/python-nudatus.spec @@ -1,13 +1,11 @@ -%global pypi_name nudatus - -Name: python-%{pypi_name} +Name: python-nudatus Version: 0.0.5 Release: 9%{?dist} Summary: Strip comments from Python scripts License: MIT URL: https://github.com/zanderbrown/nudatus -Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz +Source0: %{url}/archive/%{version}/nudatus-%{version}.tar.gz # Python 3.12 support, proposed upstream Patch: https://github.com/ZanderBrown/nudatus/pull/11.patch @@ -24,19 +22,19 @@ Nudatus is a tool to remove comments from python scripts. It's created for use in uflash to help squeeze longer programs onto the micro:bit but it should be suitable for various environments with restricted storage. -%package -n python3-%{pypi_name} +%package -n python3-nudatus Summary: %{summary} -Provides: %{pypi_name} == %{version}-%{release} +Provides: nudatus == %{version}-%{release} -%description -n python3-%{pypi_name} +%description -n python3-nudatus Nudatus is a tool to remove comments from python scripts. It's created for use in uflash to help squeeze longer programs onto the micro:bit but it should be suitable for various environments with restricted storage. %prep -%autosetup -p1 -n %{pypi_name}-%{version} +%autosetup -p1 -n nudatus-%{version} %generate_buildrequires %pyproject_buildrequires -r @@ -46,12 +44,12 @@ suitable for various environments with restricted storage. %install %pyproject_install -%pyproject_save_files %{pypi_name} +%pyproject_save_files nudatus %check %pytest -vvv tests -%files -n python3-%{pypi_name} -f %{pyproject_files} +%files -n python3-nudatus -f %{pyproject_files} %license LICENSE %doc README.rst %{_bindir}/nudatus