From 355b44d8e546631ee86f298563c64942b2574700 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Fri, 5 Jan 2024 16:25:51 +0100 Subject: [PATCH] automatic version update by autodist [release 2.16.1-1mamba;Sun Sep 03 2023] --- python-pygments.spec | 63 ++++++++++++++++++++++---------------------- 1 file changed, 31 insertions(+), 32 deletions(-) diff --git a/python-pygments.spec b/python-pygments.spec index 0e48d09..16f2e69 100644 --- a/python-pygments.spec +++ b/python-pygments.spec @@ -1,21 +1,18 @@ +%define pkgname %(echo %name | cut -d- -f2-) Name: python-pygments -Version: 2.14.0 -Release: 2mamba +Version: 2.16.1 +Release: 1mamba Summary: A syntax highlighting package written in Python Group: System/Libraries/Python Vendor: openmamba Distribution: openmamba -Packager: Stefano Cotta Ramusino +Packager: Silvan Calarco URL: https://pygments.org/ Source: http://pypi.debian.net/Pygments/Pygments-%{version}.tar.gz License: BSD ## AUTOBUILDREQ-BEGIN BuildRequires: libpython3-devel -BuildRequires: python3.7dist(setuptools) ## AUTOBUILDREQ-END -BuildRequires: libpython3-devel >= 3.7.4 -BuildRequires: python-setuptools -Requires: python >= %python_version BuildArch: noarch %description @@ -44,46 +41,48 @@ This package contains utilities for %{name}. %prep %setup -q -n Pygments-%{version} -%build -CFLAGS="%{optflags}" %{__python} setup.py build + +CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%{__python} setup.py install \ - -O1 --skip-build \ - --root="%{buildroot}" \ - --install-headers=%{_includedir}/python \ - --install-lib=%{python_sitearch} \ - --record=%{name}.filelist - -sed -i "\,egg-info$,d" %{name}.filelist -sed -i "\,lexer.py[co]$,d" %{name}.filelist -sed -i "\,style.py[co]$,d" %{name}.filelist -sed -i "\,cmdline.py[co]$,d" %{name}.filelist -sed -i "\,html.py[co]$,d" %{name}.filelist +%{__python} -m installer --destdir=%{buildroot} dist/*.whl +%if "%{?with_pyver}" != "3" +# Rename any conflicting file outside of python site packages tree +for f in %{_bindir}/pygmentize; do + mv %{buildroot}${f}{,-%{?pyappend}} +done +install -D -m 0644 doc/pygmentize.1 \ + %{buildroot}%{_mandir}/man1/pygmentize-%{?pyappend}.1 +%else # install manual page install -D -m 0644 doc/pygmentize.1 \ %{buildroot}%{_mandir}/man1/pygmentize.1 +%endif + +#sed -i "\,lexer.py[co]$,d" %{name}.filelist +#sed -i "\,style.py[co]$,d" %{name}.filelist +#sed -i "\,cmdline.py[co]$,d" %{name}.filelist +#sed -i "\,html.py[co]$,d" %{name}.filelist %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%files %{?pyappend} -f %{name}.filelist +%files %{?pyappend} %defattr(-,root,root) -%dir %{python_sitearch}/pygments -%dir %{python_sitearch}/*.egg-info -%exclude %{_bindir}/pygmentize -%exclude %{_mandir}/man1/pygmentize.1* +%{_bindir}/pygmentize* +%{_mandir}/man1/pygmentize*.1* +%dir %{python_sitelib}/Pygments-%{version}.dist-info +%{python_sitelib}/Pygments-%{version}.dist-info/* +%dir %{python_sitelib}/pygments +%{python_sitelib}/pygments/* %doc AUTHORS LICENSE -#CHANGES TODO - -%files %{?pyappend:%pyappend-}tools -f %{name}.filelist -%defattr(-,root,root) -%{_bindir}/pygmentize -%{_mandir}/man1/pygmentize.1* %changelog +* Sun Sep 03 2023 Automatic Build System 2.16.1-1mamba +- automatic version update by autodist + * Thu Mar 09 2023 Silvan Calarco 2.14.0-2mamba - rebuilt with python 3.10