automatic version update by autodist [release 2.16.1-1mamba;Sun Sep 03 2023]
This commit is contained in:
parent
49679bd9d2
commit
355b44d8e5
@ -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 <stefano.cotta@openmamba.org>
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
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 <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
|
||||
- rebuilt with python 3.10
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user