Simplify the spec file by dropping the srcname macro
This commit is contained in:
parent
f9dee9418d
commit
599262e6a5
|
@ -1,9 +1,7 @@
|
|||
%global srcname pandas
|
||||
|
||||
# Break cycles with optional dependencies
|
||||
%bcond_with bootstrap
|
||||
|
||||
Name: python-%{srcname}
|
||||
Name: python-pandas
|
||||
Version: 1.3.5
|
||||
Release: 1%{?dist}
|
||||
Summary: Python library providing high-performance data analysis tools
|
||||
|
@ -52,7 +50,7 @@ Summary: Python library providing high-performance data analysis tools
|
|||
# - scripts/no_bool_in_generic.py is MIT: see LICENSES/PYUPGRADE_LICENSE
|
||||
License: BSD and (BSD or ASL 2.0) and (BSD and ASL 2.0) and (BSD and MIT) and (BSD and Python)
|
||||
URL: https://pandas.pydata.org/
|
||||
Source0: %{pypi_source %{srcname}}
|
||||
Source0: %{pypi_source pandas}
|
||||
|
||||
# Partial backport of upstream commit d437902f46acbff4a03d748b30620bc75fa5ea1f:
|
||||
# “CI: Migrate Python 3.10 testing to Posix GHA/Azure Pipelines (#45120)”
|
||||
|
@ -90,7 +88,7 @@ analysis tools for the Python programming language.}
|
|||
%description %_description
|
||||
|
||||
|
||||
%package -n python3-%{srcname}
|
||||
%package -n python3-pandas
|
||||
Summary: %{summary}
|
||||
|
||||
# pandas/tests/window/moments/test_moments_rolling.py: test_rolling_std_neg_sqrt()
|
||||
|
@ -340,11 +338,11 @@ Recommends: xsel
|
|||
BuildRequires: python3dist(pandas-datareader)
|
||||
Recommends: python3dist(pandas-datareader)
|
||||
|
||||
%description -n python3-%{srcname} %_description
|
||||
%description -n python3-pandas %_description
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{srcname}-%{version} -p1
|
||||
%autosetup -n pandas-%{version} -p1
|
||||
|
||||
# Ensure Cython-generated sources are re-generated
|
||||
rm -vf $(grep -rl '/\* Generated by Cython')
|
||||
|
@ -363,7 +361,7 @@ sed -r -i '/\boldest-supported-numpy\b/d' pyproject.toml
|
|||
|
||||
%install
|
||||
%pyproject_install
|
||||
%pyproject_save_files %{srcname}
|
||||
%pyproject_save_files pandas
|
||||
|
||||
|
||||
%check
|
||||
|
|
Loading…
Reference in New Issue