Пакет python-module-pytest: 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 173 174 175 | %define oname pytest %def_with python3 Name: python-module-%oname Version: 2.3.5.dev8 Release: alt1.hg20130328 Summary: Simple and popular testing tool for Python License: MIT Group: Development/Python Url: http://pytest.org Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org> BuildArch: noarch # hg clone https://bitbucket.org/hpk42/pytest Source: %name-%version.tar.gz BuildRequires(pre): rpm-build-python BuildPreReq: python-devel python-module-setuptools BuildPreReq: python-module-sphinx-devel python-module-py %if_with python3 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-devel python3-module-distribute %endif %description py.test is a command line tool to collect, run and report about automated tests. It runs well on Linux, Windows and OSX and on Python 2.4 through to 3.1 versions. It is used in many projects, ranging from running 10 thousands of tests to a few inlined tests on a command line script. As of version 1.2 you can also generate a no-dependency py.test-equivalent standalone script that you can distribute along with your application. %if_with python3 %package -n python3-module-%oname Summary: Simple and popular testing tool for Python 3 Group: Development/Python3 %add_python3_req_skip compiler %description -n python3-module-%oname py.test is a command line tool to collect, run and report about automated tests. It runs well on Linux, Windows and OSX and on Python 2.4 through to 3.1 versions. It is used in many projects, ranging from running 10 thousands of tests to a few inlined tests on a command line script. As of version 1.2 you can also generate a no-dependency py.test-equivalent standalone script that you can distribute along with your application. %endif %package docs Summary: Documentation for py.test Group: Development/Documentation %description docs py.test is a command line tool to collect, run and report about automated tests. It runs well on Linux, Windows and OSX and on Python 2.4 through to 3.1 versions. It is used in many projects, ranging from running 10 thousands of tests to a few inlined tests on a command line script. As of version 1.2 you can also generate a no-dependency py.test-equivalent standalone script that you can distribute along with your application. This package contains documentation for py.test. %package pickles Summary: Pickles for py.test Group: Development/Python %description pickles py.test is a command line tool to collect, run and report about automated tests. It runs well on Linux, Windows and OSX and on Python 2.4 through to 3.1 versions. It is used in many projects, ranging from running 10 thousands of tests to a few inlined tests on a command line script. As of version 1.2 you can also generate a no-dependency py.test-equivalent standalone script that you can distribute along with your application. This package contains pickles for py.test. %prep %setup %if_with python3 rm -rf ../python3 cp -a . ../python3 %endif %prepare_sphinx doc ln -s ../objects.inv doc/en/ %build %python_build %if_with python3 pushd ../python3 %python3_build popd %endif %install %if_with python3 pushd ../python3 %python3_install popd rm -f %buildroot%_bindir/py.test %endif %python_install export PYTHONPATH=%buildroot%python_sitelibdir pushd doc/en %make html %make pickle popd install -d %buildroot%python_sitelibdir/%oname cp -fR doc/en/_build/pickle %buildroot%python_sitelibdir/%oname/ %files %doc AUTHORS CHANGELOG LICENSE *.txt %_bindir/* %exclude %_bindir/py.test-%_python3_version %python_sitelibdir/* %exclude %python_sitelibdir/%oname %files pickles %dir %python_sitelibdir/%oname %python_sitelibdir/%oname/pickle %files docs %doc doc/en/_build/html/* %if_with python3 %files -n python3-module-%oname %_bindir/py.test-%_python3_version %python3_sitelibdir/* %endif %changelog * Tue Apr 02 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.3.5.dev8-alt1.hg20130328 - Version 2.3.5.dev8 * Fri Mar 22 2013 Aleksey Avdeev <solo@altlinux.ru> 2.3.0.dev10-alt1.hg20120813.1 - Rebuild with Python-3.3 * Wed Aug 15 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.3.0.dev10-alt1.hg20120813 - Version 2.3.0.dev10 * Fri Apr 13 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.2.4.dev2-alt1.hg20120331 - Version 2.2.4.dev2 - Added module for Python 3 * Fri Jan 27 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.2.2.dev6-alt1.hg20110120 - Version 2.2.2.dev6 * Sat Nov 26 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.2.0-alt2.hg20111119 - Fixed buildreq * Fri Nov 25 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.2.0-alt1.hg20111119 - Version 2.2.0 - Disabled conflict with py * Mon Oct 24 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 2.0.3-alt1.hg20110501.1 - Rebuild with Python-2.7 * Tue May 10 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.3-alt1.hg20110501 - Version 2.0.3 * Tue Apr 05 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt1.hg20101120.2 - Rebuilt with python-module-sphinx-devel * Mon Nov 22 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt1.hg20101120.1 - Added explicit conflict with py * Sun Nov 21 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0.0-alt1.hg20101120 - Initial build for Sisyphus |