1 # NOTE: for versions >= 2 (for python 3.6+) see python3-pygments_pytest.spec
4 %bcond_without python2 # CPython 2.x module
5 %bcond_with python3 # CPython 3.x module (built from python3-pygments_pytest.spec)
7 Summary: A pygments lexer for pytest output
8 Summary(pl.UTF-8): Lexer pygments do wyjścia pytesta
9 Name: python-pygments_pytest
10 # keep 1.x here for python2 support
14 Group: Libraries/Python
15 #Source0Download: https://pypi.org/simple/pygments-pytest/
16 Source0: https://files.pythonhosted.org/packages/source/p/pygments-pytest/pygments_pytest-%{version}.tar.gz
17 # Source0-md5: e51a2e259bfd4eb4f93fc4f626e05e17
18 URL: https://pypi.org/project/pygments-pytest/
20 BuildRequires: python-modules >= 1:2.5
21 BuildRequires: python-setuptools
24 BuildRequires: python3-modules >= 1:3.2
25 BuildRequires: python3-setuptools
27 BuildRequires: rpm-pythonprov
28 BuildRequires: rpmbuild(macros) >= 1.714
29 Requires: python-modules >= 1:2.5
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 This library provides a pygments lexer called pytest.
36 %description -l pl.UTF-8
37 Ta biblioteka udostępnia lexer pygments o nazwie pytest.
39 %package -n python3-pygments_pytest
40 Summary: A pygments lexer for pytest output
41 Summary(pl.UTF-8): Lexer pygments do wyjścia pytesta
42 Group: Libraries/Python
43 Requires: python3-modules >= 1:3.2
45 %description -n python3-pygments_pytest
46 This library provides a pygments lexer called pytest.
48 %description -n python3-pygments_pytest -l pl.UTF-8
49 Ta biblioteka udostępnia lexer pygments o nazwie pytest.
52 %setup -q -n pygments_pytest-%{version}
64 rm -rf $RPM_BUILD_ROOT
77 rm -rf $RPM_BUILD_ROOT
81 %defattr(644,root,root,755)
82 %doc LICENSE README.md
83 %{py_sitescriptdir}/pygments_pytest.py[co]
84 %{py_sitescriptdir}/pygments_pytest-%{version}-py*.egg-info
88 %files -n python3-pygments_pytest
89 %defattr(644,root,root,755)
90 %doc LICENSE README.md
91 %{py3_sitescriptdir}/pygments_pytest.py
92 %{py3_sitescriptdir}/__pycache__/pygments_pytest.cpython-*.py[co]
93 %{py3_sitescriptdir}/pygments_pytest-%{version}-py*.egg-info