Compare commits
10 Commits
8fead11da9
...
538c5c7f89
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
538c5c7f89 | ||
|
|
0879eb5c77 | ||
|
|
c34e7e6240 | ||
|
|
b6d7a40620 | ||
|
|
24e1f8e4f2 | ||
|
|
eeb03277e4 | ||
|
|
0752ab7452 | ||
|
|
cb76d10eb3 | ||
|
|
1cd962c048 | ||
|
|
569ba1e863 |
Binary file not shown.
BIN
pygments-2.17.2.tar.gz
Normal file
BIN
pygments-2.17.2.tar.gz
Normal file
Binary file not shown.
@ -13,14 +13,13 @@ 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.10.0
|
||||
Release: 3
|
||||
Version: 2.17.2
|
||||
Release: 1
|
||||
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
|
||||
|
||||
@ -29,12 +28,15 @@ BuildArch: noarch
|
||||
|
||||
%package -n python3-pygments
|
||||
BuildRequires: python3-devel, python3-setuptools
|
||||
%if %{with tests}
|
||||
BuildRequires: python3-pytest
|
||||
%endif
|
||||
BuildRequires: python3-setuptools_scm
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-wheel
|
||||
BuildRequires: python3-hatchling
|
||||
|
||||
%if %{with docs}
|
||||
BuildRequires: python3-sphinx python3-pip
|
||||
%endif
|
||||
|
||||
Summary: Syntax highlighting engine written in Python
|
||||
%{?python_provide:%python_provide python3-pygments}
|
||||
|
||||
@ -44,26 +46,13 @@ Summary: Syntax highlighting engine written in Python
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n Pygments-%{version}
|
||||
%autosetup -p1 -n pygments-%{version}
|
||||
|
||||
%build
|
||||
%{__sed} -i 's/\r//' LICENSE
|
||||
%py3_build
|
||||
%pyproject_build
|
||||
|
||||
%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
|
||||
|
||||
%pyproject_install
|
||||
|
||||
%files -n python3-pygments
|
||||
%license LICENSE
|
||||
@ -71,13 +60,27 @@ make test
|
||||
%{_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