2007-07-21 23:14:09 +00:00
|
|
|
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
|
|
|
|
Name: python-pygments
|
2008-09-14 22:55:59 +00:00
|
|
|
Version: 0.11.1
|
2008-07-22 01:39:28 +00:00
|
|
|
Release: 1%{?dist}
|
2007-07-21 23:14:09 +00:00
|
|
|
Summary: A syntax highlighting engine written in Python
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: BSD
|
|
|
|
URL: http://pygments.org/
|
|
|
|
Source0: http://cheeseshop.python.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
BuildArch: noarch
|
2007-08-17 20:46:41 +00:00
|
|
|
BuildRequires: python-devel, python-setuptools
|
2007-11-29 13:54:40 +00:00
|
|
|
Requires: python-setuptools
|
2007-07-21 23:14:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
Pygments is a syntax highlighting engine written in Python. That means, it
|
|
|
|
will take source code (or other markup) in a supported language and output
|
|
|
|
a processed version (in different formats) containing syntax highlighting
|
|
|
|
markup.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Pygments-%{version}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__python} setup.py build
|
2007-08-17 20:46:41 +00:00
|
|
|
%{__sed} -i 's/\r//' LICENSE
|
2007-07-21 23:14:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/
|
|
|
|
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
mv docs/pygmentize.1 $RPM_BUILD_ROOT%{_mandir}/man1/pygmentize.1
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc AUTHORS CHANGES docs/ LICENSE TODO
|
|
|
|
# For noarch packages: sitelib
|
|
|
|
%{python_sitelib}/*
|
|
|
|
%{_bindir}/pygmentize
|
|
|
|
%lang(en) %{_mandir}/man1/pygmentize.1.gz
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2008-09-14 22:55:59 +00:00
|
|
|
* 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.
|
|
|
|
|
2007-08-17 20:46:41 +00:00
|
|
|
* Thu Aug 17 2007 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.8.1-2
|
|
|
|
- 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.
|