[packages/python-process_tests] - new

qboosh qboosh at pld-linux.org
Tue Mar 7 17:28:39 CET 2017


commit 5bd5d92de1f224a6910e3cb14a2d898b10a9ac62
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Mar 7 17:30:10 2017 +0100

    - new

 python-process_tests.spec | 92 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 92 insertions(+)
---
diff --git a/python-process_tests.spec b/python-process_tests.spec
new file mode 100644
index 0000000..b0fa7f1
--- /dev/null
+++ b/python-process_tests.spec
@@ -0,0 +1,92 @@
+#
+# Conditional build:
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+Summary:	Tools for testing processes
+Summary(pl.UTF-8):	Narzędzia do testowania procesów
+Name:		python-process_tests
+Version:	1.2.1
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+#Source0Download: https://pypi.python.org/simple/process-tests
+Source0:	https://files.pythonhosted.org/packages/source/p/process-tests/process-tests-%{version}.tar.gz
+# Source0-md5:	97d523a15befaaf5f846b7b1a88d8e2c
+URL:		https://github.com/ionelmc/python-process-tests
+%if %{with python2}
+BuildRequires:	python-modules >= 1:2.6
+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.6
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Tools for testing processes.
+
+%description -l pl.UTF-8
+Narzędzia do testowania procesów.
+
+%package -n python3-process_tests
+Summary:	Tools for testing processes
+Summary(pl.UTF-8):	Narzędzia do testowania procesów
+Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.2
+
+%description -n python3-process_tests
+Tools for testing processes.
+
+%description -n python3-process_tests -l pl.UTF-8
+Narzędzia do testowania procesów.
+
+%prep
+%setup -q -n process-tests-%{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.rst
+%{py_sitescriptdir}/process_tests.py[co]
+%{py_sitescriptdir}/process_tests-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-process_tests
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%{py3_sitescriptdir}/process_tests.py
+%{py3_sitescriptdir}/__pycache__/process_tests.cpython-*.py[co]
+%{py3_sitescriptdir}/process_tests-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-process_tests.git/commitdiff/5bd5d92de1f224a6910e3cb14a2d898b10a9ac62



More information about the pld-cvs-commit mailing list