python-pygments/python-pygments.spec

335 lines
12 KiB
RPMSpec
Raw Normal View History

%global upstream_name Pygments
2017-03-20 14:26:09 +00:00
%global srcname pygments
%global sum Syntax highlighting engine written in Python
2019-03-12 13:18:29 +00:00
# when bootstrapping, we cannot yet use sphinx
%bcond_without docs
2007-07-21 23:14:09 +00:00
Name: python-pygments
2019-03-12 13:18:29 +00:00
Version: 2.3.1
Release: 1%{?dist}
2017-03-20 14:26:09 +00:00
Summary: %{sum}
2007-07-21 23:14:09 +00:00
License: BSD
URL: http://pygments.org/
2019-03-12 13:18:29 +00:00
Source0: %{pypi_source %{upstream_name} %{version}}
# https://bitbucket.org/birkenfeld/pygments-main/commits/113118f16792
Patch1: sphinx2.patch
2007-07-21 23:14:09 +00:00
BuildArch: noarch
2017-03-20 14:26:09 +00:00
%description
Pygments 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:
2017-03-06 15:26:49 +00:00
2017-03-20 14:26:09 +00:00
* a wide range of common languages and markup formats is supported
* special attention is paid to details that increase highlighting
quality
* support for new languages and formats are added easily; most
languages use a simple regex-based lexing mechanism
* a number of output formats is available, among them HTML, RTF,
LaTeX and ANSI sequences
* it is usable as a command-line tool and as a library
* ... and it highlights even Brainf*ck!
%package -n python2-%{srcname}
2019-03-12 13:18:29 +00:00
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: python2-nose
Requires: python2-setuptools
2017-03-20 14:26:09 +00:00
Summary: %{sum}
%{?python_provide:%python_provide python2-%{srcname}}
2017-03-20 14:26:09 +00:00
%description -n python2-%{srcname}
Pygments 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 that increase highlighting
quality
* support for new languages and formats are added easily; most
languages use a simple regex-based lexing mechanism
* a number of output formats is available, among them HTML, RTF,
LaTeX and ANSI sequences
* it is usable as a command-line tool and as a library
* ... and it highlights even Brainf*ck!
2017-03-20 14:26:09 +00:00
%package -n python3-%{srcname}
2019-03-12 13:18:29 +00:00
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-nose
2019-02-27 01:25:58 +00:00
Requires: python3-setuptools
2019-03-12 13:18:29 +00:00
%if %{with docs}
BuildRequires: python3-sphinx
%endif
2017-03-20 14:26:09 +00:00
Summary: %{sum}
%{?python_provide:%python_provide python3-%{srcname}}
2011-06-24 14:18:29 +00:00
2017-03-20 14:26:09 +00:00
%description -n python3-%{srcname}
2011-06-24 14:18:29 +00:00
Pygments 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:
2007-07-21 23:14:09 +00:00
2017-03-20 14:26:09 +00:00
* a wide range of common languages and markup formats is supported
* special attention is paid to details that increase highlighting
quality
* support for new languages and formats are added easily; most
languages use a simple regex-based lexing mechanism
* a number of output formats is available, among them HTML, RTF,
LaTeX and ANSI sequences
* it is usable as a command-line tool and as a library
* ... and it highlights even Brainf*ck!
2007-07-21 23:14:09 +00:00
2017-03-20 14:26:09 +00:00
%prep
2019-03-12 13:18:29 +00:00
%autosetup -p1 -n %{upstream_name}-%{version}
2007-07-21 23:14:09 +00:00
%build
2007-08-17 20:46:41 +00:00
%{__sed} -i 's/\r//' LICENSE
2017-03-20 14:26:09 +00:00
%py2_build
%py3_build
2007-07-21 23:14:09 +00:00
%install
2017-03-22 14:22:35 +00:00
# Python 2 install
2017-03-20 14:26:09 +00:00
%py2_install
2007-07-21 23:14:09 +00:00
2017-03-22 14:22:35 +00:00
# Python 3 install
2017-03-20 14:26:09 +00:00
%py3_install
2019-03-12 13:18:29 +00:00
%if %{with docs}
%{__python3} setup.py build_sphinx
install doc/pygmentize.1 -Dt %{buildroot}%{_mandir}/man1/
2017-03-20 14:26:09 +00:00
%endif
2019-03-12 13:18:29 +00:00
cp -r doc/docs doc/reST
2017-03-06 15:26:49 +00:00
%check
2018-07-04 15:25:45 +00:00
make test PYTHON=%{__python2}
make test PYTHON=%{__python3}
2017-03-20 14:26:09 +00:00
%files -n python2-pygments
2019-03-12 13:18:29 +00:00
%doc AUTHORS CHANGES doc/reST TODO
%if %{with docs}
%doc build/sphinx/html
%endif
2019-03-12 13:18:29 +00:00
%license LICENSE
%{python2_sitelib}/pygments/
%{python2_sitelib}/Pygments-%{version}-py%{python2_version}.egg-info/
2007-07-21 23:14:09 +00:00
%files -n python3-pygments
2019-03-12 13:18:29 +00:00
%doc AUTHORS CHANGES doc/reST TODO
2017-03-22 14:22:35 +00:00
%license LICENSE
2019-03-12 13:18:29 +00:00
%{python3_sitelib}/pygments/
%{python3_sitelib}/Pygments-%{version}-py%{python3_version}.egg-info/
%{_bindir}/pygmentize
2019-03-12 13:18:29 +00:00
%if %{with docs}
2017-03-22 14:22:35 +00:00
%lang(en) %{_mandir}/man1/pygmentize.1*
2019-03-12 13:18:29 +00:00
%doc build/sphinx/html
2017-03-20 14:26:09 +00:00
%endif
2011-06-24 14:18:29 +00:00
2007-07-21 23:14:09 +00:00
%changelog
2019-03-12 13:18:29 +00:00
* Tue Mar 12 2019 Miro Hrončok <mhroncok@redhat.com> - 2.3.1-1
- Update to 2.3.1
2019-03-11 14:13:31 +00:00
* Mon Mar 11 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.2.0-17
- Use python3-sphinx to build docs
2019-02-27 01:25:58 +00:00
* Tue Feb 26 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.2.0-16
- Add missing setuptools Requires
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-07-04 15:25:45 +00:00
* Wed Jul 04 2018 Miro Hrončok <mhroncok@redhat.com> - 2.2.0-13
- Run tests
- Add fix for 3.7
2018-06-14 09:52:56 +00:00
* Thu Jun 14 2018 Miro Hrončok <mhroncok@redhat.com> - 2.2.0-12
- Rebuilt for Python 3.7
2018-03-19 17:11:14 +00:00
* Mon Mar 19 2018 Steve Milner <smilner@redhat.com> - 2.2.0-11
- Added import-directive.patch to work around a change in sphinx.
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2017-09-29 16:52:28 +00:00
* Fri Sep 29 2017 Troy Dawson <tdawson@redhat.com> - 2.2.0-9
- Cleanup spec file conditionals
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2019-02-27 01:24:19 +00:00
* Thu Mar 23 2017 Steve Milner <smilner@redhat.com> - 2.2.0-7
2017-03-23 18:43:19 +00:00
- Fixed python2 sitelib in files section.
2017-03-22 14:22:35 +00:00
* Wed Mar 22 2017 Steve Milner <smilner@redhat.com> - 2.2.0-6
- Dropped python26 support.
- Spec clean up
2017-03-20 14:26:09 +00:00
* Mon Mar 20 2017 Steve Milner <smilner@redhat.com> - 2.2.0-5
- Updated for standards per BZ#1433650
* Mon Mar 6 2017 Steve Milner <smilner@redhat.com> - 2.2.0-4
- Added conflict per BZ#1429075
2017-03-06 15:31:14 +00:00
* Mon Mar 6 2017 Steve Milner <smilner@redhat.com> - 2.2.0-3
2017-03-06 15:26:49 +00:00
- Python3 package now houses the pygmentize binary
- Fixed Source0 url to point to pypi.org
- Made python3-nose a hard BuildRequirement for python3
2017-03-06 15:31:14 +00:00
* Thu Mar 2 2017 Steve Milner <smilner@redhat.com> - 2.2.0-2
- Update bin to come back into line with Fedora standards
2017-03-02 20:23:25 +00:00
* Thu Mar 2 2017 Steve Milner <smilner@redhat.com> - 2.2.0-1
- Update for upstream release.
2017-03-02 19:57:16 +00:00
* Thu Mar 2 2017 Steve Milner <smilner@redhat.com> - 2.1.3-5
- Split bin between versions.
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Mon Dec 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 2.1.3-3
- Rebuild for Python 3.6
- Don't make rpmbuild fail on failed tests for now
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.3-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2016-03-04 14:36:04 +00:00
* Fri Mar 4 2016 Steve Milner <smilner@redhat.com> - 2.1.3-1
- Update for upstream release.
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Thu Nov 12 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-4
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
2015-10-29 14:39:45 +00:00
* Thu Oct 29 2015 Steve Milner <smilner@redhat.com> - 2.0.2-3
- Backport patch to fix font manager shell injection for BZ#1276321
2015-10-12 11:58:43 +00:00
* Mon Oct 12 2015 Robert Kuska <rkuska@redhat.com> - 2.0.2-2
- Rebuilt for Python3.5 rebuild
- Also remove python3-sphinx from BR as docs are built only with python2-sphinx
2015-10-12 11:58:43 +00:00
2015-08-24 13:56:58 +00:00
* Mon Aug 24 2015 Steve Milner <smilner@redhat.com> - 2.0.2-1
- update for upstream release.
2015-08-24 14:04:23 +00:00
- Added python-pygments/python3-pygments to BuildRequires.
2015-08-24 13:56:58 +00:00
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2014-05-10 03:10:30 +00:00
* Sat May 10 2014 Orion Poplawski <orion@cora.nwra.com> - 1.6-2
- Rebuild for Python 3.4
2013-11-26 13:53:18 +00:00
* Tue Nov 26 2013 Steve Milner <smilner@fedoraproject.org> - 1.6-1
- update for upstream release.
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 1.4-7
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
* Fri Aug 3 2012 David Malcolm <dmalcolm@redhat.com> - 1.4-6
- remove rhel logic from with_python3 conditional
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Tue Sep 13 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.4-3
- Really enable the python3 unittests.
- Fix python26 byte compilation (thanks to Jeffrey Ness)
* Sat Sep 10 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.4-2
- Fix python main package having dependencies for the python2.6 subpackage
- Fix places that used the default python instead of python26
- Attempt to make byte compilation more robust in case we add python3 to EPEL5
- Run unittests on python3 in F15+
2011-06-24 14:18:29 +00:00
* Fri Jun 24 2011 Steve Milner <smilner@fedoraproject.org> - 1.4-1
- update for upstream release
- Add python2.6 support done by Steve Traylen <steve.traylen@cern.ch>. BZ#662755.
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Wed Aug 25 2010 Thomas Spura <tomspur@fedoraproject.org> - 1.3.1-7
- update to most recent python guidelines
- rebuild with python3.2
http://lists.fedoraproject.org/pipermail/devel/2010-August/141368.html
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.3.1-6
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
* Thu May 6 2010 Gareth Armstrong <gareth.armstrong@hp.com> - 1.3.1-5
- Enforce that Pygments requires Python 2.4 or later via an explicit BR
- Minor tweaks to spec file
- Deliver html and reST doc files to specifically named directories
- Align description with that of http://pygments.org/
- Add %%check section for Python2 and add BR on python-nose
2010-04-23 17:22:52 +00:00
* Fri Apr 23 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3.1-4
- switched with_python3 back to 1
* Fri Apr 23 2010 David Malcolm <dmalcolm@redhat.com> - 1.3.1-3
- add python3 subpackage (BZ#537244), ignoring soft-dep on imaging for now
2015-08-24 13:56:58 +00:00
* Tue Apr 13 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3.1-2
2010-04-13 14:04:16 +00:00
- added python-imaging as a dependency per BZ#581663.
2010-03-06 23:59:33 +00:00
* Sat Mar 6 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3.1-1
- Updated for release.
2009-09-29 22:49:11 +00:00
* Tue Sep 29 2009 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.1.1-1
- Updated for release.
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2008-12-22 01:59:24 +00:00
* Sun Dec 21 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.0-3
- Updated for release.
2008-11-29 15:52:20 +00:00
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0-2
- Rebuild for Python 2.6
2015-08-24 13:56:58 +00:00
* Thu Nov 27 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.0-1
2008-11-28 03:18:51 +00:00
- Updated for upstream 1.0.
* Sun Sep 14 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.11.1-1
- Updated for upstream 0.11.
2008-07-22 01:39:28 +00:00
* Mon Jul 21 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.10-1
- Updated for upstream 0.10.
2007-11-29 13:57:09 +00:00
* Thu Nov 29 2007 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.9-2
- Added python-setuptools as a Requires per bz#403601.
2007-11-13 00:23:16 +00:00
* Mon Nov 12 2007 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.9-1
- Updated for upstream 0.9.
2015-08-24 13:56:58 +00:00
* Fri Aug 17 2007 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.8.1-2
2007-08-17 20:46:41 +00:00
- Removed the dos2unix build dependency.
2007-11-13 00:23:16 +00:00
2007-07-21 23:14:09 +00:00
* Thu Jun 28 2007 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.8.1-1
- Initial packaging for Fedora.