Пакет python-module-greenlet: 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 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 | %define _unpackaged_files_terminate_build 1 %define oname greenlet %def_with python3 Name: python-module-%oname Version: 0.4.12 Release: alt1 Summary: Lightweight in-process concurrent programming License: MIT Group: Development/Python Url: http://pypi.python.org/pypi/greenlet Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org> # https://github.com/python-greenlet/greenlet.git Source0: https://pypi.python.org/packages/03/a6/8842d7215e1c54537eb5d0b8fd3e8562cc869b6d193317b11027ff7d8009/%{oname}-%{version}.tar.gz BuildRequires(pre): rpm-build-python #BuildPreReq: python-module-setuptools gcc-c++ %if_with python3 BuildRequires(pre): rpm-build-python3 # Automatically added by buildreq on Thu Jan 28 2016 (-bi) # optimized out: elfutils libstdc++-devel python-base python-devel python-module-pytest python-module-setuptools python-modules python-modules-compiler python-modules-ctypes python-modules-email python-modules-encodings python-modules-unittest python3 python3-base python3-module-pytest python3-module-setuptools BuildRequires: gcc-c++ python-module-setuptools python3-devel python3-module-setuptools rpm-build-python3 #BuildRequires: python3-devel python3-module-setuptools %endif %description The greenlet package is a spin-off of Stackless, a version of CPython that supports micro-threads called "tasklets". Tasklets run pseudo-concurrently (typically in a single or a few OS-level threads) and are synchronized with data exchanges on "channels". A "greenlet", on the other hand, is a still more primitive notion of micro- thread with no implicit scheduling; coroutines, in other words. This is useful when you want to control exactly when your code runs. You can build custom scheduled micro-threads on top of greenlet; however, it seems that greenlets are useful on their own as a way to make advanced control flow structures. For example, we can recreate generators; the difference with Python's own generators is that our generators can call nested functions and the nested functions can yield values too. Additionally, you don't need a "yield" keyword. See the example in tests/test_generator.py. Greenlets are provided as a C extension module for the regular unmodified interpreter. %if_with python3 %package -n python3-module-%oname Summary: Lightweight in-process concurrent programming (Python 3) Group: Development/Python3 %description -n python3-module-%oname The greenlet package is a spin-off of Stackless, a version of CPython that supports micro-threads called "tasklets". Tasklets run pseudo-concurrently (typically in a single or a few OS-level threads) and are synchronized with data exchanges on "channels". A "greenlet", on the other hand, is a still more primitive notion of micro- thread with no implicit scheduling; coroutines, in other words. This is useful when you want to control exactly when your code runs. You can build custom scheduled micro-threads on top of greenlet; however, it seems that greenlets are useful on their own as a way to make advanced control flow structures. For example, we can recreate generators; the difference with Python's own generators is that our generators can call nested functions and the nested functions can yield values too. Additionally, you don't need a "yield" keyword. See the example in tests/test_generator.py. Greenlets are provided as a C extension module for the regular unmodified interpreter. %endif %package tests Summary: Tests for greenlet Group: Development/Python BuildArch: noarch Requires: %name = %version-%release %description tests The greenlet package is a spin-off of Stackless, a version of CPython that supports micro-threads called "tasklets". Tasklets run pseudo-concurrently (typically in a single or a few OS-level threads) and are synchronized with data exchanges on "channels". This package contains tests for greenlet. %prep %setup -q -n %{oname}-%{version} %if_with python3 rm -rf ../python3 cp -a . ../python3 %endif %build %python_build_debug %if_with python3 pushd ../python3 %python3_build_debug popd %endif %install %python_install %if_with python3 pushd ../python3 %python3_install popd %endif %check python setup.py test -v export PYTHONPATH=$PWD python run-tests.py -n %if_with python3 pushd ../python3 python3 setup.py test -v export PYTHONPATH=$PWD python3 run-tests.py -n popd %endif %files %doc AUTHORS LICENSE NEWS README* doc/*.txt %python_sitelibdir/* %_includedir/python%_python_version/greenlet %files tests %doc tests %if_with python3 %files -n python3-module-%oname %doc AUTHORS LICENSE NEWS README* doc/*.txt %python3_sitelibdir/* %_includedir/python%_python3_version%_python3_abiflags/greenlet %endif %changelog * Mon Mar 04 2019 Lenar Shakirov <snejok@altlinux.ru> 0.4.12-alt1 - 0.4.12 * Thu Mar 22 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 0.4.11-alt1.1.1 - (NMU) Rebuilt with python-3.6.4. * Fri Feb 02 2018 Stanislav Levin <slev@altlinux.org> 0.4.11-alt1.1 - (NMU) Fix Requires and BuildRequires to python-setuptools * Wed Jan 11 2017 Igor Vlasenko <viy@altlinux.ru> 0.4.11-alt1 - automated PyPI update * Thu Mar 17 2016 Ivan Zakharyaschev <imz@altlinux.org> 0.4.9-alt1.git20150830.1.1 - (NMU) rebuild with python3-3.5 & rpm-build-python3-0.1.10 (for ABI dependence and new python3(*) reqs) * Thu Jan 28 2016 Mikhail Efremov <sem@altlinux.org> 0.4.9-alt1.git20150830.1 - NMU: Use buildreq for BR. * Mon Aug 31 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.4.9-alt1.git20150830 - Version 0.4.9 - Enabled check * Tue Oct 28 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.4.5-alt1.git20141020 - Version 0.4.5 * Fri Jul 11 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.4.2-alt1.git20140626 - Version 0.4.2 * Tue Sep 17 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.4.1-alt1.git20130902 - Version 0.4.1 * Sun Mar 24 2013 Aleksey Avdeev <solo@altlinux.ru> 0.4.0-alt1.git20121205.1 - Rebuild with Python-3.3 * Thu Feb 14 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.4.0-alt1.git20121205 - Version 0.4.0 * Mon Jun 04 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.3.2-alt1.hg20111215 - Version 0.3.2 - Added module for Python 3 * Thu Apr 12 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 0.3.1-alt1.hg20110903.1 - Rebuild to remove redundant libpython2.7 dependency * Fri Dec 09 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.3.1-alt1.hg20110903 - New snapshot * Mon Oct 24 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.3.1-alt1.hg20110326.1 - Rebuild with Python-2.7 * Tue May 10 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.3.1-alt1.hg20110326 - New snapshot * Fri Mar 25 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.3.1-alt1.hg20100606.1 - Rebuilt for debuginfo * Tue Jun 22 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.3.1-alt1.hg20100606 - Initial build for Sisyphus (ALT #23646) |