From 2b301c4ead41dd85063a40a0bce4edef475bf323 Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Nov 20 2023 15:52:59 +0000 Subject: Expand %{pypi_source} for easier readability --- diff --git a/python-pluggy.spec b/python-pluggy.spec index be8447e..4f52001 100644 --- a/python-pluggy.spec +++ b/python-pluggy.spec @@ -1,5 +1,3 @@ -%global pypi_name pluggy - # Turn the tests off when bootstrapping Python, because pytest requires pluggy %bcond_without tests @@ -11,7 +9,7 @@ Summary: The plugin manager stripped of pytest specific details # SPDX License: MIT URL: https://github.com/pytest-dev/pluggy -Source0: %{pypi_source} +Source0: %{pypi_source pluggy} BuildArch: noarch @@ -28,15 +26,15 @@ The plugin manager stripped of pytest specific details. %description %_description -%package -n python3-%{pypi_name} +%package -n python3-pluggy Summary: %summary -%description -n python3-%{pypi_name} +%description -n python3-pluggy The plugin manager stripped of pytest specific details. %prep -%autosetup -p1 -n %{pypi_name}-%{version} +%autosetup -p1 -n pluggy-%{version} %build @@ -52,9 +50,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest testing %endif -%files -n python3-%{pypi_name} -%{python3_sitelib}/%{pypi_name}/ -%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ +%files -n python3-pluggy +%{python3_sitelib}/pluggy/ +%{python3_sitelib}/pluggy-%{version}-py%{python3_version}.egg-info/ %doc README.rst %license LICENSE