Change %{srcname} to gmpy2 (shorter).

This commit is contained in:
Jerry James 2022-07-19 11:36:39 -06:00
parent 3f0bd07ed3
commit 64842d7e9f
1 changed files with 7 additions and 10 deletions

View File

@ -1,13 +1,11 @@
%global srcname gmpy2
Name: python-%{srcname}
Name: python-gmpy2
Version: 2.1.2
Release: 3%{?dist}
Summary: Python interface to GMP, MPFR, and MPC
License: LGPLv3+
URL: https://pypi.python.org/pypi/gmpy2
Source0: %{pypi_source gmpy2}
Source0: %pypi_source gmpy2
BuildRequires: gcc
BuildRequires: gmp-devel
@ -35,10 +33,10 @@ functionality.}
%description %common_desc
%package -n python3-%{srcname}
%package -n python3-gmpy2
Summary: Python 3 interface to GMP, MPFR, and MPC
%description -n python3-%{srcname} %common_desc
%description -n python3-gmpy2 %common_desc
%package doc
Summary: Documentation for gmpy2
@ -49,7 +47,7 @@ Provides: bundled(jquery)
This package contains API documentation for gmpy2.
%prep
%autosetup -n %{srcname}-%{version}
%autosetup -n gmpy2-%{version}
# Update the sphinx theme name
sed -i "s/'default'/'classic'/" docs/conf.py
@ -67,13 +65,12 @@ make -C docs html
%install
%pyproject_install
%pyproject_save_files gmpy2
%check
PYTHONPATH=%{buildroot}%{python3_sitearch} %{python3} test/runtests.py
%files -n python3-%{srcname}
%license COPYING COPYING.LESSER
%{python3_sitearch}/%{srcname}*
%files -n python3-gmpy2 -f %{pyproject_files}
%files doc
%doc docs/_build/html/*