]> git.pld-linux.org Git - packages/python3-pygments.git/blobdiff - python-pygments.spec
- updated to 2.2.0
[packages/python3-pygments.git] / python-pygments.spec
index d92407278fe6468d26040db54dce3d8437b097cc..6e464b0490f80e213f5e660763a50c2442c9bc53 100644 (file)
@@ -7,29 +7,32 @@
 Summary:       A generic syntax highlighter as Python 2.x module
 Summary(pl.UTF-8):     Moduł Pythona 2.x do ogólnego podświetlania składni
 Name:          python-%{module}
-Version:       1.6
-Release:       4
+Version:       2.2.0
+Release:       1
 License:       BSD
 Group:         Development/Languages/Python
-Source0:       http://pypi.python.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz
-# Source0-md5: a18feedf6ffd0b0cc8c8b0fbdb2027b1
+#Source0Download: https://pypi.python.org/simple/Pygments
+Source0:       https://files.pythonhosted.org/packages/source/P/Pygments/Pygments-%{version}.tar.gz
+# Source0-md5: 13037baca42f16917cbd5ad2fab50844
+Patch0:                rpmspec.patch
 URL:           http://pygments.org/
+BuildRequires: rpmbuild(macros) >= 1.714
 %if %{with python2}
-BuildRequires: python
-BuildRequires: python-devel
-BuildRequires: python-modules
-BuildRequires: python-setuptools > 7.0
+BuildRequires: python >= 1:2.6
+BuildRequires: python-devel >= 1:2.6
+BuildRequires: python-modules >= 1:2.6
+BuildRequires: python-setuptools
 %endif
 %if %{with python3}
-BuildRequires: python3
-BuildRequires: python3-2to3
-BuildRequires: python3-devel
-BuildRequires: python3-setuptools > 7.0
-BuildRequires: python3-modules
+BuildRequires: python3 >= 1:3.2
+BuildRequires: python3-2to3 >= 1:3.2
+BuildRequires: python3-devel >= 1:3.2
+BuildRequires: python3-modules >= 1:3.2
+BuildRequires: python3-setuptools
 %endif
 BuildRequires: rpm-pythonprov
-Requires:      python-setuptools > 7.0
-Requires:      python-modules
+Requires:      python-modules >= 1:2.6
+Requires:      python-setuptools
 Provides:      python-Pygments = %{version}-%{release}
 Obsoletes:     python-Pygments
 BuildArch:     noarch
@@ -69,8 +72,8 @@ forów, wiki i inne plikacje wymagające ładnego wyświetlania kodu
 Summary:       Generic syntax highlighter as Python 3.x module
 Summary(pl.UTF-8):     Moduł Pythona 3.x do ogólnego podświetlania składni
 Group:         Development/Languages/Python
-Requires:      python3-setuptools > 7.0
-Requires:      python3-modules
+Requires:      python3-modules >= 1:3.2
+Requires:      python3-setuptools
 
 %description -n python3-%{module}
 Pygments is a generic syntax highlighter for general use in all kinds
@@ -104,41 +107,32 @@ forów, wiki i inne plikacje wymagające ładnego wyświetlania kodu
 
 %prep
 %setup -q -n Pygments-%{version}
+%patch0 -p1
 
 %build
 %if %{with python2}
-%{__python} setup.py build -b build-2
+%py_build
 %endif
 
 %if %{with python3}
-%{__python3} setup.py build -b build-3
+%py3_build
 %endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %if %{with python2}
-%{__python} setup.py \
-       build -b build-2 \
-       install \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+%py_install
 
-mv $RPM_BUILD_ROOT%{_bindir}/pygmentize{,-2}
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/pygmentize{,-2}
 
-%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
-%py_comp $RPM_BUILD_ROOT%{py_sitedir}
 %py_postclean
 %endif
 
 %if %{with python3}
-%{__python3} setup.py \
-       build -b build-3 \
-       install \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+%py3_install
 
-mv $RPM_BUILD_ROOT%{_bindir}/pygmentize{,-3}
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/pygmentize{,-3}
 %endif
 
 %if %{with python2}
@@ -155,10 +149,8 @@ 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}/Pygments-%{version}-py*.egg-info
 %endif
-%endif
 
 %if %{with python3}
 %files -n python3-%{module}
This page took 0.028409 seconds and 4 git commands to generate.