Пакет python-module-logilab-common: 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 | %def_enable check %def_with python3 %define oname logilab-common Name: python-module-%oname Version: 1.4.1 Release: alt3 Summary: Useful miscellaneous modules used by Logilab projects License: LGPLv2.1+ Group: Development/Python Url: http://www.logilab.org/project/logilab-common Packager: Python Development Team <python@packages.altlinux.org> # Do not install /usr/bin/pytest from there # and use it instead of ours quietly; # an explicit "Requires: pytest" is needed. Conflicts: python-module-pytest = 3.0.5-alt1 BuildArch: noarch # hg clone http://hg.logilab.org/review/logilab/common/ Source: %name-%version.tar %py_requires mx.DateTime %add_python_req_skip mercurial sphinx %setup_python_module %oname %{?!_without_check:%{?!_disable_check:BuildRequires: /proc %py_dependencies mx.DateTime unittest2}} BuildRequires: python-module-egenix-mx-base python-module-pytz python-module-unittest2 %if_with python3 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-module-pytz python3-module-setuptools python3-module-six %endif %description logilab-common is a collection of low-level Python packages and modules, designed to ease: * handling command line options and configuration files * writing interactive command line tools * manipulation files and character strings * interfacing to OmniORB (removed by packager) * generating of SQL queries * running unit tests * manipulating tree structures * accessing RDBMS (currently postgreSQL, mysql and sqlite) * generating text and HTML reports * logging %if_with python3 %package -n python3-module-%oname Summary: Useful miscellaneous modules used by Logilab projects (Python 3) Group: Development/Python3 # Do not install /usr/bin/pytest3 from there # and use it instead of ours quietly; # an explicit "Requires: pytest3" is needed. Conflicts: python-module-pytest = 3.0.5-alt1 %add_python3_req_skip kerberos mercurial sphinx %add_python3_req_skip six.moves %py3_requires six %description -n python3-module-%oname logilab-common is a collection of low-level Python packages and modules, designed to ease: * handling command line options and configuration files * writing interactive command line tools * manipulation files and character strings * interfacing to OmniORB (removed by packager) * generating of SQL queries * running unit tests * manipulating tree structures * accessing RDBMS (currently postgreSQL, mysql and sqlite) * generating text and HTML reports * logging %endif %prep %setup %if_with python3 rm -rf ../python3 cp -a . -T ../python3 %endif %build %python_build %if_with python3 pushd ../python3 cp setup.py -T setup.py.back find -type f -name '*.py' -exec sed -i 's|unittest2|unittest|g' -- '{}' + find -type f -name '*.py' -exec 2to3 -w -n '{}' + mv -f setup.py.back -T setup.py %python3_build popd %endif %install %if_with python3 pushd ../python3 %python3_install install -p -m644 logilab/__init__.py \ -t %buildroot%python3_sitelibdir/logilab/ install -pD -m644 doc/logilab-pytest.1 -T %buildroot%_man1dir/logilab-pytest-3.1 popd mv %buildroot%_bindir/logilab-pytest -T %buildroot%_bindir/logilab-pytest-3 %endif %python_install install -p -m644 logilab/__init__.py \ -t %buildroot%python_sitelibdir/logilab/ install -pD -m644 doc/logilab-pytest.1 -T %buildroot%_man1dir/logilab-pytest.1 %check PYTHONPATH=%buildroot%python_sitelibdir \ %buildroot%_bindir/logilab-pytest \ -t test \ -s test_4 %if_with python3 pushd ../python3 PYTHONPATH=%buildroot%python3_sitelibdir \ %buildroot%_bindir/logilab-pytest-3 \ -t test \ -s test_4 popd %endif %global _unpackaged_files_terminate_build 1 %files %_bindir/logilab-pytest %python_sitelibdir/logilab/ %python_sitelibdir/*.egg-info %python_sitelibdir/*.pth %_man1dir/logilab-pytest.1* %doc ChangeLog README %if_with python3 %files -n python3-module-%oname %_bindir/logilab-pytest-3 %python3_sitelibdir/logilab/ %python3_sitelibdir/*.egg-info %python3_sitelibdir/*.pth %_man1dir/logilab-pytest-3.1* %doc ChangeLog README %endif %changelog * Fri May 25 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 1.4.1-alt3 - Rebuilt with python-3.6. * Thu Oct 19 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 1.4.1-alt2 - Rebuilt with updated setuptools. * Mon Oct 16 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 1.4.1-alt1 - Updated to upstream version 1.4.1. * Thu Jan 26 2017 Ivan Zakharyaschev <imz@altlinux.org> 1.0.2-alt2.hg20150708 - Rename /usr/bin/pytest{,3} to avoid collision with pytest{,3}-3.0.5 (ALT#33028). - Package *.pth files for modifying the Python path for the namespace pkg. * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 1.0.2-alt1.hg20150708.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> 1.0.2-alt1.hg20150708.1 - NMU: Use buildreq for BR. * Thu Aug 13 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.0.2-alt1.hg20150708 - Version 1.0.2 * Thu Jan 15 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.63.2-alt1.hg20141130 - Version 0.63.2 * Thu Nov 06 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.63.0-alt1.hg20141105 - Version 0.63.0 * Fri Aug 22 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.62.0-alt1.hg20140716 - Version 0.62.0 * Wed Mar 19 2014 Timur Aitov <timonbl4@altlinux.org> 0.61.0-alt1.hg20140211 - Version 0.61.0 * Mon Apr 15 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.59.0-alt2.hg20130215 - Use 'find... -exec...' instead of 'for ... $(find...' * Thu Feb 28 2013 Aleksey Avdeev <solo@altlinux.ru> 0.59.0-alt1.hg20130215 - Version 0.59.0 * Fri Jun 22 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.58.0-alt2.hg20120417 - Added module for Python 3 * Fri Jun 22 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.58.0-alt1.hg20120417 - Version 0.58.0 * Sat Nov 26 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.57.1-alt1 - Version 0.57.1 * Sun Oct 23 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.52.0-alt1.1 - Rebuild with Python-2.7 * Tue Sep 28 2010 Andrey Rahmatullin <wrar@altlinux.org> 0.52.0-alt1 - 0.52.0 - skip test_knownValues_is_standard_module_4 test because logilab.common.modutils.is_standard_module is fundamentally broken on our x86_64 (see #24144) * Mon Sep 13 2010 Andrey Rahmatullin <wrar@altlinux.org> 0.51.1-alt1 - 0.51.1 * Sat Aug 28 2010 Andrey Rahmatullin <wrar@altlinux.org> 0.51.0-alt1 - 0.51.0 - run tests * Sun Jun 13 2010 Andrey Rahmatullin <wrar@altlinux.ru> 0.50.3-alt1 - 0.50.3 * Fri May 14 2010 Andrey Rahmatullin <wrar@altlinux.ru> 0.50.1-alt2 - build from hg * Mon May 03 2010 Andrey Rahmatullin <wrar@altlinux.ru> 0.50.1-alt1 - 0.50.1 * Fri Mar 19 2010 Andrey Rahmatullin <wrar@altlinux.ru> 0.49.0-alt1 - 0.49.0 * Fri Feb 26 2010 Andrey Rahmatullin <wrar@altlinux.ru> 0.48.0-alt1 - 0.48.0 * Fri Dec 18 2009 Andrey Rahmatullin <wrar@altlinux.ru> 0.45.2-alt1 - 0.45.2 * Thu Nov 12 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.45.0-alt1.1 - Rebuilt with python 2.6 * Fri Sep 04 2009 Andrey Rahmatullin <wrar@altlinux.ru> 0.45.0-alt1 - 0.45.0 * Thu Aug 20 2009 Andrey Rahmatullin <wrar@altlinux.ru> 0.44.0-alt1 - 0.44.0 * Thu Mar 26 2009 Andrey Rahmatullin <wrar@altlinux.ru> 0.39.0-alt1 - 0.39.0 * Fri Mar 06 2009 Andrey Rahmatullin <wrar@altlinux.ru> 0.38.1-alt1 - 0.38.1 * Sun Feb 22 2009 Andrey Rahmatullin <wrar@altlinux.ru> 0.38.0-alt2 - use %%python_{build,install} * Wed Jan 28 2009 Andrey Rahmatullin <wrar@altlinux.ru> 0.38.0-alt1 - 0.38.0 * Sat Dec 13 2008 Andrey Rahmatullin <wrar@altlinux.ru> 0.37.0-alt1 - 0.37.0 * Sat Nov 15 2008 Andrey Rahmatullin <wrar@altlinux.ru> 0.36.1-alt1 - 0.36.1 * Sun Nov 09 2008 Andrey Rahmatullin <wrar@altlinux.ru> 0.36.0-alt1 - 0.36.0 * Sun Oct 12 2008 Andrey Rahmatullin <wrar@altlinux.ru> 0.35.2-alt1 - 0.35.2 - spec cleanup - package logilab/__init__.py, fixing imports and automatic dependency search (closes: #17532) - don't package tests * Thu Jan 24 2008 Grigory Batalov <bga@altlinux.ru> 0.21.0-alt1.1 - Rebuilt with python-2.5. * Wed Dec 6 2006 Andrey Khavryuchenko <akhavr@altlinux.org> 0.21.0-alt1 - Initial build for ALT Linux |