Пакет python3-module-behave: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | %define _unpackaged_files_terminate_build 1 %define oname behave %def_with check Name: python3-module-%oname Version: 1.2.6 Release: alt4 Summary: behave is behaviour-driven development, Python style License: BSD Group: Development/Python3 Url: https://pypi.org/project/behave/ Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org> # https://github.com/behave/behave.git Source: %name-%version.tar Patch: %name-%version-alt.patch BuildArch: noarch BuildRequires(pre): rpm-build-python3 %if_with check BuildRequires: python3(hamcrest) BuildRequires: python3(mock) BuildRequires: python3(nose) BuildRequires: python3(parse) BuildRequires: python3(parse_type) BuildRequires: python3(path) BuildRequires: python3(tox) %endif Requires: %oname-common = %EVR %add_python3_req_skip gherkin %add_python3_req_skip gherkin.formatter %add_python3_req_skip gherkin.tag_expression %description Behavior-driven development (or BDD) is an agile software development technique that encourages collaboration between developers, QA and non-technical or business participants in a software project. behave uses tests written in a natural language style, backed up by Python code. %package -n %oname-common Summary: Common files for Python modules Group: Development/Python3 %description -n %oname-common Behavior-driven development (or BDD) is an agile software development technique that encourages collaboration between developers, QA and non-technical or business participants in a software project. behave uses tests written in a natural language style, backed up by Python code. This package contains common files for Python 2 & 3 modules. %prep %setup %patch -p1 %build %python3_build %install %python3_install pushd %buildroot%_bindir for i in $(ls); do mv $i $i.py3 done popd install -d %buildroot%_sysconfdir cp -fR etc/* %buildroot%_sysconfdir/ %check sed -i -e '/\[testenv\]$/a whitelist_externals =\ \/bin\/cp\ \/bin\/sed\ commands_pre =\ \/bin\/cp {env:_PYTEST_BIN:} \{envbindir\}\/py.test\ \/bin\/sed -i \x271c #!\{envpython\}\x27 \{envbindir\}\/py.test' \ -e '/setenv =$/a \ py%{python_version_nodots python3}: _PYTEST_BIN=%_bindir\/py.test3' \ -e '/behave --format=/d' \ tox.ini export PIP_NO_INDEX=YES export TOXENV=py%{python_version_nodots python3} %_bindir/tox.py3 --sitepackages -p auto -o -v %files %doc *.rst *features %_bindir/behave.py3 %python3_sitelibdir/behave/ %python3_sitelibdir/setuptools_behave.py %python3_sitelibdir/__pycache__/setuptools_behave.cpython-*.py* %python3_sitelibdir/behave-%version-py%_python3_version.egg-info/ %files -n %oname-common %dir %_sysconfdir/json %_sysconfdir/json/behave.json-schema %dir %_sysconfdir/junit.xml %_sysconfdir/junit.xml/behave_junit.xsd %_sysconfdir/junit.xml/junit-4.xsd %changelog * Mon Oct 05 2020 Stanislav Levin <slev@altlinux.org> 1.2.6-alt4 - Stopped Python2 package build. - Applied upstream patches. * Tue Aug 06 2019 Stanislav Levin <slev@altlinux.org> 1.2.6-alt3 - Fixed testing against Pytest 5. * Mon Jun 10 2019 Stanislav Levin <slev@altlinux.org> 1.2.6-alt2 - Added missing dep on Pytest. * Fri Jan 25 2019 Stanislav Levin <slev@altlinux.org> 1.2.6-alt1 - 1.2.5 -> 1.2.6. - Dropped BR on python argparse. * Sat Feb 03 2018 Stanislav Levin <slev@altlinux.org> 1.2.5-alt1.a1.git20141018.1.1.1 - (NMU) Fix Requires to gherkin * Fri Feb 02 2018 Stanislav Levin <slev@altlinux.org> 1.2.5-alt1.a1.git20141018.1.1 - (NMU) Fix Requires and BuildRequires to python-setuptools * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 1.2.5-alt1.a1.git20141018.1 - (NMU) rebuild with rpm-build-python3-0.1.9 (for common python3/site-packages/ and auto python3.3-ABI dep when needed) * Wed Nov 26 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.2.5-alt1.a1.git20141018 - Initial build for Sisyphus |