packages: python-pygments/python-pygments.spec - updated to 1.3.1 - build p...
wiget
wiget at pld-linux.org
Sat Mar 27 17:11:57 CET 2010
Author: wiget Date: Sat Mar 27 16:11:57 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- updated to 1.3.1
- build python3 version too
---- Files affected:
packages/python-pygments:
python-pygments.spec (1.3 -> 1.4)
---- Diffs:
================================================================
Index: packages/python-pygments/python-pygments.spec
diff -u packages/python-pygments/python-pygments.spec:1.3 packages/python-pygments/python-pygments.spec:1.4
--- packages/python-pygments/python-pygments.spec:1.3 Sun Oct 11 13:32:15 2009
+++ packages/python-pygments/python-pygments.spec Sat Mar 27 17:11:52 2010
@@ -1,14 +1,16 @@
# $Revision$, $Date$
-
-%define module pygments
+%bcond_without python2
+%bcond_without python3
+%define module pygments
+#
Summary: Generic syntax highlighter
Name: python-%{module}
-Version: 1.1.1
+Version: 1.3.1
Release: 1
License: BSD
Group: Development/Languages/Python
Source0: http://pypi.python.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz
-# Source0-md5: 80ac64669a75e2d6647822b2778e38c8
+# Source0-md5: 54be67c04834f13d7e255e1797d629a5
URL: http://pygments.org/
BuildRequires: python-devel
%pyrequires_eq python-modules
@@ -28,30 +30,85 @@
- it is usable as a command-line tool and as a library
- ... and it highlights even Brainf*ck!
+%package -n python3-%{module}
+Summary: Generic syntax highlighter
+Group: Development/Languages/Python
+
+%description -n python3-%{module}
+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!
+
%prep
%setup -q -n Pygments-%{version}
%build
-%{__python} setup.py build
+%if %{with python2}
+%{__python} setup.py build -b build-2
+%endif
+
+%if %{with python3}
+%{__python3} setup.py build -b build-3
+%endif
%install
rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
- --optimize=2 \
- --root=$RPM_BUILD_ROOT
+%if %{with python2}
+%{__python} setup.py \
+ build -b build-2 \
+ install \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+
+mv $RPM_BUILD_ROOT%{_bindir}/pygmentize{,-2}
%py_postclean
+%endif
+
+%if %{with python3}
+%{__python3} setup.py \
+ build -b build-3 \
+ install \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+
+mv $RPM_BUILD_ROOT%{_bindir}/pygmentize{,-3}
+
+%py3_postclean
+%endif
+
+ln -s pygmentize-2 $RPM_BUILD_ROOT%{_bindir}/pygmentize
%clean
rm -rf $RPM_BUILD_ROOT
+%if %{with python2}
%files
%defattr(644,root,root,755)
%doc PKG-INFO TODO AUTHORS
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/pygmentize
+%attr(755,root,root) %{_bindir}/pygmentize-2
%{py_sitescriptdir}/%{module}
%{py_sitescriptdir}/*Pygments*.egg*
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc PKG-INFO TODO AUTHORS
+%attr(755,root,root) %{_bindir}/pygmentize-3
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/*Pygments*.egg*
+%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -59,6 +116,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.4 2010/03/27 16:11:52 wiget
+- updated to 1.3.1
+- build python3 version too
+
Revision 1.3 2009/10/11 11:32:15 wiget
- updated to 1.1.1
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/python-pygments/python-pygments.spec?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list