Пакет python-module-pytest-benchmark: 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 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | %define _unpackaged_files_terminate_build 1 %define oname pytest-benchmark %def_with docs %def_with check Name: python-module-%oname Version: 3.1.1 Release: alt2 Summary: pytest fixture for benchmarking code License: BSD Group: Development/Python BuildArch: noarch Url: https://pypi.org/project/pytest-benchmark/ # https://github.com/ionelmc/pytest-benchmark.git Source: %name-%version.tar Patch: %name-%version-alt.patch BuildRequires(pre): rpm-build-python3 %if_with docs BuildRequires(pre): rpm-macros-sphinx BuildRequires: python-module-objects.inv BuildRequires: python-module-sphinx_py3doc_enhanced_theme %endif %if_with check BuildRequires: python-module-aspectlib BuildRequires: python-module-cpuinfo BuildRequires: python-module-elasticsearch BuildRequires: python-module-freezegun BuildRequires: python-module-mock BuildRequires: python-module-pathlib BuildRequires: python-module-pygal BuildRequires: python-module-pytest-xdist BuildRequires: python-module-statistics BuildRequires: git-core BuildRequires: python3-module-aspectlib BuildRequires: python3-module-cpuinfo BuildRequires: python3-module-elasticsearch BuildRequires: python3-module-freezegun BuildRequires: python3-module-pygal BuildRequires: python3-module-pytest-xdist %endif %py_requires cpuinfo %description A pytest fixture for benchmarking code. %package -n python3-module-%oname Summary: pytest fixture for benchmarking code Group: Development/Python3 %py3_requires cpuinfo %description -n python3-module-%oname A pytest fixture for benchmarking code. %if_with docs %package pickles Summary: Pickles for %oname Group: Development/Python %description pickles A pytest fixture for benchmarking code. This package contains pickles for %oname. %package docs Summary: Documentation for %oname Group: Development/Documentation BuildArch: noarch %description docs A pytest fixture for benchmarking code. This package contains documentation for %oname. %endif %prep %setup %patch -p1 rm -rf ../python3 cp -fR . ../python3 %if_with docs %prepare_sphinx . ln -s ../objects.inv docs/ %endif %build %python_build pushd ../python3 %python3_build popd %install pushd ../python3 %python3_install popd pushd %buildroot%_bindir for i in $(ls); do mv $i ${i}.py3 done popd %python_install %if_with docs export PYTHONPATH="$(pwd)"/src pushd docs sphinx-build -b pickle -d _build/doctrees . _build/pickle sphinx-build -b html -d _build/doctrees . _build/html popd install -d %buildroot%python_sitelibdir/%oname cp -a docs/_build/pickle %buildroot%python_sitelibdir/%oname/ %endif %check export PYTHONPATH="$(pwd)"/src PATH=$PATH:%buildroot%_bindir %_bindir/py.test -vv pushd ../python3 export PYTHONPATH="$(pwd)"/src PATH=$PATH:%buildroot%_bindir %_bindir/py.test3 -vv popd %files %doc README.rst CHANGELOG.rst %_bindir/py.test-benchmark %_bindir/pytest-benchmark %python_sitelibdir/pytest_benchmark/ %python_sitelibdir/pytest_benchmark-*.egg-info/ %files -n python3-module-%oname %doc README.rst CHANGELOG.rst %_bindir/py.test-benchmark.py3 %_bindir/pytest-benchmark.py3 %python3_sitelibdir/pytest_benchmark/ %python3_sitelibdir/pytest_benchmark-*.egg-info/ %if_with docs %files pickles %python_sitelibdir/pytest-benchmark/pickle %files docs %doc docs/_build/html/* %endif %changelog * Thu Dec 20 2018 Stanislav Levin <slev@altlinux.org> 3.1.1-alt2 - Fixed build. * Fri Feb 02 2018 Stanislav Levin <slev@altlinux.org> 3.1.1-alt1.1 - (NMU) Fix Requires and BuildRequires to python-setuptools * Thu Nov 09 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 3.1.1-alt1 - Updated to upstream version 3.1.1. * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 2.0.0-alt1.git20141219.1.1 - (NMU) rebuild with rpm-build-python3-0.1.9 (for common python3/site-packages/ and auto python3.3-ABI dep when needed) * Thu Jan 28 2016 Mikhail Efremov <sem@altlinux.org> 2.0.0-alt1.git20141219.1 - NMU: Use buildreq for BR. * Fri Dec 19 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt1.git20141219 - Initial build for Sisyphus |