[packages/python-pygments_pytest] - new
qboosh
qboosh at pld-linux.org
Wed Sep 16 18:14:09 CEST 2020
commit e1d3c87e349ef558b2867eb334d4178801973b2c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Sep 16 18:16:50 2020 +0200
- new
python-pygments_pytest.spec | 93 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 93 insertions(+)
---
diff --git a/python-pygments_pytest.spec b/python-pygments_pytest.spec
new file mode 100644
index 0000000..e9cc8ee
--- /dev/null
+++ b/python-pygments_pytest.spec
@@ -0,0 +1,93 @@
+#
+# Conditional build:
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+Summary: A pygments lexer for pytest output
+Summary(pl.UTF-8): Lexer pygments do wyjścia pytesta
+Name: python-pygments_pytest
+# keep 1.x here for python2 support
+Version: 1.3.1
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/pygments-pytest/
+Source0: https://files.pythonhosted.org/packages/source/p/pygments-pytest/pygments_pytest-%{version}.tar.gz
+# Source0-md5: e51a2e259bfd4eb4f93fc4f626e05e17
+URL: https://pypi.org/project/pygments-pytest/
+%if %{with python2}
+BuildRequires: python-modules >= 1:2.5
+BuildRequires: python-setuptools
+%endif
+%if %{with python3}
+BuildRequires: python3-modules >= 1:3.2
+BuildRequires: python3-setuptools
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python-modules >= 1:2.5
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This library provides a pygments lexer called pytest.
+
+%description -l pl.UTF-8
+Ta biblioteka udostępnia lexer pygments o nazwie pytest.
+
+%package -n python3-pygments_pytest
+Summary: A pygments lexer for pytest output
+Summary(pl.UTF-8): Lexer pygments do wyjścia pytesta
+Group: Libraries/Python
+Requires: python3-modules >= 1:3.2
+
+%description -n python3-pygments_pytest
+This library provides a pygments lexer called pytest.
+
+%description -n python3-pygments_pytest -l pl.UTF-8
+Ta biblioteka udostępnia lexer pygments o nazwie pytest.
+
+%prep
+%setup -q -n pygments_pytest-%{version}
+
+%build
+%if %{with python2}
+%py_build
+%endif
+
+%if %{with python3}
+%py3_build
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%{py_sitescriptdir}/pygments_pytest.py[co]
+%{py_sitescriptdir}/pygments_pytest-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-pygments_pytest
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%{py3_sitescriptdir}/pygments_pytest.py
+%{py3_sitescriptdir}/__pycache__/pygments_pytest.cpython-*.py[co]
+%{py3_sitescriptdir}/pygments_pytest-%{version}-py*.egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pygments_pytest.git/commitdiff/e1d3c87e349ef558b2867eb334d4178801973b2c
More information about the pld-cvs-commit
mailing list