forked from pool/python-Pygments
Accepting request 1078284 from home:benoit_monin:branches:devel:languages:python
- update to 2.15.0 - increase required python version to 3.7 - set a minimum version for setuptools to match the requirement from upstream - since setup.py is gone: * require pip and wheel to build * use pyproject macros to build and install OBS-URL: https://build.opensuse.org/request/show/1078284 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=92
This commit is contained in:
@@ -24,17 +24,19 @@
|
||||
%endif
|
||||
|
||||
Name: python-Pygments
|
||||
Version: 2.14.0
|
||||
Version: 2.15.0
|
||||
Release: 0
|
||||
Summary: A syntax highlighting package written in Python
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://pygments.org
|
||||
Source: https://files.pythonhosted.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz
|
||||
BuildRequires: %{python_module base >= 3.6}
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest >= 7}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module setuptools >= 61}
|
||||
BuildRequires: %{python_module wcag-contrast-ratio}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros >= 20210929
|
||||
# Preferred for plugin loading, see https://pygments.org/docs/plugins/
|
||||
@@ -69,10 +71,10 @@ source code. Highlights are:
|
||||
%autosetup -n Pygments-%{version} -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
install -Dm0644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1/pygmentize.1
|
||||
%python_clone -a %{buildroot}%{_bindir}/pygmentize
|
||||
%python_clone -a %{buildroot}%{_mandir}/man1/pygmentize.1
|
||||
|
||||
Reference in New Issue
Block a user