Blame SPECS/python-pygments.spec

49928b
%{?scl:%scl_package python-pygments}
49928b
%{!?scl:%global pkg_name %{name}}
49928b
49928b
%global upstream_name Pygments
49928b
49928b
Name:           %{?scl_prefix}python-pygments
49928b
Version:        1.5
49928b
Release:        3%{?dist}
49928b
Summary:        Syntax highlighting engine written in Python
49928b
49928b
Group:          Development/Libraries
49928b
License:        BSD
49928b
URL:            http://pygments.org/
49928b
Source0:        http://pypi.python.org/packages/source/P/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
49928b
BuildRoot:      %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
49928b
49928b
BuildArch:      noarch
49928b
BuildRequires:  %{?scl_prefix}python-devel, %{?scl_prefix}python-setuptools, %{?scl_prefix}python-nose
49928b
Requires:       %{?scl_prefix}python-setuptools
49928b
49928b
%description
49928b
Pygments is a generic syntax highlighter for general use in all kinds
49928b
of software such as forum systems, wikis or other applications that
49928b
need to prettify source code. Highlights are:
49928b
49928b
  * a wide range of common languages and markup formats is supported
49928b
  * special attention is paid to details that increase highlighting
49928b
    quality
49928b
  * support for new languages and formats are added easily; most
49928b
    languages use a simple regex-based lexing mechanism
49928b
  * a number of output formats is available, among them HTML, RTF,
49928b
    LaTeX and ANSI sequences
49928b
  * it is usable as a command-line tool and as a library
49928b
  * ... and it highlights even Brainf*ck!
49928b
49928b
49928b
%prep
49928b
%setup -q -n Pygments-%{version}
49928b
49928b
%build
49928b
%{?scl:scl enable %{scl} "}
49928b
%{__python3} setup.py build
49928b
%{?scl:"}
49928b
%{__sed} -i 's/\r//' LICENSE
49928b
49928b
%install
49928b
rm -rf $RPM_BUILD_ROOT
49928b
49928b
%{?scl:scl enable %{scl} "}
49928b
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
49928b
%{?scl:"}
49928b
49928b
pushd docs
49928b
install -d %{buildroot}%{_mandir}/man1
49928b
mv pygmentize.1 $RPM_BUILD_ROOT%{_mandir}/man1/pygmentize.1
49928b
mv build html
49928b
mv src reST
49928b
popd
49928b
49928b
%clean
49928b
rm -rf $RPM_BUILD_ROOT
49928b
49928b
%check
49928b
%{?scl:scl enable %{scl} - << \EOF}
49928b
# There are three tests failing randomly, reported upstream with no fix so far:
49928b
# https://bitbucket.org/birkenfeld/pygments-main/issue/847/test-failures-with-python-33
49928b
PYTHON=%{__python3} make test || :
49928b
%{?scl:EOF}
49928b
49928b
%files
49928b
%defattr(-,root,root,-)
49928b
%doc AUTHORS CHANGES docs/html docs/reST LICENSE TODO
49928b
%{python3_sitelib}/*
49928b
%{_bindir}/pygmentize
49928b
%lang(en) %{_mandir}/man1/pygmentize.1.gz
49928b
49928b
%changelog
49928b
* Thu May 23 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.5-3
49928b
- Ignore some tests not working with Python 3.3 yet (rhbz#966426).
49928b
49928b
* Thu May 09 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.5-2
49928b
- Rebuild to generate bytecode properly after fixing rhbz#956289
49928b
49928b
* Wed Jan 09 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.5-1
49928b
- Rebuilt for SCL.
49928b
- Updated to version 1.5.
49928b
- python-imaging is only a soft dependency, removing it for now.
49928b
49928b
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 1.4-7
49928b
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
49928b
49928b
* Fri Aug  3 2012 David Malcolm <dmalcolm@redhat.com> - 1.4-6
49928b
- remove rhel logic from with_python3 conditional
49928b
49928b
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-5
49928b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
49928b
49928b
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-4
49928b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
49928b
49928b
* Tue Sep 13 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.4-3
49928b
- Really enable the python3 unittests.
49928b
- Fix python26 byte compilation (thanks to Jeffrey Ness)
49928b
49928b
* Sat Sep 10 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.4-2
49928b
- Fix python main package having dependencies for the python2.6 subpackage
49928b
- Fix places that used the default python instead of python26
49928b
- Attempt to make byte compilation more robust in case we add python3 to EPEL5
49928b
- Run unittests on python3 in F15+
49928b
49928b
* Fri Jun 24 2011 Steve Milner <smilner@fedoraproject.org> - 1.4-1
49928b
- update for upstream release
49928b
- Add python2.6 support done by Steve Traylen <steve.traylen@cern.ch>. BZ#662755.
49928b
49928b
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-8
49928b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
49928b
49928b
* Wed Aug 25 2010 Thomas Spura <tomspur@fedoraproject.org> - 1.3.1-7
49928b
- update to most recent python guidelines
49928b
- rebuild with python3.2
49928b
  http://lists.fedoraproject.org/pipermail/devel/2010-August/141368.html
49928b
49928b
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.3.1-6
49928b
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
49928b
49928b
* Thu May  6 2010 Gareth Armstrong <gareth.armstrong@hp.com> - 1.3.1-5
49928b
- Enforce that Pygments requires Python 2.4 or later via an explicit BR
49928b
- Minor tweaks to spec file
49928b
- Deliver html and reST doc files to specifically named directories
49928b
- Align description with that of http://pygments.org/
49928b
- Add %%check section for Python2 and add BR on python-nose
49928b
49928b
* Fri Apr 23 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3.1-4
49928b
- switched with_python3 back to 1
49928b
49928b
* Fri Apr 23 2010 David Malcolm <dmalcolm@redhat.com> - 1.3.1-3
49928b
- add python3 subpackage (BZ#537244), ignoring soft-dep on imaging for now
49928b
49928b
* Sat Apr 13 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3.1-2
49928b
- added python-imaging as a dependency per BZ#581663.
49928b
49928b
* Sat Mar  6 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3.1-1
49928b
- Updated for release.
49928b
49928b
* Tue Sep 29 2009 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.1.1-1
49928b
- Updated for release.
49928b
49928b
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5
49928b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
49928b
49928b
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-4
49928b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
49928b
49928b
* Sun Dec 21 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.0-3
49928b
- Updated for release.
49928b
49928b
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0-2
49928b
- Rebuild for Python 2.6
49928b
49928b
* Fri Nov 27 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.0-1
49928b
- Updated for upstream 1.0.
49928b
49928b
* Sun Sep 14 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.11.1-1
49928b
- Updated for upstream 0.11.
49928b
49928b
* Mon Jul 21 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.10-1
49928b
- Updated for upstream 0.10.
49928b
49928b
* Thu Nov 29 2007 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.9-2
49928b
- Added python-setuptools as a Requires per bz#403601.
49928b
49928b
* Mon Nov 12 2007 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.9-1
49928b
- Updated for upstream 0.9.
49928b
49928b
* Thu Aug 17 2007 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.8.1-2
49928b
- Removed the dos2unix build dependency.
49928b
49928b
* Thu Jun 28 2007 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.8.1-1
49928b
- Initial packaging for Fedora.