python-pygments 2.13.0-1 (x86_64;znver1;aarch64) 2022-15216
0

Status rejected
Submitter alexander [@T] mezon.ru
Platform rolling
Repository main
URL https://abf.openmandriva.org/build_lists/234600
Packages
python-pygments-2.13.0-1.x86_64.binary
python-pygments-2.13.0-1.x86_64.source
python-pygments-2.13.0-1.znver1.binary
python-pygments-2.13.0-1.znver1.source
python-pygments-2.13.0-1.aarch64.binary
python-pygments-2.13.0-1.aarch64.source
Build Date 2022-09-25 19:59:22 +0000 UTC
Last Updated 2022-09-30 15:43:27.714011779 +0000 UTC
$ git show --format=fuller --patch-with-stat --summary 3d27789164077cc4a22e8f856126d1765ab6c7b7

commit 3d27789164077cc4a22e8f856126d1765ab6c7b7
Author:     Bernhard Rosenkränzer <bero@lindev.ch>
AuthorDate: Sun Sep 25 21:38:31 2022 +0200
Commit:     Bernhard Rosenkränzer <bero@lindev.ch>
CommitDate: Sun Sep 25 21:38:31 2022 +0200

    2.13.0
---
 .abf.yml             |  2 +-
 python-pygments.spec | 44 ++++----------------------------------------
 2 files changed, 5 insertions(+), 41 deletions(-)

diff --git a/.abf.yml b/.abf.yml
index 8fb638a..1c83522 100644
--- a/.abf.yml
+++ b/.abf.yml
@@ -1,2 +1,2 @@
 sources:
-  2.11.2.tar.gz: 95b97c69501f0133dd81eea5b75d273cb6c0d845
+  2.13.0.tar.gz: b064cdbb380869e4f42ae07f22a499d4a3cec099
diff --git a/python-pygments.spec b/python-pygments.spec
index 6119ac7..0add3ae 100644
--- a/python-pygments.spec
+++ b/python-pygments.spec
@@ -1,12 +1,10 @@
 %define tarname Pygments
 %define module	pygments
 
-%bcond_with python2
-
 Summary:	Syntax highlighting package written in Python
 Name:		python-%{module}
-Version:	2.11.2
-Release:	2
+Version:	2.13.0
+Release:	1
 Group:		Development/Python
 License:	BSD
 Url:		http://pygments.org/
@@ -14,10 +12,6 @@ Source0:	https://github.com/pygments/pygments/archive/%{version}.tar.gz
 BuildArch:	noarch
 BuildRequires:	python-setuptools
 BuildRequires:  pkgconfig(python3)
-%if %{with python2}
-BuildRequires:	pkgconfig(python2)
-BuildRequires:	python2-setuptools
-%endif
 
 %description
 Pygments is a syntax highlighting package written in Python.  It is a
@@ -33,38 +27,14 @@ prettify source code.  Highlights are:
 * it is usable as a command-line tool and as a library
 * ... and it highlights even Brainf*ck!
 
-%package -n python2-%{module}
-Summary:	Pygments syntax highlighter for Python 2.x
-Group:		Development/Python
-Requires:	python2-pkg-resources
-
-%description -n python2-%{module}
-Pygments syntax highlighter for Python 2.x
-
 %prep
 %autosetup -p1 -n pygments-%{version}
-%if %{with python2}
-mkdir python2
-cp -a `ls |grep -v python2` python2/
-%endif
 
 %build
-%{__python} setup.py build
-
-%if %{with python2}
-cd python2
-python2 setup.py build
-%endif
+%py_build
 
 %install
-# python2 first, so the default build can overwrite files in %_bindir
-%if %{with python2}
-cd python2
-PYTHONDONTWRITEBYTECODE=yes python2 setup.py install --skip-build --root=%{buildroot}
-cd ..
-%endif
-
-PYTHONDONTWRITEBYTECODE=yes %{__python} setup.py install --skip-build --root=%{buildroot}
+%py_install
 
 mkdir -p %{buildroot}%{_mandir}/man1
 install -m 644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1
@@ -75,9 +45,3 @@ install -m 644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1
 %{py_sitedir}/pygments
 %{py_sitedir}/Pygments-*
 %{_mandir}/man1/pygmentize.*
-
-%if %{with python2}
-%files -n python2-pygments
-%{py2_puresitedir}/pygments
-%{py2_puresitedir}/Pygments-*
-%endif
Not Available

benbullard79 [@T] cox.netNo Comment.566d 03hrs