]> git.pld-linux.org Git - packages/python3-pygments.git/blobdiff - python-pygments.spec
- P for python-Pygments
[packages/python3-pygments.git] / python-pygments.spec
index da66946ce4307599a3b1da83b611a12486e70074..d60b3128a5bda2b29d6af671ebeb06929b49667e 100644 (file)
@@ -2,14 +2,14 @@
 %bcond_without python3
 %define module pygments
 #
-Summary:       Generic syntax highlighter
+Summary:       A generic syntax highlighter
 Name:          python-%{module}
-Version:       1.3.1
-Release:       3
+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
@@ -25,6 +25,8 @@ BuildRequires:        python3-modules
 %endif
 BuildRequires: rpm-pythonprov
 %pyrequires_eq python-modules
+Provides:      python-Pygments
+Obsoletes:     python-Pygments
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -84,6 +86,9 @@ rm -rf $RPM_BUILD_ROOT
 
 mv $RPM_BUILD_ROOT%{_bindir}/pygmentize{,-2}
 
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+
 %py_postclean
 %endif
 
@@ -111,8 +116,10 @@ rm -rf $RPM_BUILD_ROOT
 %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}
 %files -n python3-%{module}
This page took 0.035372 seconds and 4 git commands to generate.