Compare commits

..

No commits in common. "538c5c7f8991daf1f5d0d904f69353c315ec1766" and "8fead11da95546c256c6fee13a30888940398e1e" have entirely different histories.

3 changed files with 24 additions and 27 deletions

BIN
Pygments-2.10.0.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -13,13 +13,14 @@ need to prettify source code. Highlights are: \
* it is usable as a command-line tool and as a library \ * it is usable as a command-line tool and as a library \
* and it highlights even Perl 6! * and it highlights even Perl 6!
%bcond_with docs %bcond_with docs
%bcond_without tests
Name: python-pygments Name: python-pygments
Summary: Syntax highlighting engine written in Python Summary: Syntax highlighting engine written in Python
Version: 2.17.2 Version: 2.10.0
Release: 1 Release: 3
License: BSD-2-Clause License: BSD-2-Clause
URL: http://pygments.org/ 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 BuildArch: noarch
@ -28,15 +29,12 @@ BuildArch: noarch
%package -n python3-pygments %package -n python3-pygments
BuildRequires: python3-devel, python3-setuptools BuildRequires: python3-devel, python3-setuptools
BuildRequires: python3-setuptools_scm %if %{with tests}
BuildRequires: python3-pip BuildRequires: python3-pytest
BuildRequires: python3-wheel %endif
BuildRequires: python3-hatchling
%if %{with docs} %if %{with docs}
BuildRequires: python3-sphinx python3-pip BuildRequires: python3-sphinx python3-pip
%endif %endif
Summary: Syntax highlighting engine written in Python Summary: Syntax highlighting engine written in Python
%{?python_provide:%python_provide python3-pygments} %{?python_provide:%python_provide python3-pygments}
@ -46,13 +44,26 @@ Summary: Syntax highlighting engine written in Python
%package_help %package_help
%prep %prep
%autosetup -p1 -n pygments-%{version} %autosetup -p1 -n Pygments-%{version}
%build %build
%pyproject_build %{__sed} -i 's/\r//' LICENSE
%py3_build
%install %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 %files -n python3-pygments
%license LICENSE %license LICENSE
@ -60,27 +71,13 @@ Summary: Syntax highlighting engine written in Python
%{_bindir}/pygmentize %{_bindir}/pygmentize
%files help %files help
%doc AUTHORS CHANGES doc/reST
%if %{with docs} %if %{with docs}
%lang(en) %{_mandir}/man1/pygmentize.1* %lang(en) %{_mandir}/man1/pygmentize.1*
%doc build/sphinx/html %doc build/sphinx/html
%endif %endif
%changelog %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 * Wed May 11 2022 wulei <wulei80@h-partners.com> - 2.10.0-3
- License compliance rectification - License compliance rectification