diff --git a/python-testpath.spec b/python-testpath.spec index 96d0fab..3e13a5f 100644 --- a/python-testpath.spec +++ b/python-testpath.spec @@ -1,7 +1,6 @@ %bcond_without docs -%global pypi_name testpath -Name: python-%{pypi_name} +Name: python-testpath Version: 0.6.0 Release: 5%{?dist} 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 URL: https://github.com/jupyter/testpath -Source0: %pypi_source +Source0: %{pypi_source testpath} BuildArch: noarch @@ -30,10 +29,10 @@ mocking system commands and recording calls to those.} %description %_description -%package -n python3-%{pypi_name} +%package -n python3-testpath Summary: %summary -%description -n python3-%{pypi_name} %_description +%description -n python3-testpath %_description %if %{with docs} @@ -45,10 +44,10 @@ Documentation for %{name}. %prep -%autosetup -n %{pypi_name}-%{version} +%autosetup -n testpath-%{version} # The exe files are only needed on Microsoft Windows -rm -f %{pypi_name}/*.exe +rm -f testpath/*.exe %generate_buildrequires @@ -68,14 +67,14 @@ rm -rf html/.{doctrees,buildinfo} %install %pyproject_install -%pyproject_save_files %{pypi_name} +%pyproject_save_files testpath %check %pytest -%files -n python3-%{pypi_name} -f %{pyproject_files} +%files -n python3-testpath -f %{pyproject_files} %doc README.rst %license LICENSE