]> git.pld-linux.org Git - packages/python-pytest-timeout.git/blobdiff - python-pytest-timeout.spec
- python 3.6
[packages/python-pytest-timeout.git] / python-pytest-timeout.spec
index 642b944cbd7dc038dc922e43b45b98aae43f9b64..3fd17ab95c71c3d3ebdbdaedc636418e7c3ee499 100644 (file)
@@ -1,17 +1,15 @@
+#
 # Conditional build:
-# %%bcond_without      doc     # don't build doc
 %bcond_without tests   # do not perform "make test"
 %bcond_without python2 # CPython 2.x module
 %bcond_without python3 # CPython 3.x module
 
-# NOTE: 'module' should match the python import path, not the egg name
 %define        module  pytest-timeout
 Summary:       Pytest plugin which will terminate tests after a certain timeout
 Summary(pl.UTF-8):     Wtyczka Pytest wymuszająca zakończenie testów po przekroczeniu limitu czasu
-# Name must match the python module/package name (as on pypi or in 'import' statement)
 Name:          python-%{module}
 Version:       1.0.0
-Release:       1
+Release:       2
 License:       MIT
 Group:         Libraries/Python
 Source0:       https://pypi.python.org/packages/cf/92/ab29b9baa54d47dfd50e43be35577de9af4e7ebf27d29f546ddeb6c3b6f5/pytest-timeout-%{version}.tar.gz
@@ -22,10 +20,12 @@ BuildRequires:      rpmbuild(macros) >= 1.714
 %if %{with python2}
 BuildRequires: python-modules
 BuildRequires: python-pytest
+BuildRequires: python-setuptools
 %endif
 %if %{with python3}
 BuildRequires: python3-modules
 BuildRequires: python3-pytest
+BuildRequires: python3-setuptools
 %endif
 Requires:      python-modules
 BuildArch:     noarch
@@ -103,11 +103,9 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc README
-%{py_sitescriptdir}/pytest_timeout.py*
-%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/pytest_timeout.py[co]
 %{py_sitescriptdir}/pytest_timeout-%{version}-py*.egg-info
 %endif
-%endif
 
 %if %{with python3}
 %files -n python3-%{module}
This page took 0.059507 seconds and 4 git commands to generate.