Search
SailfishOS Open Build Service
>
Projects
>
home:nodevel
:
python3-pandas
>
python3-Pygments
> Changes
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
[-]
[+]
Added
python3-Pygments.spec
@@ -0,0 +1,326 @@ +# +# spec file for package python3-Pygments +# +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +%{?!py3_ver: %global py3_ver 3.4} +%{?!python3_sitearch: %global python3_sitearch /usr/lib/python%{py3_ver}/site-packages/} +%{?!python3_sitelib: %global python3_sitelib /usr/lib/python%{py3_ver}/site-packages/} + +Name: python3-Pygments +Version: 2.1.3 +Release: 28.1 +Url: http://pygments.org +Summary: Pygments is a syntax highlighting package written in Python +License: BSD-2-Clause +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python3-devel +BuildRequires: python3-nose +BuildRequires: python3-base +Requires: python3-base +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! + +%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 +* Sun May 8 2016 arun@gmx.de +- specfile: + * changed to https for source url + * updated source url to files.pythonhosted.org +* Fri Mar 4 2016 arun@gmx.de +- update to version 2.1.3: + * Fixed regression in Bash lexer (PR#563) +- changes from version 2.1.2: + * Fixed Python 3 regression in image formatter (#1215) + * Fixed regression in Bash lexer (PR#562) +* Mon Feb 15 2016 arun@gmx.de +- update to version 2.1.1: + * Fixed Jython compatibility (#1205) + * Fixed HTML formatter output with leading empty lines (#1111) + * Added a mapping table for LaTeX encodings and added utf8 (#1152) + * Fixed image formatter font searching on Macs (#1188) + * Fixed deepcopy-ing of Token instances (#1168) + * Fixed Julia string interpolation (#1170) + * Fixed statefulness of HttpLexer between get_tokens calls + * Many smaller fixes to various lexers +* Sun Jan 24 2016 arun@gmx.de +- specfile: + * update copyright year +- update to version 2.1: + * Added lexers: + + Emacs Lisp (PR#431) + + Arduino (PR#442) + + Modula-2 with multi-dialect support (#1090) + + Fortran fixed format (PR#213) + + Archetype Definition language (PR#483) + + Terraform (PR#432) + + Jcl, Easytrieve (PR#208) + + ParaSail (PR#381) + + Boogie (PR#420) + + Turtle (PR#425) + + Fish Shell (PR#422) + + Roboconf (PR#449) + + Test Anything Protocol (PR#428) + + Shen (PR#385) + + Component Pascal (PR#437) + + SuperCollider (PR#472) + + Shell consoles (Tcsh, PowerShell, MSDOS) (PR#479) + + Elm and J (PR#452) + + Crmsh (PR#440) + + Praat (PR#492) + + CSound (PR#494) + + Ezhil (PR#443) + + Thrift (PR#469) + + QVT Operational (PR#204) + + Hexdump (PR#508) + + CAmkES Configuration (PR#462) + * Added styles: + + Lovelace (PR#456) + + Algol and Algol-nu (#1090) + * Added formatters: + + IRC (PR#458) + + True color (24-bit) terminal ANSI sequences (#1142) + (formatter alias: "16m") + * New "filename" option for HTML formatter (PR#527). + * Improved performance of the HTML formatter for long lines + (PR#504). + * Updated autopygmentize script (PR#445). + * Fixed style inheritance for non-standard token types in HTML + output. + * Added support for async/await to Python 3 lexer. + * Rewrote linenos option for TerminalFormatter (it's better, but + slightly different output than before) (#1147). + * Javascript lexer now supports most of ES6 (#1100). + * Cocoa builtins updated for iOS 8.1 (PR#433). + * Combined BashSessionLexer and ShellSessionLexer, new version + should support the prompt styles of either. + * Added option to pygmentize to show a full traceback on exceptions. + * Fixed incomplete output on Windows and Python 3 (e.g. when using + iPython Notebook) (#1153). + * Allowed more traceback styles in Python console lexer (PR#253). + * Added decorators to TypeScript (PR#509). + * Fix highlighting of certain IRC logs formats (#1076). +* Sun Feb 8 2015 p.drouand@gmail.com +- Revert documentation building; avoid a build cycle with python3-Sphinx +- Remove python3 build requires; useless +* Sun Jan 25 2015 arun@gmx.de +- specfile: + * add rules to make doc/build + * add Sphings as requirement + * remove 2to3 as requirement +- update to version 2.0.2: + * Fix Python tracebacks getting duplicated in the console lexer (#1068). + * Backquote-delimited identifiers are now recognized in F# (#1062). +* Thu Jan 1 2015 arun@gmx.de +- specfile: + * changed coyright year + * updated path to man-page in tar-ball (docs->doc) + * updated path: docs/build -> doc/_build +* Thu Dec 18 2014 arun@gmx.de +- update to version 2.0.1: + * Fix an encoding issue when using ``pygmentize`` with the ``-o`` option. +- changes from version 2.0: + * Default lexer encoding is now "guess", i.e. UTF-8 / Locale / + Latin1 is tried in that order. + * Major update to Swift lexer (PR#410). + * Multiple fixes to lexer guessing in conflicting cases + * recognize HTML5 by doctype + * recognize XML by XML declaration + * don't recognize C/C++ as SystemVerilog + * Simplified regexes and builtin lists. +- changes from version 2.0rc1: + * Dropped Python 2.4 and 2.5 compatibility. This is in favor of single-source + compatibility between Python 2.6, 2.7 and 3.3+. + * New website and documentation based on Sphinx (finally!) + * Lexers added: + * APL (#969) + * Agda and Literate Agda (PR#203) + * Alloy (PR#355) + * AmbientTalk + * BlitzBasic (PR#197) + * ChaiScript (PR#24) + * Chapel (PR#256) + * Cirru (PR#275) + * Clay (PR#184) + * ColdFusion CFC (PR#283) + * Cryptol and Literate Cryptol (PR#344) + * Cypher (PR#257) + * Docker config files + * EBNF (PR#193) + * Eiffel (PR#273)