Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/python-pygments.git#987ed3b33f70aa31732cb10f814798672a38baab
This commit is contained in:
DistroBaker 2020-10-27 22:00:56 +01:00 committed by Petr Šabata
parent 23d4198ec9
commit c8e85af97c
3 changed files with 15 additions and 9 deletions

1
.gitignore vendored
View File

@ -8,3 +8,4 @@ Pygments-1.3.1.tar.gz
/Pygments-2.3.1.tar.gz
/Pygments-2.4.2.tar.gz
/Pygments-2.6.1.tar.gz
/Pygments-2.7.1.tar.gz

View File

@ -3,8 +3,8 @@
%bcond_without tests
Name: python-pygments
Version: 2.6.1
Release: 4%{?dist}
Version: 2.7.1
Release: 1%{?dist}
Summary: Syntax highlighting engine written in Python
License: BSD
@ -32,7 +32,7 @@ need to prettify source code. Highlights are:
%package -n python%{python3_pkgversion}-pygments
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: pyproject-rpm-macros
%if %{with tests}
BuildRequires: python%{python3_pkgversion}-pytest
%endif
@ -47,12 +47,16 @@ Summary: Syntax highlighting engine written in Python
%prep
%autosetup -p1 -n Pygments-%{version}
%generate_buildrequires
%pyproject_buildrequires
%build
sed -i 's/\r//' LICENSE
%py3_build
%pyproject_wheel
%install
%py3_install
%pyproject_install
%pyproject_save_files pygments
%if %{with docs}
%{python3} setup.py build_sphinx
@ -69,11 +73,9 @@ make test PYTHON=%{python3}
%endif
%files -n python%{python3_pkgversion}-pygments
%files -n python%{python3_pkgversion}-pygments -f %{pyproject_files}
%doc AUTHORS CHANGES doc/reST
%license LICENSE
%{python3_sitelib}/pygments/
%{python3_sitelib}/Pygments-%{version}-py%{python3_version}.egg-info/
%{_bindir}/pygmentize
%if %{with docs}
%lang(en) %{_mandir}/man1/pygmentize.1*
@ -81,6 +83,9 @@ make test PYTHON=%{python3}
%endif
%changelog
* Mon Oct 12 2020 Tomas Hrnciar <thrnciar@redhat.com> - 2.7.1-1
- Update to 2.7.1
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (Pygments-2.6.1.tar.gz) = 0d793bb6eabe43645541347e44932ee50ccd4309f40e7a327422bcbe57d40a7cb8bbf2fb0911744ed6f316c6c08f4216462be88d79192a2ea004d6da51329932
SHA512 (Pygments-2.7.1.tar.gz) = 95d1109cd53092fafa2f1d5c21a135c426700fc92e39bb22a27f47e63d10bdcb9e52593cd282339a3b501430ededbccea4f8d5970ba1171204579b964a6771c8