3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 Summary: A pygments lexer for pytest output
7 Summary(pl.UTF-8): Lexer pygments do wyjścia pytesta
8 Name: python-pygments_pytest
9 # keep 1.x here for python2 support
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/pygments-pytest/
15 Source0: https://files.pythonhosted.org/packages/source/p/pygments-pytest/pygments_pytest-%{version}.tar.gz
16 # Source0-md5: e51a2e259bfd4eb4f93fc4f626e05e17
17 URL: https://pypi.org/project/pygments-pytest/
19 BuildRequires: python-modules >= 1:2.5
20 BuildRequires: python-setuptools
23 BuildRequires: python3-modules >= 1:3.2
24 BuildRequires: python3-setuptools
26 BuildRequires: rpm-pythonprov
27 BuildRequires: rpmbuild(macros) >= 1.714
28 Requires: python-modules >= 1:2.5
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 This library provides a pygments lexer called pytest.
35 %description -l pl.UTF-8
36 Ta biblioteka udostępnia lexer pygments o nazwie pytest.
38 %package -n python3-pygments_pytest
39 Summary: A pygments lexer for pytest output
40 Summary(pl.UTF-8): Lexer pygments do wyjścia pytesta
41 Group: Libraries/Python
42 Requires: python3-modules >= 1:3.2
44 %description -n python3-pygments_pytest
45 This library provides a pygments lexer called pytest.
47 %description -n python3-pygments_pytest -l pl.UTF-8
48 Ta biblioteka udostępnia lexer pygments o nazwie pytest.
51 %setup -q -n pygments_pytest-%{version}
63 rm -rf $RPM_BUILD_ROOT
76 rm -rf $RPM_BUILD_ROOT
80 %defattr(644,root,root,755)
81 %doc LICENSE README.md
82 %{py_sitescriptdir}/pygments_pytest.py[co]
83 %{py_sitescriptdir}/pygments_pytest-%{version}-py*.egg-info
87 %files -n python3-pygments_pytest
88 %defattr(644,root,root,755)
89 %doc LICENSE README.md
90 %{py3_sitescriptdir}/pygments_pytest.py
91 %{py3_sitescriptdir}/__pycache__/pygments_pytest.cpython-*.py[co]
92 %{py3_sitescriptdir}/pygments_pytest-%{version}-py*.egg-info