| 1 |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
| 2 |
|
| 3 |
Name: python-pygments
|
| 4 |
Version: 1.1.1
|
| 5 |
Release: 1%{?dist}
|
| 6 |
Summary: A syntax highlighting engine written in Python
|
| 7 |
|
| 8 |
Group: Development/Libraries
|
| 9 |
License: BSD
|
| 10 |
URL: http://pygments.org/
|
| 11 |
Source0: http://cheeseshop.python.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz
|
| 12 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
| 13 |
|
| 14 |
BuildArch: noarch
|
| 15 |
BuildRequires: python-devel, python-setuptools
|
| 16 |
Requires: python-setuptools
|
| 17 |
|
| 18 |
|
| 19 |
%description
|
| 20 |
Pygments is a syntax highlighting engine written in Python. That means, it
|
| 21 |
will take source code (or other markup) in a supported language and output
|
| 22 |
a processed version (in different formats) containing syntax highlighting
|
| 23 |
markup.
|
| 24 |
|
| 25 |
|
| 26 |
%prep
|
| 27 |
%setup -q -n Pygments-%{version}
|
| 28 |
|
| 29 |
|
| 30 |
%build
|
| 31 |
%{__python} setup.py build
|
| 32 |
%{__sed} -i 's/\r//' LICENSE
|
| 33 |
|
| 34 |
|
| 35 |
%install
|
| 36 |
rm -rf $RPM_BUILD_ROOT
|
| 37 |
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/
|
| 38 |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
| 39 |
mv docs/pygmentize.1 $RPM_BUILD_ROOT%{_mandir}/man1/pygmentize.1
|
| 40 |
|
| 41 |
|
| 42 |
%clean
|
| 43 |
rm -rf $RPM_BUILD_ROOT
|
| 44 |
|
| 45 |
|
| 46 |
%files
|
| 47 |
%defattr(-,root,root,-)
|
| 48 |
%doc AUTHORS CHANGES docs/ LICENSE TODO
|
| 49 |
# For noarch packages: sitelib
|
| 50 |
%{python_sitelib}/*
|
| 51 |
%{_bindir}/pygmentize
|
| 52 |
%lang(en) %{_mandir}/man1/pygmentize.1.gz
|
| 53 |
|
| 54 |
|
| 55 |
%changelog
|
| 56 |
* Tue Sep 29 2009 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.1.1-1
|
| 57 |
- Updated for release.
|
| 58 |
|
| 59 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5
|
| 60 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
| 61 |
|
| 62 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-4
|
| 63 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
| 64 |
|
| 65 |
* Sun Dec 21 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.0-3
|
| 66 |
- Updated for release.
|
| 67 |
|
| 68 |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0-2
|
| 69 |
- Rebuild for Python 2.6
|
| 70 |
|
| 71 |
* Fri Nov 27 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.0-1
|
| 72 |
- Updated for upstream 1.0.
|
| 73 |
|
| 74 |
* Sun Sep 14 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.11.1-1
|
| 75 |
- Updated for upstream 0.11.
|
| 76 |
|
| 77 |
* Mon Jul 21 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.10-1
|
| 78 |
- Updated for upstream 0.10.
|
| 79 |
|
| 80 |
* Thu Nov 29 2007 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.9-2
|
| 81 |
- Added python-setuptools as a Requires per bz#403601.
|
| 82 |
|
| 83 |
* Mon Nov 12 2007 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.9-1
|
| 84 |
- Updated for upstream 0.9.
|
| 85 |
|
| 86 |
* Thu Aug 17 2007 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.8.1-2
|
| 87 |
- Removed the dos2unix build dependency.
|
| 88 |
|
| 89 |
* Thu Jun 28 2007 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.8.1-1
|
| 90 |
- Initial packaging for Fedora.
|