]> git.pld-linux.org Git - packages/python3-pygments.git/commitdiff
- merged with python-Pygments
authorlisu <lisu@pld-linux.org>
Fri, 24 Jun 2011 07:04:15 +0000 (07:04 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-pygments.spec -> 1.11

python-pygments.spec

index 3174266f321062214e3c2612e9447546b5edffbf..494e7f1685498a6e5ca55ffb1b0d382f8822c9d3 100644 (file)
@@ -2,7 +2,7 @@
 %bcond_without python3
 %define module pygments
 #
-Summary:       Generic syntax highlighter
+Summary:       A generic syntax highlighter
 Name:          python-%{module}
 Version:       1.4
 Release:       1
@@ -25,6 +25,7 @@ BuildRequires:        python3-modules
 %endif
 BuildRequires: rpm-pythonprov
 %pyrequires_eq python-modules
+Obsoletes:     python-Pygments
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -84,6 +85,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 +115,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.032247 seconds and 4 git commands to generate.