Пакет python-module-lxml: 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 | %def_without bootstrap %define modulename lxml %def_without python3 Name: python-module-lxml Version: 4.6.3.0.16.git5ecb40bc Release: alt1 Summary: Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API. # Source-git: https://github.com/lxml/lxml.git Source: %name-%version.tar License: BSD-3-Clause AND GPL-2.0-or-later Group: Development/Python URL: http://codespeak.net/lxml BuildPreReq: libxslt-devel zlib-devel # see doc/build.txt BuildPreReq: python-module-Cython >= 0.18 BuildPreReq: python-modules-wsgiref %if_without bootstrap # Used for tests only, but depends on lxml itself, # which is not yet built in a bootstrap environment. BuildPreReq: python-module-cssselect %endif %setup_python_module lxml %py_requires cssselect BuildPreReq: python-devel %if_with python3 BuildRequires(pre): rpm-build-python3 # see doc/build.txt BuildPreReq: python3-module-Cython >= 0.18 BuildPreReq: python3-devel %if_without bootstrap # Used for tests only, but depends on lxml itself, # which is not yet built in a bootstrap environment. BuildPreReq: python3-module-cssselect %endif %add_python3_req_skip etree %endif %description lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It provides safe and convenient access to these libraries using the ElementTree API. It extends the ElementTree API significantly to offer support for XPath, RelaxNG, XML Schema, XSLT, C14N and much more. %if_with python3 %package -n python3-module-%modulename Summary: XML processing library combining libxml2/libxslt with the ElementTree API (Python 3) Group: Development/Python3 %py3_requires cssselect # Prepare for the future default method (to test the result earlier): %python3_req_hier %description -n python3-module-%modulename lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It provides safe and convenient access to these libraries using the ElementTree API. It extends the ElementTree API significantly to offer support for XPath, RelaxNG, XML Schema, XSLT, C14N and much more. This is module for use with Python 3. %endif %package doc Summary: Documentation for lxml Group: Development/Documentation BuildArch: noarch %description doc lxml is a Pythonic, mature binding for the libxml2 and libxslt libraries. It provides safe and convenient access to these libraries using the ElementTree API. It extends the ElementTree API significantly to offer support for XPath, RelaxNG, XML Schema, XSLT, C14N and much more. This package contains documentation for lxml. %prep %setup %if_with python3 cp -a . ../python3 %endif %build export LC_ALL=en_US.UTF-8 # see Makefile %python_build_debug --with-cython %if_with python3 pushd ../python3 sed -i 's|/usr/bin/env python.*|/usr/bin/env python3|' \ update-error-constants.py test.py sed -i 's|/usr/bin/python|/usr/bin/python3|' \ doc/rest2latex.py doc/rest2html.py %python3_build --with-cython popd %endif %install export LC_ALL=en_US.UTF-8 %python_install %if_with python3 pushd ../python3 %python3_install popd %endif %check export LC_ALL=en_US.UTF-8 # see Makefile CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; cp -l build/lib.linux-*/lxml/*.so src/lxml/ python2 test.py -p -v PYTHONPATH=src python2 src/lxml/tests/selftest.py PYTHONPATH=src python2 src/lxml/tests/selftest2.py %if_with python3 pushd ../python3 cp -l build/lib.linux-*/lxml/*.so src/lxml/ python3 test.py -p -v PYTHONPATH=src python3 src/lxml/tests/selftest.py PYTHONPATH=src python3 src/lxml/tests/selftest2.py popd %endif %files %python_sitelibdir/* %if_with python3 %files -n python3-module-%modulename %python3_sitelibdir/* %endif %files doc %doc doc samples %changelog * Thu Jul 01 2021 Grigory Ustinov <grenka@altlinux.org> 4.6.3.0.16.git5ecb40bc-alt1 - Build from last commit. * Sun Nov 08 2020 Vitaly Lipatov <lav@altlinux.ru> 4.5.0-alt3 - build python2 only * Wed Apr 29 2020 Stanislav Levin <slev@altlinux.org> 4.5.0-alt2 - Fixed FTBFS. * Tue Mar 17 2020 Grigory Ustinov <grenka@altlinux.org> 4.5.0-alt1 - Build new version - Disable bootstrap knob. * Wed Jan 15 2020 Grigory Ustinov <grenka@altlinux.org> 4.4.2-alt2 - Bootstrap for python3.8. * Mon Dec 09 2019 Grigory Ustinov <grenka@altlinux.org> 4.4.2-alt1 - Build new version - Fix license * Fri Aug 23 2019 Grigory Ustinov <grenka@altlinux.org> 4.4.1-alt1 - Build new version - Disable bootstrap knob. * Wed Apr 03 2019 Grigory Ustinov <grenka@altlinux.org> 4.3.3-alt1.1 - Bootstrap for python3.7. * Wed Mar 27 2019 Grigory Ustinov <grenka@altlinux.org> 4.3.3-alt1 - Build new version * Mon Mar 04 2019 Grigory Ustinov <grenka@altlinux.org> 4.3.2-alt1 - Build new version * Mon Feb 11 2019 Grigory Ustinov <grenka@altlinux.org> 4.3.1-alt1 - Build new version * Sun Jan 06 2019 Grigory Ustinov <grenka@altlinux.org> 4.3.0-alt1 - Build new version * Tue Dec 25 2018 Grigory Ustinov <grenka@altlinux.org> 4.2.5-alt1 - Build new version * Tue Mar 27 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 4.2.1-alt1.1 - (NMU) Rebuilt with python-3.6.4. * Thu Mar 22 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 4.2.1-alt1 - Updated to upstream version 4.2.1. * Sun Oct 01 2017 Vitaly Lipatov <lav@altlinux.ru> 4.0.0-alt1 - build new version * Sun Oct 01 2017 Vitaly Lipatov <lav@altlinux.ru> 3.8.0-alt1 - build new version * Fri Apr 29 2016 Ivan Zakharyaschev <imz@altlinux.org> 3.5.0-alt2.beta1.git20150727 - (.spec) Described the actually necessary simplification for %%if_with bootstrap (namely: make it skip some tests employing cssselect which depends on lxml itself). * Tue Apr 12 2016 Denis Medvedev <nbr@altlinux.org> 3.5.0-alt1.beta1.git20150727.3 - NMU: added documentation back. * Wed Mar 23 2016 Denis Medvedev <nbr@altlinux.org> 3.5.0-alt1.beta1.git20150727.2 - NMU: temporarily removed documentation for python3.5 cycle removal. * Thu Jan 28 2016 Mikhail Efremov <sem@altlinux.org> 3.5.0-alt1.beta1.git20150727.1 - NMU: Use buildreq for BR. * Wed Aug 12 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.5.0-alt1.beta1.git20150727 - Version 3.5.0.beta1 * Mon Apr 27 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.5-alt1.dev.git20150417 - Version 3.5.dev * Tue Jan 06 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.4.1-alt1.git20141226 - New snapshot * Fri Nov 21 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.4.1-alt1.git20141120 - Version 3.4.1 * Fri Aug 22 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.3.5-alt1.git20140418 - Version 3.3.5 * Sat Mar 30 2013 Aleksey Avdeev <solo@altlinux.ru> 3.1.1-alt1.git20130330 - Version 3.1.1 (d7ea8fd4bb60e8e0799b1cb4a3ef0f79da8f3530) * Thu Mar 28 2013 Aleksey Avdeev <solo@altlinux.ru> 3.1.0-alt1 - Version 3.1.0 * Sun Mar 17 2013 Aleksey Avdeev <solo@altlinux.ru> 2.3.6-alt1 - Version 2.3.6 * Tue Apr 10 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.3.4-alt2 - Added module for Python 3 * Mon Apr 09 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.3.4-alt1 - Version 2.3.4 * Fri Oct 21 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 2.2.8-alt2.1 - Rebuild with Python-2.7 * Sun Mar 27 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.2.8-alt2 - Added zlib-devel into BuildPreReq - Rebuilt for debuginfo * Tue Nov 30 2010 Ivan Fedorov <ns@altlinux.org> 2.2.8-alt1 - Version 2.2.8 * Thu Jul 29 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.2.7-alt1 - Version 2.2.7 - Added docs * Mon Feb 08 2010 Vitaly Lipatov <lav@altlinux.ru> 2.2.4-alt1 - cleanup spec - new version 2.2.4 (with rpmrb script) * Sun Dec 13 2009 Repocop Q. A. Robot <repocop@altlinux.org> 2.1.1-alt1.1.qa1 - NMU (by repocop): the following fixes applied: * vendor-tag for python-module-lxml * postclean-05-filetriggers for spec file * Wed Nov 11 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.1.1-alt1.1 - Rebuilt with python 2.6 * Wed Jul 30 2008 Ivan Fedorov <ns@altlinux.org> 2.1.1-alt1 - 2.1.1 * Wed May 28 2008 Ivan Fedorov <ns@altlinux.org> 2.0.5-alt1 - 2.0.5 * Wed Apr 09 2008 Ivan Fedorov <ns@altlinux.org> 2.0.3-alt1 - 2.0.3 * Mon Jan 28 2008 Grigory Batalov <bga@altlinux.ru> 1.3.6-alt1.1 - Rebuilt with python-2.5. * Wed Jan 02 2008 Vitaly Lipatov <lav@altlinux.ru> 1.3.6-alt1 - initial build for ALT Linux Sisyphus |