15
0

Accepting request 755071 from home:benoit_monin:branches:devel:languages:python

- update to version 2.5.2
- drop denose.patch: fixed upstream
- fix postuninstall alternative

OBS-URL: https://build.opensuse.org/request/show/755071
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=59
This commit is contained in:
Tomáš Chvátal
2019-12-09 07:33:18 +00:00
committed by Git OBS Bridge
parent 8ab74062fa
commit 6d9951f6c1
5 changed files with 81 additions and 328 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Pygments
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,15 +18,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-Pygments
Version: 2.4.2
Version: 2.5.2
Release: 0
Summary: A syntax highlighting package written in Python
License: BSD-2-Clause
Group: Development/Languages/Python
URL: http://pygments.org
Source: https://files.pythonhosted.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz
# bt#birkenfeld/pygments-main#1490
Patch1: denose.patch
# We need pytest just because of its test runner, it seems even
# python3 stdlib unittest runner doesn't work
BuildRequires: %{python_module pytest}
@@ -55,7 +53,6 @@ source code. Highlights are:
%prep
%setup -q -n Pygments-%{version}
%autopatch -p1
# Remove non-oss licensed files, see bnc# 760344
rm tests/examplefiles/{Sorting,test}.mod
@@ -80,14 +77,14 @@ install -Dm0644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1/pygmentize.1
%python_install_alternative pygmentize
%postun
%python_install_alternative pygmentize
%python_uninstall_alternative pygmentize
%check
%pytest
%files %{python_files}
%license LICENSE
%doc AUTHORS CHANGES TODO
%doc AUTHORS CHANGES
%python_alternative %{_bindir}/pygmentize
%python3_only %{_mandir}/man1/pygmentize.1*
%{python_sitelib}/pygments/