Initial import of python-pygments.

This commit is contained in:
smilner 2007-07-21 23:14:09 +00:00
parent 30bd160abc
commit dda3115c7e
3 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1 @@
Pygments-0.8.1.tar.gz

56
python-pygments.spec Normal file
View File

@ -0,0 +1,56 @@
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: python-pygments
Version: 0.8.1
Release: 1%{?dist}
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
BuildRequires: python-devel, python-setuptools, dos2unix
%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
dos2unix LICENSE
%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
* Thu Jun 28 2007 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.8.1-1
- Initial packaging for Fedora.

View File

@ -0,0 +1 @@
f71971cbe9db538a40ea808ac5da3dc0 Pygments-0.8.1.tar.gz