Expand %{pypi_source} for easier readability

This commit is contained in:
Miro Hrončok 2023-11-20 16:52:59 +01:00
parent 43bab80a8b
commit 2b301c4ead

View File

@ -1,5 +1,3 @@
%global pypi_name pluggy
# Turn the tests off when bootstrapping Python, because pytest requires pluggy # Turn the tests off when bootstrapping Python, because pytest requires pluggy
%bcond_without tests %bcond_without tests
@ -11,7 +9,7 @@ Summary: The plugin manager stripped of pytest specific details
# SPDX # SPDX
License: MIT License: MIT
URL: https://github.com/pytest-dev/pluggy URL: https://github.com/pytest-dev/pluggy
Source0: %{pypi_source} Source0: %{pypi_source pluggy}
BuildArch: noarch BuildArch: noarch
@ -28,15 +26,15 @@ The plugin manager stripped of pytest specific details.
%description %_description %description %_description
%package -n python3-%{pypi_name} %package -n python3-pluggy
Summary: %summary Summary: %summary
%description -n python3-%{pypi_name} %description -n python3-pluggy
The plugin manager stripped of pytest specific details. The plugin manager stripped of pytest specific details.
%prep %prep
%autosetup -p1 -n %{pypi_name}-%{version} %autosetup -p1 -n pluggy-%{version}
%build %build
@ -52,9 +50,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest testing
%endif %endif
%files -n python3-%{pypi_name} %files -n python3-pluggy
%{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/pluggy/
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ %{python3_sitelib}/pluggy-%{version}-py%{python3_version}.egg-info/
%doc README.rst %doc README.rst
%license LICENSE %license LICENSE