Expand %{pypi_name}
This commit is contained in:
parent
604580b1c0
commit
742c0666db
@ -1,7 +1,6 @@
|
|||||||
%bcond_without docs
|
%bcond_without docs
|
||||||
%global pypi_name testpath
|
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-testpath
|
||||||
Version: 0.6.0
|
Version: 0.6.0
|
||||||
Release: 5%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: Test utilities for code working with files and commands
|
Summary: Test utilities for code working with files and commands
|
||||||
@ -9,7 +8,7 @@ Summary: Test utilities for code working with files and commands
|
|||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/jupyter/testpath
|
URL: https://github.com/jupyter/testpath
|
||||||
|
|
||||||
Source0: %pypi_source
|
Source0: %{pypi_source testpath}
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -30,10 +29,10 @@ mocking system commands and recording calls to those.}
|
|||||||
%description %_description
|
%description %_description
|
||||||
|
|
||||||
|
|
||||||
%package -n python3-%{pypi_name}
|
%package -n python3-testpath
|
||||||
Summary: %summary
|
Summary: %summary
|
||||||
|
|
||||||
%description -n python3-%{pypi_name} %_description
|
%description -n python3-testpath %_description
|
||||||
|
|
||||||
|
|
||||||
%if %{with docs}
|
%if %{with docs}
|
||||||
@ -45,10 +44,10 @@ Documentation for %{name}.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{pypi_name}-%{version}
|
%autosetup -n testpath-%{version}
|
||||||
|
|
||||||
# The exe files are only needed on Microsoft Windows
|
# The exe files are only needed on Microsoft Windows
|
||||||
rm -f %{pypi_name}/*.exe
|
rm -f testpath/*.exe
|
||||||
|
|
||||||
|
|
||||||
%generate_buildrequires
|
%generate_buildrequires
|
||||||
@ -68,14 +67,14 @@ rm -rf html/.{doctrees,buildinfo}
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
%pyproject_save_files %{pypi_name}
|
%pyproject_save_files testpath
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
%files -n python3-testpath -f %{pyproject_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user