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
%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