automatic version update by autodist [release 2.16.1-1mamba;Sun Sep 03 2023]

This commit is contained in:
Automatic Build System 2024-01-05 16:25:51 +01:00
parent 49679bd9d2
commit 355b44d8e5

View File

@ -1,21 +1,18 @@
%define pkgname %(echo %name | cut -d- -f2-)
Name: python-pygments Name: python-pygments
Version: 2.14.0 Version: 2.16.1
Release: 2mamba Release: 1mamba
Summary: A syntax highlighting package written in Python Summary: A syntax highlighting package written in Python
Group: System/Libraries/Python Group: System/Libraries/Python
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://pygments.org/ URL: https://pygments.org/
Source: http://pypi.debian.net/Pygments/Pygments-%{version}.tar.gz Source: http://pypi.debian.net/Pygments/Pygments-%{version}.tar.gz
License: BSD License: BSD
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: libpython3-devel BuildRequires: libpython3-devel
BuildRequires: python3.7dist(setuptools)
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: libpython3-devel >= 3.7.4
BuildRequires: python-setuptools
Requires: python >= %python_version
BuildArch: noarch BuildArch: noarch
%description %description
@ -44,46 +41,48 @@ This package contains utilities for %{name}.
%prep %prep
%setup -q -n Pygments-%{version} %setup -q -n Pygments-%{version}
%build
CFLAGS="%{optflags}" %{__python} setup.py build CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \ %{__python} -m installer --destdir=%{buildroot} dist/*.whl
-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
%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 manual page
install -D -m 0644 doc/pygmentize.1 \ install -D -m 0644 doc/pygmentize.1 \
%{buildroot}%{_mandir}/man1/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 %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files %{?pyappend} -f %{name}.filelist %files %{?pyappend}
%defattr(-,root,root) %defattr(-,root,root)
%dir %{python_sitearch}/pygments %{_bindir}/pygmentize*
%dir %{python_sitearch}/*.egg-info %{_mandir}/man1/pygmentize*.1*
%exclude %{_bindir}/pygmentize %dir %{python_sitelib}/Pygments-%{version}.dist-info
%exclude %{_mandir}/man1/pygmentize.1* %{python_sitelib}/Pygments-%{version}.dist-info/*
%dir %{python_sitelib}/pygments
%{python_sitelib}/pygments/*
%doc AUTHORS LICENSE %doc AUTHORS LICENSE
#CHANGES TODO
%files %{?pyappend:%pyappend-}tools -f %{name}.filelist
%defattr(-,root,root)
%{_bindir}/pygmentize
%{_mandir}/man1/pygmentize.1*
%changelog %changelog
* Sun Sep 03 2023 Automatic Build System <autodist@mambasoft.it> 2.16.1-1mamba
- automatic version update by autodist
* Thu Mar 09 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.14.0-2mamba * Thu Mar 09 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.14.0-2mamba
- rebuilt with python 3.10 - rebuilt with python 3.10