spec: replace hardcoded python3

Signed-off-by: Frédéric Pierret (fepitre) <frederic.pierret@qubes-os.org>
This commit is contained in:
Frédéric Pierret (fepitre) 2020-08-08 21:08:00 +02:00
parent d5a1b4e21e
commit 8ff7f90f12
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -30,19 +30,19 @@ need to prettify source code. Highlights are:
%description %_description %description %_description
%package -n python3-pygments %package -n python%{python3_pkgversion}-pygments
BuildRequires: python3-devel BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python3-setuptools BuildRequires: python%{python3_pkgversion}-setuptools
%if %{with tests} %if %{with tests}
BuildRequires: python3-pytest BuildRequires: python%{python3_pkgversion}-pytest
%endif %endif
%if %{with docs} %if %{with docs}
BuildRequires: python3-sphinx BuildRequires: python%{python3_pkgversion}-sphinx
%endif %endif
Summary: Syntax highlighting engine written in Python Summary: Syntax highlighting engine written in Python
%{?python_provide:%python_provide python3-pygments} %{?python_provide:%python_provide python%{python3_pkgversion}-pygments}
%description -n python3-pygments %_description %description -n python%{python3_pkgversion}-pygments %_description
%prep %prep
%autosetup -p1 -n Pygments-%{version} %autosetup -p1 -n Pygments-%{version}
@ -69,7 +69,7 @@ make test PYTHON=%{python3}
%endif %endif
%files -n python3-pygments %files -n python%{python3_pkgversion}-pygments
%doc AUTHORS CHANGES doc/reST %doc AUTHORS CHANGES doc/reST
%license LICENSE %license LICENSE
%{python3_sitelib}/pygments/ %{python3_sitelib}/pygments/