Search
SailfishOS Open Build Service
>
Projects
>
home:rcolistete
>
python3-pygments
> python3-pygments.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File python3-pygments.spec of Package python3-pygments
# # spec file for package python3-pygments for Mer, based on OpenSuse version # Name: python3-pygments Version: 2.1.3 Release: 0 Url: http://pygments.org Summary: Pygments is a syntax highlighting package written in Python License: BSD-2-Clause Packager: Roberto Colistete Jr. <rcolistete.maemo@gmail.com> Group: Development/Languages/Python Source: Pygments-%{version}.tar.gz BuildRequires: python3-devel #BuildRequires: python3-setuptools #Requires: python3-setuptools BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description Pygments is a syntax highlighting package written in Python. It is a generic syntax highlighter for general use in all kinds of software such as forum systems, wikis or other applications that need to prettify source code. Highlights are: * a wide range of common languages and markup formats is supported * special attention is paid to details, increasing quality by a fair amount * support for new languages and formats are added easily * a number of output formats, presently HTML, LaTeX, RTF, SVG, all image formats that PIL supports and ANSI sequences * it is usable as a command-line tool and as a library * ... and it highlights even Brainfuck! %define py3_ver 3.4 %define python3_sitelib %{_libdir}/python3.?/site-packages %prep %setup -q -n Pygments-%{version} # Remove non-oss licensed files, see bnc# 760344 rm tests/examplefiles/{Sorting,test}.mod sed -i "s|pygmentize|pygmentize-%{py3_ver}|" setup.py # Add Python3 version suffix %build python3 setup.py build %install python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} # Rename man-page to avoid conflicts with the python 2 version install -Dm0644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1/pygmentize-%{py3_ver}.1 %files %defattr(-,root,root,-) %doc LICENSE AUTHORS CHANGES TODO %{_bindir}/pygmentize-%{py3_ver} %{_mandir}/man1/pygmentize-%{py3_ver}.1.gz %{python3_sitelib}/pygments/ %{python3_sitelib}/Pygments-%{version}-py%{py3_ver}.egg-info/ %changelog * Mon Aug 15 2016 Roberto Colistete Jr. <rcolistete.maemo@gmail.com> - 2.1.3 - (Python 3) pygments 2.1.3 (02/03/2016) for Mer (15/08/2016) : - * first release.