Пакет python-module-TurboGears: 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 199 200 201 202 203 204 205 206 207 208 209 210 211 | %define version 1.5.1 %define release alt3 %setup_python_module TurboGears %def_without python3 Name: %packagename Version: 1.5.1 Release: alt3 Summary: Back-to-front web development in Python License: MIT/X11 Group: Development/Python BuildArch: noarch Url: http://www.turbogears.org # http://www.turbogears.org/1.5/downloads/1.5.1/TurboGears-1.5.1.tar.gz Source: %modulename-%version.tar BuildPreReq: python-module-setuptools BuildPreReq: python-module-epydoc %if_with python3 BuildRequires(pre): rpm-build-python3 BuildPreReq: python3-devel python3-module-setuptools BuildPreReq: python-tools-2to3 %endif %py_requires turbokid turbocheetah paste.script json dateutil # has no pythonX.Y() provides Requires: python-module-decoratortools Requires: python-module-PasteDeploy Requires: python-module-cherrypy %description TurboGears brings together four major pieces to create an easy to install, easy to use web megaframework. It covers everything from front end (MochiKit JavaScript for the browser, Kid for templates in Python) to the controllers (CherryPy) to the back end (SQLObject). The TurboGears project is focused on providing documentation and integration with these tools without losing touch with the communities that already exist around those tools. TurboGears is easy to use for a wide range of web applications. %package tests Summary: Tests for TurboGears Group: Development/Python Requires: %name = %EVR %description tests TurboGears brings together four major pieces to create an easy to install, easy to use web megaframework. It covers everything from front end (MochiKit JavaScript for the browser, Kid for templates in Python) to the controllers (CherryPy) to the back end (SQLObject). The TurboGears project is focused on providing documentation and integration with these tools without losing touch with the communities that already exist around those tools. TurboGears is easy to use for a wide range of web applications. This package contains tests for TurboGears. %if_with python3 %package -n python3-module-%modulename Summary: Back-to-front web development in Python Group: Development/Python3 %py3_requires turbokid turbocheetah paste.script # has no pythonX.Y() provides Requires: python3-module-decoratortools Requires: python3-module-PasteDeploy # TurboGears needs old CherryPy Requires: python3-module-cherrypy2 %description -n python3-module-%modulename TurboGears brings together four major pieces to create an easy to install, easy to use web megaframework. It covers everything from front end (MochiKit JavaScript for the browser, Kid for templates in Python) to the controllers (CherryPy) to the back end (SQLObject). The TurboGears project is focused on providing documentation and integration with these tools without losing touch with the communities that already exist around those tools. TurboGears is easy to use for a wide range of web applications. %package -n python3-module-%modulename-tests Summary: Tests for TurboGears Group: Development/Python3 Requires: python3-module-%modulename = %EVR %description -n python3-module-%modulename-tests TurboGears brings together four major pieces to create an easy to install, easy to use web megaframework. It covers everything from front end (MochiKit JavaScript for the browser, Kid for templates in Python) to the controllers (CherryPy) to the back end (SQLObject). The TurboGears project is focused on providing documentation and integration with these tools without losing touch with the communities that already exist around those tools. TurboGears is easy to use for a wide range of web applications. This package contains tests for TurboGears. %endif %prep %setup -n %modulename-%version # fix for TurboJson subst "s|, < 1.2||g" setup.py %if_with python3 cp -fR . ../python3 %endif %build %python_build %if_with python3 pushd ../python3 find -type f -name '*.py' -exec 2to3 -w -n '{}' + %python3_build popd %endif %install %if_with python3 pushd ../python3 %python3_install popd pushd %buildroot%_bindir for i in $(ls); do mv $i $i.py3 done popd %endif %python_install ./doc/build_api_docs.sh %files %doc README.txt %_bindir/tg-admin %python_sitelibdir/turbogears %python_sitelibdir/TurboGears*.egg-info %exclude %python_sitelibdir/*/test* %exclude %python_sitelibdir/*/*/tests %exclude %python_sitelibdir/*/*/*/*/tests %exclude %python_sitelibdir/turbogears/qstemplates/quickstart/test.cfg_tmpl %files tests %python_sitelibdir/*/test* %python_sitelibdir/*/*/tests %python_sitelibdir/*/*/*/*/tests %python_sitelibdir/turbogears/qstemplates/quickstart/test.cfg_tmpl %if_with python3 %files -n python3-module-%modulename %doc README.txt %_bindir/tg-admin.py3 %python3_sitelibdir/turbogears %python3_sitelibdir/TurboGears*.egg-info %exclude %python3_sitelibdir/*/test* %exclude %python3_sitelibdir/*/*/test* %exclude %python3_sitelibdir/*/*/*/*/tests %exclude %python3_sitelibdir/turbogears/qstemplates/quickstart/test.cfg_tmpl %files -n python3-module-%modulename-tests %python3_sitelibdir/*/test* %python3_sitelibdir/*/*/test* %python3_sitelibdir/*/*/*/*/tests %python3_sitelibdir/turbogears/qstemplates/quickstart/test.cfg_tmpl %endif %changelog * Tue Mar 03 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5.1-alt3 - Added necessary requirements * Mon Mar 02 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5.1-alt2 - Fixed build * Mon Jul 21 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5.1-alt1 - Version 1.5.1 * Wed Sep 26 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.1.3-alt1 - Version 1.1.3 * Tue Nov 01 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 1.0.9-alt3.1 - Rebuild with Python-2.7 * Thu Oct 07 2010 Vitaly Lipatov <lav@altlinux.ru> 1.0.9-alt3 - add CherryPy 2 requires * Wed Oct 06 2010 Vitaly Lipatov <lav@altlinux.ru> 1.0.9-alt2 - fix requires (ALT bug #19979) * Wed Oct 06 2010 Vitaly Lipatov <lav@altlinux.ru> 1.0.9-alt1 - new version (1.0.9) import in git * Thu Nov 19 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0.8-alt1.1 - Rebuilt with python 2.6 * Sun Mar 29 2009 Denis Klimov <zver@altlinux.org> 1.0.8-alt1 - Initial build for ALT Linux |