[packages/python-coverage-enable-subprocess] - new
qboosh
qboosh at pld-linux.org
Sun Nov 1 14:11:19 CET 2026
commit 019ba87909ddcf38a5837e63f78ad1c1cfab765b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Nov 1 14:12:04 2026 +0100
- new
python-coverage-enable-subprocess.spec | 97 ++++++++++++++++++++++++++++++++++
1 file changed, 97 insertions(+)
---
diff --git a/python-coverage-enable-subprocess.spec b/python-coverage-enable-subprocess.spec
new file mode 100644
index 0000000..4f6bb7b
--- /dev/null
+++ b/python-coverage-enable-subprocess.spec
@@ -0,0 +1,97 @@
+#
+# Conditional build:
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+Summary: Enable Python coverage for subprocess
+Summary(pl.UTF-8): Włączenie sprawdzania pokrycia w Pythonie dla podprocesu
+Name: python-coverage-enable-subprocess
+Version: 1.0
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/coverage-enable-subprocess/
+Source0: https://files.pythonhosted.org/packages/source/c/coverage-enable-subprocess/coverage_enable_subprocess-%{version}.tar.gz
+# Source0-md5: f8e922de8b7fceedd7767da0e708030a
+URL: https://pypi.org/project/coverage_enable_subprocess/
+%if %{with python2}
+BuildRequires: python-modules >= 1:2.6
+BuildRequires: python-setuptools
+%endif
+%if %{with python3}
+BuildRequires: python3-modules >= 1:3.3
+BuildRequires: python3-setuptools
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python-modules >= 1:2.6
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package installs a pth file that enables the coveragepy
+process_startup feature in this python prefix/virtualenv in subsequent
+runs.
+
+%description -l pl.UTF-8
+Ten pakiet instaluje plik pth włączający funkcję process_startup
+coveragepy w kolejnych uruchomieniach dla danego prefiksu/virtualenva
+Pythona.
+
+%package -n python3-coverage-enable-subprocess
+Summary: Enable Python coverage for subprocess
+Summary(pl.UTF-8): Włączenie sprawdzania pokrycia w Pythonie dla podprocesu
+Group: Libraries/Python
+Requires: python3-modules >= 1:3.3
+
+%description -n python3-coverage-enable-subprocess
+This package installs a pth file that enables the coveragepy
+process_startup feature in this python prefix/virtualenv in subsequent
+runs.
+
+%description -n python3-coverage-enable-subprocess -l pl.UTF-8
+Ten pakiet instaluje plik pth włączający funkcję process_startup
+coveragepy w kolejnych uruchomieniach dla danego prefiksu/virtualenva
+Pythona.
+
+%prep
+%setup -q -n coverage_enable_subprocess-%{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)
+%{py_sitescriptdir}/coverage_enable_subprocess.pth
+%{py_sitescriptdir}/coverage_enable_subprocess-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-coverage-enable-subprocess
+%defattr(644,root,root,755)
+%{py3_sitescriptdir}/coverage_enable_subprocess.pth
+%{py3_sitescriptdir}/coverage_enable_subprocess-%{version}-py*.egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-coverage-enable-subprocess.git/commitdiff/019ba87909ddcf38a5837e63f78ad1c1cfab765b
More information about the pld-cvs-commit
mailing list