Compare commits
No commits in common. "538c5c7f8991daf1f5d0d904f69353c315ec1766" and "8fead11da95546c256c6fee13a30888940398e1e" have entirely different histories.
538c5c7f89
...
8fead11da9
BIN
Pygments-2.10.0.tar.gz
Normal file
BIN
Pygments-2.10.0.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -13,13 +13,14 @@ need to prettify source code. Highlights are: \
|
||||
* it is usable as a command-line tool and as a library \
|
||||
* … and it highlights even Perl 6!
|
||||
%bcond_with docs
|
||||
%bcond_without tests
|
||||
Name: python-pygments
|
||||
Summary: Syntax highlighting engine written in Python
|
||||
Version: 2.17.2
|
||||
Release: 1
|
||||
Version: 2.10.0
|
||||
Release: 3
|
||||
License: BSD-2-Clause
|
||||
URL: http://pygments.org/
|
||||
Source0: https://pypi.org/packages/source/P/Pygments/pygments-%{version}.tar.gz
|
||||
Source0: https://pypi.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
@ -28,15 +29,12 @@ BuildArch: noarch
|
||||
|
||||
%package -n python3-pygments
|
||||
BuildRequires: python3-devel, python3-setuptools
|
||||
BuildRequires: python3-setuptools_scm
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-wheel
|
||||
BuildRequires: python3-hatchling
|
||||
|
||||
%if %{with tests}
|
||||
BuildRequires: python3-pytest
|
||||
%endif
|
||||
%if %{with docs}
|
||||
BuildRequires: python3-sphinx python3-pip
|
||||
%endif
|
||||
|
||||
Summary: Syntax highlighting engine written in Python
|
||||
%{?python_provide:%python_provide python3-pygments}
|
||||
|
||||
@ -46,13 +44,26 @@ Summary: Syntax highlighting engine written in Python
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n pygments-%{version}
|
||||
%autosetup -p1 -n Pygments-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_build
|
||||
%{__sed} -i 's/\r//' LICENSE
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%py3_install
|
||||
%if %{with docs}
|
||||
%{__python3} setup.py build_sphinx
|
||||
rm -rf build/sphinx/html/.buildinfo
|
||||
install doc/pygmentize.1 -Dt %{buildroot}%{_mandir}/man1/
|
||||
chmod -x %{buildroot}%{_mandir}/man1/*.1
|
||||
%endif
|
||||
cp -r doc/docs doc/reST
|
||||
%if %{with tests}
|
||||
%check
|
||||
make test
|
||||
%endif
|
||||
|
||||
|
||||
%files -n python3-pygments
|
||||
%license LICENSE
|
||||
@ -60,27 +71,13 @@ Summary: Syntax highlighting engine written in Python
|
||||
%{_bindir}/pygmentize
|
||||
|
||||
%files help
|
||||
%doc AUTHORS CHANGES doc/reST
|
||||
%if %{with docs}
|
||||
%lang(en) %{_mandir}/man1/pygmentize.1*
|
||||
%doc build/sphinx/html
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Tue Jan 30 2024 zhaotianyang_z <zhaotianyang4@huawei.com> - 2.17.2-1
|
||||
- upgrade package to version 2.17.2
|
||||
|
||||
* Tue Nov 7 2023 Dongxing Wang <dxwangk@isoftstone.com> - 2.16.1-1
|
||||
- Update package to version 2.16.1
|
||||
|
||||
* Sun Jun 25 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 2.15.1-1
|
||||
- update package to the latest version of 2.15.1
|
||||
|
||||
* Tue Jan 17 2023 caofei <caofei@xfusion.com> - 2.10.0-5
|
||||
- Fix "do concurrent" and "go to" keywords in the Fortran
|
||||
|
||||
* Fri Jan 13 2023 caofei <caofei@xfusion.com> - 2.10.0-4
|
||||
- fixed typo
|
||||
|
||||
* Wed May 11 2022 wulei <wulei80@h-partners.com> - 2.10.0-3
|
||||
- License compliance rectification
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user