%bcond_without python3
%define module pygments
#
-Summary: Generic syntax highlighter
+Summary: A generic syntax highlighter
Name: python-%{module}
-Version: 1.3.1
-Release: 2
+Version: 1.4
+Release: 1
License: BSD
Group: Development/Languages/Python
Source0: http://pypi.python.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz
-# Source0-md5: 54be67c04834f13d7e255e1797d629a5
+# Source0-md5: d77ac8c93a7fb27545f2522abe9cc462
URL: http://pygments.org/
%if %{with python2}
BuildRequires: python
%endif
BuildRequires: rpm-pythonprov
%pyrequires_eq python-modules
+Provides: python-Pygments
+Obsoletes: python-Pygments
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
mv $RPM_BUILD_ROOT%{_bindir}/pygmentize{,-2}
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+
%py_postclean
%endif
%attr(755,root,root) %{_bindir}/pygmentize
%attr(755,root,root) %{_bindir}/pygmentize-2
%{py_sitescriptdir}/%{module}
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/*.egg-info
+%endif
%endif
%if %{with python3}
%doc PKG-INFO TODO AUTHORS
%attr(755,root,root) %{_bindir}/pygmentize-3
%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/*.egg-info
%endif