Пакет python-module-repoze.who: 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 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 | %define oname repoze.who %def_with python3 Name: python-module-%oname Version: 2.2 Release: alt3.git20140327 Summary: Identification and authentication framework for WSGI Group: Development/Python License: BSD-derived URL: http://pypi.python.org/pypi/repoze.who/ # git://github.com/repoze/repoze.who.git Source: %name-%version.tar Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org> BuildRequires(pre): rpm-macros-sphinx # Automatically added by buildreq on Thu Jan 28 2016 (-bi) # optimized out: python-base python-devel python-module-PyStemmer python-module-Pygments python-module-babel python-module-cssselect python-module-genshi python-module-jinja2 python-module-jinja2-tests python-module-markupsafe python-module-pytz python-module-repoze python-module-repoze.sphinx python-module-setuptools python-module-six python-module-snowballstemmer python-module-sphinx python-module-sphinx_rtd_theme python-module-zope python-module-zope.interface python-modules python-modules-compiler python-modules-ctypes python-modules-email python-modules-encodings python-modules-json python-modules-logging python-modules-multiprocessing python-modules-unittest python-tools-2to3 python3 python3-base python3-module-zope.interface BuildRequires: gif2png python-module-alabaster python-module-docutils python-module-html5lib python-module-objects.inv python-module-paste python-module-repoze.sphinx.autointerface python-modules-wsgiref python3-module-paste python3-module-setuptools python3-module-zope rpm-build-python3 time #BuildRequires: python-devel python-module-sphinx-devel #BuildPreReq: texlive-latex-recommended gif2png #BuildPreReq: python-module-zope.interface #BuildPreReq: python-module-paste python-module-distribute # for docs #BuildPreReq: %py_dependencies webob #BuildPreReq: %py_dependencies repoze.sphinx.autointerface %if_with python3 BuildRequires(pre): rpm-build-python3 #BuildRequires: python3-devel python3-module-zope.interface #BuildPreReq: python3-module-paste python3-module-distribute #BuildPreReq: python-tools-2to3 %endif %py_requires paste zope.interface Requires: python-module-repoze = %EVR %description repoze.who is an identification and authentication framework for arbitrary WSGI applications. It acts as WSGI middleware. repoze.who is inspired by Zope 2's Pluggable Authentication Service (PAS) (but repoze.who is not dependent on Zope in any way; it is useful for any WSGI application). It provides no facility for authorization (ensuring whether a user can or cannot perform the operation implied by the request). This is considered to be the domain of the WSGI application. %if_with python3 %package -n python3-module-%oname Summary: Identification and authentication framework for WSGI (Python 3) Group: Development/Python3 %python3_req_hier # which helps to auto-detect the following: #py3_requires zope.interface # And one additional (not auto-detected): %py3_requires paste zope.interface Requires: python3-module-repoze = %EVR %description -n python3-module-%oname repoze.who is an identification and authentication framework for arbitrary WSGI applications. It acts as WSGI middleware. repoze.who is inspired by Zope 2's Pluggable Authentication Service (PAS) (but repoze.who is not dependent on Zope in any way; it is useful for any WSGI application). It provides no facility for authorization (ensuring whether a user can or cannot perform the operation implied by the request). This is considered to be the domain of the WSGI application. %package -n python3-module-repoze Summary: Root files for repoze (Python 3) Group: Development/Python3 %description -n python3-module-repoze Root files for repoze. %package -n python3-module-%oname-tests Summary: Tests for repoze.who (Python 3) Group: Development/Python3 Requires: python3-module-%oname = %version-%release %description -n python3-module-%oname-tests repoze.who is an identification and authentication framework for arbitrary WSGI applications. It acts as WSGI middleware. repoze.who is inspired by Zope 2's Pluggable Authentication Service (PAS) (but repoze.who is not dependent on Zope in any way; it is useful for any WSGI application). It provides no facility for authorization (ensuring whether a user can or cannot perform the operation implied by the request). This is considered to be the domain of the WSGI application. This package contains tests for repoze.who. %endif %package -n python-module-repoze Summary: Root files for repoze Group: Development/Python %py_provides repoze %description -n python-module-repoze Root files for repoze. %package tests Summary: Tests for repoze.who Group: Development/Python Requires: %name = %version-%release %description tests repoze.who is an identification and authentication framework for arbitrary WSGI applications. It acts as WSGI middleware. repoze.who is inspired by Zope 2's Pluggable Authentication Service (PAS) (but repoze.who is not dependent on Zope in any way; it is useful for any WSGI application). It provides no facility for authorization (ensuring whether a user can or cannot perform the operation implied by the request). This is considered to be the domain of the WSGI application. This package contains tests for repoze.who. %package docs Summary: Documentation for repoze.who Group: Development/Documentation BuildArch: noarch %description docs repoze.who is an identification and authentication framework for arbitrary WSGI applications. It acts as WSGI middleware. repoze.who is inspired by Zope 2's Pluggable Authentication Service (PAS) (but repoze.who is not dependent on Zope in any way; it is useful for any WSGI application). It provides no facility for authorization (ensuring whether a user can or cannot perform the operation implied by the request). This is considered to be the domain of the WSGI application. This package contains documentation for repoze.who. %package pickles Summary: Pickles for repoze.who Group: Development/Python %description pickles repoze.who is an identification and authentication framework for arbitrary WSGI applications. It acts as WSGI middleware. repoze.who is inspired by Zope 2's Pluggable Authentication Service (PAS) (but repoze.who is not dependent on Zope in any way; it is useful for any WSGI application). It provides no facility for authorization (ensuring whether a user can or cannot perform the operation implied by the request). This is considered to be the domain of the WSGI application. This package contains pickles for repoze.who. %prep %setup %if_with python3 rm -rf ../python3 cp -a . ../python3 %endif %prepare_sphinx docs %build %python_build %if_with python3 pushd ../python3 find -type f -name '*.py' -exec 2to3 -w -n '{}' + %python3_build popd %endif #export PYTHONPATH=$PWD pushd docs/.static gif2png logo_hi.gif popd %make -C docs latex pickle html %install %python_install %if "%python_sitelibdir_noarch" != "%python_sitelibdir" install -d %buildroot%python_sitelibdir mv %buildroot%python_sitelibdir_noarch/* \ %buildroot%python_sitelibdir/ %endif install -p -m644 repoze/__init__.py %buildroot%python_sitelibdir/repoze for i in $(find %buildroot%python_sitelibdir/repoze -type d \! -name '__*') do touch $i/__init__.py done install -d %buildroot%python_sitelibdir/%oname cp -fR docs/.build/pickle %buildroot%python_sitelibdir/%oname/ %if_with python3 pushd ../python3 %python3_install %if "%python3_sitelibdir_noarch" != "%python3_sitelibdir" install -d %buildroot%python3_sitelibdir mv %buildroot%python3_sitelibdir_noarch/* \ %buildroot%python3_sitelibdir/ %endif install -p -m644 repoze/__init__.py %buildroot%python3_sitelibdir/repoze for i in $(find %buildroot%python3_sitelibdir/repoze -type d \! -name '__*') do touch $i/__init__.py done popd %endif %files %doc *.txt %python_sitelibdir/%oname-* %exclude %python_sitelibdir/*.pth %python_sitelibdir/repoze/* %exclude %python_sitelibdir/repoze/__init__.py* %exclude %python_sitelibdir/repoze/who/tests %exclude %python_sitelibdir/repoze/who/plugins/tests %files -n python-module-repoze %dir %python_sitelibdir/repoze %python_sitelibdir/repoze/__init__.py* %files tests %python_sitelibdir/repoze/who/tests %python_sitelibdir/repoze/who/plugins/tests %files docs %doc docs/.build/latex %doc docs/.build/html %files pickles %python_sitelibdir/%oname/pickle %if_with python3 %files -n python3-module-%oname %doc *.txt %python3_sitelibdir/%oname-* %exclude %python3_sitelibdir/*.pth %python3_sitelibdir/repoze/* %exclude %python3_sitelibdir/repoze/__init__.py* %exclude %python3_sitelibdir/repoze/__pycache__/__init__.*.py* %exclude %python3_sitelibdir/repoze/who/tests %exclude %python3_sitelibdir/repoze/who/plugins/tests %files -n python3-module-repoze %dir %python3_sitelibdir/repoze %python3_sitelibdir/repoze/__init__.py* %dir %python3_sitelibdir/repoze/__pycache__ %python3_sitelibdir/repoze/__pycache__/__init__.*.py* %files -n python3-module-%oname-tests %python3_sitelibdir/repoze/who/tests %python3_sitelibdir/repoze/who/plugins/tests %endif %changelog * Mon Oct 31 2016 Ivan Zakharyaschev <imz@altlinux.org> 2.2-alt3.git20140327 - %%python3_req_hier for more precise reqs. * Tue Jun 14 2016 Ivan Zakharyaschev <imz@altlinux.org> 2.2-alt2.git20140327 - (.spec) Python3 packaging fixes: package corresponding __pycache__/* & sources together. - (AUTO) subst_x86_64. * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 2.2-alt1.git20140327.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.2-alt1.git20140327.1 - NMU: Use buildreq for BR. * Tue Jul 15 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.2-alt1.git20140327 - New snapshot * Mon Dec 02 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.2-alt1.git20131113 - Version 2.2 * Mon Apr 15 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.1-alt2.b1 - Use 'find... -exec...' instead of 'for ... $(find...' * Sun Mar 03 2013 Aleksey Avdeev <solo@altlinux.ru> 2.1-alt1.b1 - Version 2.1b1 * Sat May 05 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0-alt3 - Added module for Python 3 * Tue Dec 27 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0-alt2 - Version 2.0 * Mon Oct 24 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 2.0-alt1.b1.3.1 - Rebuild with Python-2.7 * Thu Jun 23 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0-alt1.b1.3 - Excluded *.pth * Sun Jun 19 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0-alt1.b1.2 - Added necessary runtime requirements * Sat May 28 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0-alt1.b1.1 - Set as archdep package * Sat May 28 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0-alt1.b1 - Version 2.0b1 * Tue May 10 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0-alt1.a4 - Version 2.0a4 * Tue Apr 05 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0-alt1.a3.1 - Rebuilt with python-module-sphinx-devel * Tue Nov 23 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.0-alt1.a3 - Version 2.0a3 * Thu Jul 15 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0.18-alt1 - Initial build for Sisyphus |