Package python-module-gevent: 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 | %define oname gevent %def_with python3 Name: python-module-%oname Version: 1.0 Release: alt4.git20130221 Summary: Python network library that uses greenlet and libevent for easy and scalable concurrency Group: Development/Python License: MIT Url: http://pypi.python.org/pypi/%oname %py_requires greenlet # https://github.com/sitesupport/gevent.git Source: %oname-%version.tar # Automatically added by buildreq on Wed Feb 03 2010 BuildRequires: libevent1.4-devel python-devel python-modules-ctypes BuildPreReq: python-module-sphinx-devel python-module-greenlet BuildPreReq: python-module-OpenSSL python-module-Cython unifdef %setup_python_module %oname %if_with python3 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-devel python3-module-greenlet BuildPreReq: python3-module-distribute python3-module-Cython BuildPreReq: python3-module-OpenSSL python-tools-2to3 %endif %description gevent is a coroutine-based Python networking library that uses greenlet to provide a high-level synchronous API on top of libevent event loop. Features include: * convenient API around greenlets * familiar synchronization primitives (gevent.event, gevent.queue) * socket module that cooperates * WSGI server on top of libevent-http * DNS requests done through libevent-dns * monkey patching utility to get pure Python modules to cooperate %if_with python3 %package -n python3-module-%oname Summary: Python 3 network library that uses greenlet and libevent for easy and scalable concurrency Group: Development/Python3 %py3_requires greenlet %description -n python3-module-%oname gevent is a coroutine-based Python networking library that uses greenlet to provide a high-level synchronous API on top of libevent event loop. Features include: * convenient API around greenlets * familiar synchronization primitives (gevent.event, gevent.queue) * socket module that cooperates * WSGI server on top of libevent-http * DNS requests done through libevent-dns * monkey patching utility to get pure Python modules to cooperate %endif %package doc Summary: Documentation for gevent Group: Development/Documentation BuildArch: noarch %description doc gevent is a coroutine-based Python networking library that uses greenlet to provide a high-level synchronous API on top of libevent event loop. This package contains documentation and examples for gevent. %package pickles Summary: Pickles for gevent Group: Development/Documentation %description pickles gevent is a coroutine-based Python networking library that uses greenlet to provide a high-level synchronous API on top of libevent event loop. This package contains pickles for gevent. %prep %setup %if_with python3 rm -rf ../python3 cp -a . ../python3 %endif %prepare_sphinx doc %build %add_optflags -fno-strict-aliasing %python_build_debug %if_with python3 pushd ../python3 export CYTHON=cython3 sed -i 's|import mimetools|import email.message|' gevent/pywsgi.py sed -i 's|mimetools.Message|email.message.Message|' gevent/pywsgi.py sed -i 's|basestring|str|g' gevent/ares.pyx %python3_build_debug || \ (%make clean; %python3_build_debug || \ (%make clean; %python3_build_debug )) popd %endif %install %python_install %if_with python3 pushd ../python3 %python3_install find %buildroot%python3_sitelibdir -type f -name '*.py' -exec 2to3 -w -n '{}' + popd %endif #doc export PYTHONPATH=%buildroot%python_sitelibdir pushd doc %make pickle %make html cp -fR _build/pickle %buildroot%python_sitelibdir/%oname/ popd %files %doc AUTHORS LICENSE* TODO *.rst %python_sitelibdir/* %exclude %python_sitelibdir/%oname/pickle %files doc %doc doc/_build/html %doc examples %files pickles %python_sitelibdir/%oname/pickle %if_with python3 %files -n python3-module-%oname %doc AUTHORS LICENSE* TODO *.rst %python3_sitelibdir/* %endif %changelog * Mon Apr 15 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0-alt4.git20130221 - Use 'find... -exec...' instead of 'for ... $(find...' * Sat Mar 23 2013 Aleksey Avdeev <solo@altlinux.ru> 1.0-alt3.git20130221.1 - Rebuild with Python-3.3 * Thu Mar 07 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0-alt3.git20130221 - New snapshot * Tue Jun 05 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0-alt2.hg20120529 - Fixed using email.message * Mon Jun 04 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0-alt1.hg20120529 - New snapshot - Added module for Python 3 * Thu Apr 12 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 1.0-alt1.hg20110818.1.1 - Rebuild to remove redundant libpython2.7 dependency * Mon Oct 24 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 1.0-alt1.hg20110818.1 - Rebuild with Python-2.7 * Wed Aug 24 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0-alt1.hg20110818 - Version 1.0 * Tue May 10 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.14.0-alt1.hg20110502 - New snapshot * Tue Apr 05 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.14.0-alt1.hg20110325.1 - Rebuilt with python-module-sphinx-devel * Fri Mar 25 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.14.0-alt1.hg20110325 - Version 0.14.0 * Mon Aug 02 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.13.0-alt1.hg20100802 - New snapshot * Tue Jun 22 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.13.0-alt1.hg20100621 - Version 0.13.0 - Added doc and pickles * Wed Feb 03 2010 Vitaly Lipatov <lav@altlinux.ru> 0.11.2-alt1 - initial build for ALT Linux Sisyphus |