Package python3-module-zope.security: 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 | %define _unpackaged_files_terminate_build 1 %define oname zope.security %def_without check %def_without docs Name: python3-module-%oname Version: 5.1.1 Release: alt2 Summary: Zope Security Framework License: ZPL-2.1 Group: Development/Python3 Url: http://pypi.python.org/pypi/zope.security/ #Git: https://github.com/zopefoundation/zope.security.git Source: %name-%version.tar BuildRequires(pre): rpm-build-python3 BuildRequires(pre): rpm-macros-sphinx3 BuildRequires: python3-devel BuildRequires: python3-module-setuptools BuildRequires: python3-module-zope.proxy %if_with docs BuildRequires: python3-module-sphinx-devel BuildRequires: python3-module-repoze.sphinx.autointerface %endif BuildRequires: python3-module-zope.schema BuildRequires: python3-module-zope.location BuildRequires: time %if_with check BuildRequires: python3-module-tox BuildRequires: python3-module-virtualenv BuildRequires: python3-module-BTrees BuildRequires: python3-module-zope.testing BuildRequires: python3-module-zope.testrunner BuildRequires: python3-module-zope.component-tests %endif %py3_requires zope.i18nmessageid %py3_requires zope.component zope.interface zope.location zope.proxy %py3_requires zope.schema zope.configuration %description The Security framework provides a generic mechanism to implement security policies on Python objects. %package examples Summary: Examples for Zope Security Framework Group: Development/Python3 Requires: %name = %EVR %description examples The Security framework provides a generic mechanism to implement security policies on Python objects. This package contains examples for Zope Security Framework. %package tests Summary: Tests for Zope Security Framework Group: Development/Python3 Requires: %name = %EVR %py3_requires zope.testing %description tests The Security framework provides a generic mechanism to implement security policies on Python objects. This package contains tests for Zope Security Framework. %package pickles Summary: Pickles for Zope Security Framework Group: Development/Python3 %description pickles The Security framework provides a generic mechanism to implement security policies on Python objects. This package contains pickles for Zope Security Framework. %package docs Summary: Documentation for Zope Security Framework Group: Development/Documentation BuildArch: noarch %description docs The Security framework provides a generic mechanism to implement security policies on Python objects. This package contains documentation for Zope Security Framework. %prep %setup %if_with docs %prepare_sphinx3 . ln -s ../objects.inv3 docs/ %endif %build %add_optflags -fno-strict-aliasing %python3_build %install %python3_install install -p -m644 src/zope/security/*.zcml \ %buildroot%python3_sitelibdir/zope/security/ %if_with docs export PYTHONPATH=$PWD/src sed -i "s|SPHINXBUILD = sphinx-build|SPHINXBUILD = py3_sphinx-build|" docs/Makefile %make -C docs pickle %make -C docs html install -d %buildroot%python3_sitelibdir/%oname cp -fR docs/_build/pickle %buildroot%python3_sitelibdir/%oname/ %endif %check sed -i '/\[testenv\]$/a whitelist_externals =\ \/bin\/cp\ \/bin\/sed\ commands_pre =\ \/bin\/cp {env:_PYTEST_BIN:} \{envbindir\}\/zope-testrunner3\ \/bin\/sed -i \x271c #!\{envpython\}\x27 \{envbindir\}\/zope-testrunner3' tox.ini sed -i '/setenv =$/a\ py%{python_version_nodots python3}: _PYTEST_BIN=%_bindir\/zope-testrunner3' tox.ini sed -i 's|zope-testrunner |zope-testrunner3 |g' tox.ini # cancel docbuild tests sed -i 's|sphinx-build|#py3_sphinx-build|g' tox.ini tox.py3 --sitepackages -e py%{python_version_nodots python3} -v %files %doc *.txt %python3_sitelibdir/* %exclude %python3_sitelibdir/*.pth %exclude %python3_sitelibdir/*/*/test* %exclude %python3_sitelibdir/*/*/*/test* %exclude %python3_sitelibdir/*/*/examples %if_with docs %exclude %python3_sitelibdir/*/pickle %endif %files examples %python3_sitelibdir/*/*/examples %files tests %python3_sitelibdir/*/*/test* %python3_sitelibdir/*/*/*/test* %if_with docs %files pickles %python3_sitelibdir/*/pickle %files docs %doc docs/_build/html/* %endif %changelog * Mon Nov 23 2020 Grigory Ustinov <grenka@altlinux.org> 5.1.1-alt2 - Bootstrap for python3.9. * Wed Apr 01 2020 Nikolai Kostrigin <nickel@altlinux.org> 5.1.1-alt1 - 5.1.0 -> 5.1.1 - Reenable check and docs sections; switch back to uniform def_with macro - Rearrange check section according to upstream changes * Fri Mar 06 2020 Anton Farygin <rider@altlinux.ru> 5.1.0-alt2 - temporary disabled check and docs sections to avoid cyclic dependencies on zope.component when building python-3.8 * Wed Mar 04 2020 Nikolai Kostrigin <nickel@altlinux.org> 5.1.0-alt1 - 5.0 -> 5.1.0 - Fix license * Mon Dec 23 2019 Nikolai Kostrigin <nickel@altlinux.org> 5.0-alt1 - NMU: 4.0.4 -> 5.0 - Remove python2 module build - Cleanup excessive commented BRs - Add unittests execution * Thu Mar 22 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 4.0.4-alt1.dev0.git20150602.1.1.1.1 - (NMU) Rebuilt with python-3.6.4. * Fri Mar 18 2016 Ivan Zakharyaschev <imz@altlinux.org> 4.0.4-alt1.dev0.git20150602.1.1.1 - (NMU) rebuild with python3-3.5 & rpm-build-python3-0.1.10 (for ABI dependence and new python3(*) reqs) * Fri Mar 18 2016 Ivan Zakharyaschev <imz@altlinux.org> 4.0.4-alt1.dev0.git20150602.1.1 - (NMU) rebuild with rpm-build-python3-0.1.9 (for common python3/site-packages/ and auto python3.3-ABI dep when needed) * Fri Jan 29 2016 Mikhail Efremov <sem@altlinux.org> 4.0.4-alt1.dev0.git20150602.1 - NMU: Use buildreq for BR. * Wed Aug 26 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.0.4-alt1.dev0.git20150602 - Version 4.0.4.dev0 * Fri Jul 18 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.0.2-alt2.dev.git20140319 - Python 3: moved examples into separate package * Thu Jul 17 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.0.2-alt1.dev.git20140319 - Version 4.0.2dev - Added module for Python 3 * Tue Sep 24 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.0.1-alt1.dev.git20130709 - Version 4.0.1dev * Wed Apr 10 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.0.0-alt3.b2.dev0.git20130327 - Version 4.0.0b2.dev0 * Thu Jan 03 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.0.0-alt2.bzr20120517 - Added necessary .zcml files (ALT #28301) * Sun Jun 03 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.0.0-alt1.bzr20120517 - Version 4.0.0dev * Thu Apr 12 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 3.8.3-alt1.1 - Rebuild to remove redundant libpython2.7 dependency * Wed Dec 28 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.8.3-alt1 - Version 3.8.3 * Tue Nov 01 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 3.8.1-alt3.1 - Rebuild with Python-2.7 * Wed Jun 29 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.8.1-alt3 - Added necessary requirements for tests * Sun Jun 19 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.8.1-alt2 - Added necessary requirements - Excluded *.pth * Tue May 17 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.8.1-alt1 - Initial build for Sisyphus |