Package python3-module-shapely: 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 | %define _unpackaged_files_terminate_build 1 %define oname shapely # Tests fail on i586 due to fp math precision %ifarch %ix86 %def_disable check %endif %def_with doc Name: python3-module-%oname Version: 1.7.1 Release: alt2 Summary: Planar geometries, predicates, and operations License: BSD Group: Development/Python3 Url: http://pypi.python.org/pypi/Shapely # https://github.com/Toblerity/Shapely.git Source: %name-%version.tar # Backport a relevant subset of commit # 611a0b3b2047bf8a49db32dc4b30684a10f5b6eb, which fixes # https://github.com/Toblerity/Shapely/issues/1079 (Test failure with geos # 3.9.0) and corresponds to https://github.com/Toblerity/Shapely/pull/1042/ # (Expand CI and tests to support GEOS 3.9.0beta2). The particular test vectors # must be adjusted in the backport because # https://github.com/Toblerity/Shapely/pull/1031 is not in 1.7.1; # in particular, “WKTWriter.defaults = {}” is still in tests/__init__.py. Patch: shapely-1.7.1-611a0b3b-subset.patch BuildRequires(pre): rpm-build-python3 rpm-macros-sphinx3 BuildRequires: libgeos-devel BuildRequires: python3-module-Cython libnumpy-py3-devel BuildRequires: python3-module-descartes BuildRequires: python3-module-packaging BuildRequires: python3-module-pytest BuildRequires: python3-module-numpy-testing BuildRequires: xvfb-run %if_with doc BuildRequires: python3-module-sphinx BuildRequires: /usr/bin/sphinx-apidoc BuildRequires: python3(matplotlib.sphinxext) %endif %description Planar geometries, predicates, and operations. %package examples Summary: Examples for %oname Group: Development/Python3 Requires: %name = %EVR %description examples Planar geometries, predicates, and operations. This package contains examples for %oname. %package pickles Summary: Pickles for %oname Group: Development/Python3 %add_python3_req_skip figures %description pickles Planar geometries, predicates, and operations. This package contains pickles for %oname. %package docs Summary: Documentation for %oname Group: Development/Documentation BuildArch: noarch %description docs Planar geometries, predicates, and operations. This package contains documentation for %oname. %prep %setup %patch -p1 %if_with doc %prepare_sphinx3 . ln -s ../objects.inv docs/ %endif %build export LC_ALL=en_US.UTF-8 %add_optflags -fno-strict-aliasing %python3_build %install export LC_ALL=en_US.UTF-8 %python3_install %if_with doc %make SPHINXBUILD="sphinx-build-3" -C docs pickle %make SPHINXBUILD="sphinx-build-3" -C docs html cp -fR docs/_build/pickle %buildroot%python3_sitelibdir/%oname/ %endif %check export LC_ALL=en_US.UTF-8 xvfb-run python3 setup.py test python3 setup.py build_ext -i py.test3 -vv %files %python3_sitelibdir/* %if_with doc %exclude %python3_sitelibdir/*/pickle %endif %exclude %python3_sitelibdir/*/examples %files examples %python3_sitelibdir/*/examples %if_with doc %files pickles %python3_sitelibdir/*/pickle %files docs %doc docs/_build/html/* %endif %changelog * Sun Jul 18 2021 Michael Shigorin <mike@altlinux.org> 1.7.1-alt2 - Introduce doc knob (on by default). * Sat Apr 03 2021 Grigory Ustinov <grenka@altlinux.org> 1.7.1-alt1 - Automatically updated to 1.7.1. - Enable check. - Drop python2 support. * Sun Feb 14 2021 Grigory Ustinov <grenka@altlinux.org> 1.7-alt2.b1 - Disable check for building python3.9. * Fri Jan 24 2020 Aleksei Nikiforov <darktemplar@altlinux.org> 1.7-alt1.b1 - Updated to upstream version 1.7b1 (Closes: #37910) * Wed Jun 12 2019 Stanislav Levin <slev@altlinux.org> 1.5.17-alt1.post1.1.1.1.1 - Added missing dep on `numpy.testing`. * Thu Mar 22 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 1.5.17-alt1.post1.1.1.1 - (NMU) Rebuilt with python-3.6.4. * Fri Feb 02 2018 Stanislav Levin <slev@altlinux.org> 1.5.17-alt1.post1.1.1 - (NMU) Fix Requires and BuildRequires to python-setuptools * Wed Aug 16 2017 Andrey Cherepanov <cas@altlinux.org> 1.5.17-alt1.post1.1 - Build without geos support * Wed Aug 09 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 1.5.17-alt1.post1 - Updated to upstream version 1.5.17.post1 * Thu Mar 17 2016 Ivan Zakharyaschev <imz@altlinux.org> 1.5.10-alt1.git20150820.1 - (NMU) rebuild with python3-3.5 & rpm-build-python3-0.1.10 (for ABI dependence and new python3(*) reqs) * Sun Aug 23 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5.10-alt1.git20150820 - Version 1.5.10 * Wed Feb 04 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5.2-alt1.git20150202 - New snapshot * Tue Jan 13 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.5.2-alt1.git20150104 - Version 1.5.2 * Wed Nov 05 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.4.4-alt1.git20141102 - Version 1.4.4 * Sun Nov 02 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.4.3-alt1.git20141031 - Version 1.4.3 - Added module for Python 3 * Thu Oct 20 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 1.2b6-alt2.1 - Rebuild with Python-2.7 * Tue Apr 13 2010 Denis Klimov <zver@altlinux.org> 1.2b6-alt2 - add build require to python-module-setuptools * Tue Apr 13 2010 Denis Klimov <zver@altlinux.org> 1.2b6-alt1 - Initial build for ALT Linux |