X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=blobdiff_plain;f=python-pygments.spec;h=d60b3128a5bda2b29d6af671ebeb06929b49667e;hb=4d01398654d292b3da46444023c4957128ea1189;hp=da66946ce4307599a3b1da83b611a12486e70074;hpb=c915eef2d75f124477b56e711d1ed0e648520d74;p=packages%2Fpython3-pygments.git diff --git a/python-pygments.spec b/python-pygments.spec index da66946..d60b312 100644 --- a/python-pygments.spec +++ b/python-pygments.spec @@ -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}