diff --git a/python-pygments-pytest.spec b/python-pygments-pytest.spec index d31bca3..b217050 100644 --- a/python-pygments-pytest.spec +++ b/python-pygments-pytest.spec @@ -1,17 +1,14 @@ -%global pypi_name pygments_pytest -%global dash_name pygments-pytest - # this is BRed by pytest, so we need to run without tests when bootstrapping # also pygments-ansi-color is not available in Fedora yet %bcond_with tests -Name: python-%{dash_name} +Name: python-pygments-pytest Version: 2.3.0 Release: 1%{?dist} Summary: A pygments lexer for pytest output License: MIT URL: https://github.com/asottile/pygments-pytest -Source0: %{url}/archive/v%{version}/%{dash_name}-%{version}.tar.gz +Source0: %{url}/archive/v%{version}/pygments-pytest-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel @@ -21,16 +18,16 @@ BuildRequires: pyproject-rpm-macros This library provides a pygments lexer called pytest. This library also provides a sphinx extension. -%package -n python3-%{dash_name} +%package -n python3-pygments-pytest Summary: %{summary} -%description -n python3-%{dash_name} +%description -n python3-pygments-pytest This library provides a pygments lexer called pytest. This library also provides a sphinx extension. %prep -%autosetup -n %{dash_name}-%{version} +%autosetup -n pygments-pytest-%{version} %generate_buildrequires %pyproject_buildrequires %{?with_tests:-t} @@ -40,14 +37,14 @@ This library also provides a sphinx extension. %install %pyproject_install -%pyproject_save_files %{pypi_name} +%pyproject_save_files pygments_pytest %if %{with tests} %check %pytest -v %endif -%files -n python3-%{dash_name} -f %pyproject_files +%files -n python3-pygments-pytest -f %pyproject_files %license LICENSE %doc README.md