From f601806e8695c1565293f06cb319c48abf6e1874 Mon Sep 17 00:00:00 2001 From: JinWang An Date: Tue, 5 Jan 2021 16:25:49 +0900 Subject: Bump to python-pygments 2.7.3 Change-Id: I6b7a017551b9706436843618811de4f32bc4cb34 Signed-off-by: JinWang An --- packaging/python-pygments.manifest | 5 ++++ packaging/python-pygments.spec | 55 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 packaging/python-pygments.manifest create mode 100644 packaging/python-pygments.spec (limited to 'packaging') diff --git a/packaging/python-pygments.manifest b/packaging/python-pygments.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/python-pygments.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/python-pygments.spec b/packaging/python-pygments.spec new file mode 100644 index 0000000..31e181f --- /dev/null +++ b/packaging/python-pygments.spec @@ -0,0 +1,55 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Name: python-pygments +Version: 2.7.3 +Release: 1 +Summary: A syntax highlighting engine written in Python + +Group: Development/Libraries +License: BSD +URL: http://pygments.org/ +Source0: %{name}-%{version}.tar.gz +Source1001: python-pygments.manifest + +BuildArch: noarch +BuildRequires: python-devel, python-setuptools +Requires: python-setuptools + + +%description +Pygments is a syntax highlighting engine written in Python. That means, it +will take source code (or other markup) in a supported language and output +a processed version (in different formats) containing syntax highlighting +markup. + + +%prep +%setup -q + + +%build +cp %{SOURCE1001} . +%{__python} setup.py build +%{__sed} -i 's/\r//' LICENSE + + +%install + +%if 0%{?suse_version} +%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES +%else +%{__python} setup.py install -O1 --skip-build --root %{buildroot} --prefix=%{_prefix} +%endif + +%if 0%{?suse_version} +%files -f INSTALLED_FILES +%manifest %{name}.manifest +%else +%files +%manifest %{name}.manifest +%{python_sitelib}/* +%endif +# For noarch packages: sitelib +%{_bindir}/pygmentize + + -- cgit v1.2.3