Package python-module-pyproj: 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 | %define oname pyproj %def_with python3 Name: python-module-%oname Version: 1.9.6 Release: alt1 Summary: Pyrex generated python interface to PROJ.4 library License: MIT Group: Development/Python Url: https://pypi.python.org/pypi/pyproj/ Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org> # https://github.com/jswhit/pyproj.git Source: %oname-%version.tar.gz BuildRequires(pre): rpm-build-python #BuildPreReq: libproj-devel python-devel python-module-setuptools-tests #BuildPreReq: python-module-numpy %setup_python_module %oname %if_with python3 BuildRequires(pre): rpm-build-python3 #BuildPreReq: python3-devel python-tools-2to3 #BuildPreReq: python3-module-setuptools-tests #BuildPreReq: python3-module-numpy %endif # Automatically added by buildreq on Thu Jan 28 2016 (-bi) # optimized out: elfutils python-base python-modules python-modules-compiler python-modules-email python-modules-encodings python-modules-logging python3 python3-base BuildRequires: python-devel python-tools-2to3 python3-devel rpm-build-python3 time BuildRequires: python-module-Cython python3-module-Cython %description Pyrex generated python interface to PROJ.4 library Performs cartographic transformations and geodetic computations. The Proj class can convert from geographic (longitude,latitude) to native map projection (x,y) coordinates and vice versa, or from one map projection coordinate system directly to another. The Geod class can perform forward and inverse geodetic, or Great Circle, computations. The forward computation involves determining latitude, longitude and back azimuth of a terminus point given the latitude and longitude of an initial point, plus azimuth and distance. The inverse computation involves determining the forward and back azimuths and distance given the latitudes and longitudes of an initial and terminus point. Input coordinates can be given as python arrays, lists/tuples, scalars or numpy/Numeric/numarray arrays. Optimized for objects that support the Python buffer protocol (regular python and numpy array objects). %package -n python3-module-%oname Summary: Pyrex generated python interface to PROJ.4 library Group: Development/Python3 %description -n python3-module-%oname Pyrex generated python interface to PROJ.4 library Performs cartographic transformations and geodetic computations. The Proj class can convert from geographic (longitude,latitude) to native map projection (x,y) coordinates and vice versa, or from one map projection coordinate system directly to another. The Geod class can perform forward and inverse geodetic, or Great Circle, computations. The forward computation involves determining latitude, longitude and back azimuth of a terminus point given the latitude and longitude of an initial point, plus azimuth and distance. The inverse computation involves determining the forward and back azimuths and distance given the latitudes and longitudes of an initial and terminus point. Input coordinates can be given as python arrays, lists/tuples, scalars or numpy/Numeric/numarray arrays. Optimized for objects that support the Python buffer protocol (regular python and numpy array objects). %package -n python3-module-%oname-tests Summary: Tests for pyrex generated python interface to PROJ.4 library Group: Development/Python3 Requires: python3-module-%oname = %version-%release %description -n python3-module-%oname-tests Pyrex generated python interface to PROJ.4 library Performs cartographic transformations and geodetic computations. This package contains tests for pyrex generated python interface to PROJ.4 library. %package tests Summary: Tests for pyrex generated python interface to PROJ.4 library Group: Development/Python Requires: %name = %version-%release %description tests Pyrex generated python interface to PROJ.4 library Performs cartographic transformations and geodetic computations. This package contains tests for pyrex generated python interface to PROJ.4 library. %prep %setup %if_with python3 cp -fR . ../python3 find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' + %endif %build %add_optflags -fno-strict-aliasing %python_build_debug %if_with python3 pushd ../python3 %python3_build_debug popd %endif %install %python_install install -d %buildroot%python_sitelibdir/%oname/test install -p -m644 test/* %buildroot%python_sitelibdir/%oname/test chmod +x %buildroot%python_sitelibdir/%oname/data/test* %if_with python3 pushd ../python3 %python3_install install -d %buildroot%python3_sitelibdir/%oname/test install -p -m644 test/* %buildroot%python3_sitelibdir/%oname/test chmod +x %buildroot%python3_sitelibdir/%oname/data/test* popd %endif %files %doc Changelog LICENSE* *.md docs %python_sitelibdir/* %exclude %python_sitelibdir/*/test %exclude %python_sitelibdir/%oname/data/test* %files tests %python_sitelibdir/*/test %python_sitelibdir/%oname/data/test* %if_with python3 %files -n python3-module-%oname %doc Changelog LICENSE* *.md docs %python3_sitelibdir/* %exclude %python3_sitelibdir/*/test %exclude %python3_sitelibdir/%oname/data/test* %files -n python3-module-%oname-tests %python3_sitelibdir/*/test %python3_sitelibdir/%oname/data/test* %endif %changelog * Fri Apr 12 2019 Grigory Ustinov <grenka@altlinux.org> 1.9.6-alt1 - Build new version for python3.7. * Thu Mar 22 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 1.9.4-alt3.git20141229.1.1.1 - (NMU) Rebuilt with python-3.6.4. * Thu Mar 17 2016 Ivan Zakharyaschev <imz@altlinux.org> 1.9.4-alt3.git20141229.1.1 - (NMU) rebuild with python3-3.5 & rpm-build-python3-0.1.10 (for ABI dependence and new python3(*) reqs) * Thu Jan 28 2016 Mikhail Efremov <sem@altlinux.org> 1.9.4-alt3.git20141229.1 - NMU: Use buildreq for BR. * Tue Dec 30 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.9.4-alt3.git20141229 - New snapshot * Sat Aug 16 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.9.4-alt2.svn20131105 - Added module for Python 3 * Fri Nov 29 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.9.4-alt1.svn20131105 - New snapshot * Wed Sep 18 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.9.4-alt1.svn20130619 - Version 1.9.4 * Tue Apr 02 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.9.3-alt1.svn20130125 - Version 1.9.3 * Thu Apr 12 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 1.9.0-alt1.svn20111223.1 - Rebuild to remove redundant libpython2.7 dependency * Fri Dec 23 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.9.0-alt1.svn20111223 - Version 1.9.0 * Thu Oct 20 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 1.8.9-alt1.svn20110504.1 - Rebuild with Python-2.7 * Mon May 16 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.9-alt1.svn20110504 - Version 1.8.9 * Sat Mar 26 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.8-alt1.svn20100914.1 - Rebuilt for debuginfo * Tue Oct 19 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.8-alt1.svn20100914 - Version 1.8.8 * Wed Jul 28 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.7-alt1.svn20100715 - Version 1.8.7 * Mon Mar 08 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.6-alt1.20091103 - Version 1.8.6 - Extracted tests into separate package * Wed Nov 18 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.5-alt1.20090914.1 - Rebuilt with python 2.6 * Fri Sep 18 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.8.5-alt1.20090914 - Initial build for Sisyphus |