Expand %{pypi_name} and %{pypi_under} in spec for better readability

epel9
Miro Hrončok 2 years ago
parent f2f7e4abd6
commit 6bb0cf1583

@ -1,14 +1,11 @@
%global pypi_name tox-current-env Name: python-tox-current-env
%global pypi_under tox_current_env
Name: python-%{pypi_name}
Version: 0.0.8 Version: 0.0.8
Release: 4%{?dist} Release: 4%{?dist}
Summary: Tox plugin to run tests in current Python environment Summary: Tox plugin to run tests in current Python environment
License: MIT License: MIT
URL: https://github.com/fedora-python/tox-current-env URL: https://github.com/fedora-python/tox-current-env
Source0: %{pypi_source} Source0: %{pypi_source tox-current-env}
BuildArch: noarch BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-devel
@ -25,16 +22,16 @@ BuildRequires: python%{python3_pkgversion}-pytest-xdist
The tox-current-env plugin allows to run tests in current Python environment. The tox-current-env plugin allows to run tests in current Python environment.
%package -n python%{python3_pkgversion}-%{pypi_name} %package -n python%{python3_pkgversion}-tox-current-env
Summary: %{summary} Summary: %{summary}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}} %{?python_provide:%python_provide python%{python3_pkgversion}-tox-current-env}
%description -n python%{python3_pkgversion}-%{pypi_name} %description -n python%{python3_pkgversion}-tox-current-env
The tox-current-env plugin allows to run tests in current Python environment. The tox-current-env plugin allows to run tests in current Python environment.
%prep %prep
%autosetup -n %{pypi_name}-%{version} %autosetup -n tox-current-env-%{version}
%generate_buildrequires %generate_buildrequires
@ -48,7 +45,7 @@ The tox-current-env plugin allows to run tests in current Python environment.
%install %install
%pyproject_install %pyproject_install
%pyproject_save_files %{pypi_under} %pyproject_save_files tox_current_env
%check %check
@ -59,7 +56,7 @@ The tox-current-env plugin allows to run tests in current Python environment.
%pytest -k "not regular and not noquiet_installed_packages[None]" %pytest -k "not regular and not noquiet_installed_packages[None]"
%files -n python%{python3_pkgversion}-%{pypi_name} -f %{pyproject_files} %files -n python%{python3_pkgversion}-tox-current-env -f %{pyproject_files}
%doc README.rst %doc README.rst

Loading…
Cancel
Save