Use literal value instead of %pypi_name
This makes the specfile more readable.
This commit is contained in:
parent
ebdd4c34c2
commit
59691fb4a3
@ -1,13 +1,11 @@
|
||||
%global pypi_name click
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Name: python-click
|
||||
Version: 8.1.3
|
||||
Release: 5%{?dist}
|
||||
Summary: Simple wrapper around optparse for powerful command line utilities
|
||||
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/pallets/click
|
||||
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
||||
Source0: %{url}/archive/%{version}/click-%{version}.tar.gz
|
||||
|
||||
# Fix test failures with pytest 7.3.0
|
||||
# From https://github.com/pallets/click/issues/2489#issuecomment-1504160617 by Ran Benita
|
||||
@ -23,15 +21,15 @@ comes with good defaults out of the box.
|
||||
|
||||
%description %{_description}
|
||||
|
||||
%package -n python%{python3_pkgversion}-%{pypi_name}
|
||||
%package -n python%{python3_pkgversion}-click
|
||||
Summary: %{summary}
|
||||
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
|
||||
%description -n python%{python3_pkgversion}-%{pypi_name} %{_description}
|
||||
%description -n python%{python3_pkgversion}-click %{_description}
|
||||
|
||||
%prep
|
||||
%autosetup -n %{pypi_name}-%{version} -p1
|
||||
%autosetup -n click-%{version} -p1
|
||||
# Use test dependencies without version locks
|
||||
sed -i 's|requirements/tests.txt|requirements/tests.in|' tox.ini
|
||||
|
||||
@ -43,12 +41,12 @@ sed -i 's|requirements/tests.txt|requirements/tests.in|' tox.ini
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%pyproject_save_files %{pypi_name}
|
||||
%pyproject_save_files click
|
||||
|
||||
%check
|
||||
%tox
|
||||
|
||||
%files -n python%{python3_pkgversion}-%{pypi_name} -f %pyproject_files
|
||||
%files -n python%{python3_pkgversion}-click -f %pyproject_files
|
||||
%license LICENSE.rst
|
||||
%doc README.rst CHANGES.rst
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user