15
0
Files
python-Pygments/python-Pygments.spec
Denisart Benjamin deec4b56d2 Accepting request 290356 from home:netsroth:branches:devel:languages:python
- Update to version 2.0.2:
  * Fix Python tracebacks getting duplicated in the console lexer
  * Backquote-delimited identifiers are now recognized in F#
  * Fix an encoding issue when using pygmentize with the -o option.
  * Default lexer encoding is now “guess”
  * Major update to Swift lexer.
  * Multiple fixes to lexer guessing in conflicting cases
  * Simplified regexes and builtin lists.
  * Dropped Python 2.4 and 2.5 compatibility
  * 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)
        GAP (PR#311)
        Golo (PR#309)
        Handlebars (PR#186)
        Hy (PR#238)
        Idris and Literate Idris (PR#210)

OBS-URL: https://build.opensuse.org/request/show/290356
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pygments?expand=0&rev=26
2015-03-12 09:21:47 +00:00

79 lines
2.7 KiB
RPMSpec

#
# spec file for package python-Pygments
#
# Copyright (c) 2015 SUSE LINUX Products 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/
#
Name: python-Pygments
Version: 2.0.2
Release: 0
Url: http://pygments.org
Summary: Pygments is a syntax highlighting package written in Python
License: BSD-2-Clause
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-nose
BuildRequires: python-setuptools
Requires: python-setuptools
Provides: python-pygments = %{version}
Obsoletes: python-pygments < %{version}
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%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
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
install -Dm0644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1/pygmentize.1
%check
nosetests
%files
%defattr(-,root,root,-)
%doc LICENSE AUTHORS CHANGES TODO
%{_bindir}/pygmentize
%{_mandir}/man1/pygmentize.1*
%{python_sitelib}/pygments/
%{python_sitelib}/Pygments-%{version}-py%{py_ver}.egg-info/
%changelog