Пакет python-module-netCDF4: 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 | %define oname netCDF4 %def_with python3 %def_disable check Name: python-module-%oname Version: 1.2.9 Release: alt3 Summary: Python/numpy interface to netCDF library (versions 3 and 4) License: BSD / MIT Group: Development/Python Url: https://pypi.python.org/pypi/netCDF4/ # https://github.com/Unidata/netcdf4-python.git Source: %name-%version.tar Source1: setup.cfg Patch1: %oname-%version-alt-docs.patch BuildRequires: libnetcdf-devel zlib-devel libjpeg-devel libcurl-devel BuildRequires: python-devel python-module-setuptools BuildRequires: python-module-Cython libnumpy-devel BuildRequires: python-module-epydoc BuildRequires: python-module-html5lib python-module-notebook python-module-numpy-testing python-module-pytest %if_with python3 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-devel python3-module-setuptools BuildRequires: python3-module-Cython libnumpy-py3-devel BuildRequires: python3-module-html5lib BuildRequires: python3-module-notebook python3-module-numpy-testing %endif %py_provides %oname %description netCDF version 4 has many features not found in earlier versions of the library and is implemented on top of HDF5. This module can read and write files in both the new netCDF 4 and the old netCDF 3 format, and can create files that are readable by HDF5 clients. The API modelled after Scientific.IO.NetCDF, and should be familiar to users of that module. Most new features of netCDF 4 are implemented, such as multiple unlimited dimensions, groups and zlib data compression. All the new numeric data types (such as 64 bit and unsigned integer types) are implemented. Compound and variable length (vlen) data types are supported, but the enum and opaque data types are not. Mixtures of compound and vlen data types (compound types containing vlens, and vlens containing compound types) are not supported. %package docs Summary: Documentation for %oname Group: Development/Documentation BuildArch: noarch %description docs netCDF version 4 has many features not found in earlier versions of the library and is implemented on top of HDF5. This module can read and write files in both the new netCDF 4 and the old netCDF 3 format, and can create files that are readable by HDF5 clients. The API modelled after Scientific.IO.NetCDF, and should be familiar to users of that module. Most new features of netCDF 4 are implemented, such as multiple unlimited dimensions, groups and zlib data compression. All the new numeric data types (such as 64 bit and unsigned integer types) are implemented. Compound and variable length (vlen) data types are supported, but the enum and opaque data types are not. Mixtures of compound and vlen data types (compound types containing vlens, and vlens containing compound types) are not supported. This package contains documentation for %oname. %package -n python3-module-%oname Summary: Python/numpy interface to netCDF library (versions 3 and 4) Group: Development/Python3 %py3_provides %oname %description -n python3-module-%oname netCDF version 4 has many features not found in earlier versions of the library and is implemented on top of HDF5. This module can read and write files in both the new netCDF 4 and the old netCDF 3 format, and can create files that are readable by HDF5 clients. The API modelled after Scientific.IO.NetCDF, and should be familiar to users of that module. Most new features of netCDF 4 are implemented, such as multiple unlimited dimensions, groups and zlib data compression. All the new numeric data types (such as 64 bit and unsigned integer types) are implemented. Compound and variable length (vlen) data types are supported, but the enum and opaque data types are not. Mixtures of compound and vlen data types (compound types containing vlens, and vlens containing compound types) are not supported. %prep %setup %patch1 -p1 install -m644 %SOURCE1 ./ rm -f *.c netCDF4.c netcdftime/.c %ifarch x86_64 sed -i "s|'lib'|'lib64'|g" setup.py %endif %if_with python3 cp -fR . ../python3 %endif %build %add_optflags -fno-strict-aliasing %python_build_debug %if_with python3 pushd ../python3 %python3_build_debug popd %endif %install %if_with python3 pushd ../python3 %python3_install popd pushd %buildroot%_bindir for i in $(ls); do mv $i $i.py3 done popd %endif %python_install export PYTHONPATH=%buildroot%python_sitelibdir chmod +x create_docs.sh cd docs ../create_docs.sh %check python setup.py test pushd test export PYTHONPATH=%buildroot%python_sitelibdir python run_all.py popd %if_with python3 pushd ../python3 python3 setup.py test pushd test export PYTHONPATH=%buildroot%python3_sitelibdir python3 run_all.py popd popd %endif %files %doc Changelog *.md %_bindir/* %if_with python3 %exclude %_bindir/*.py3 %endif %python_sitelibdir/* %files docs %doc docs/html examples %if_with python3 %files -n python3-module-%oname %doc Changelog *.md %_bindir/*.py3 %python3_sitelibdir/* %endif %changelog * Thu Apr 11 2019 Grigory Ustinov <grenka@altlinux.org> 1.2.9-alt3 - Rebuild for python3.7. * Thu Mar 22 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 1.2.9-alt2.1.1 - (NMU) Rebuilt with python-3.6.4. * Fri Feb 02 2018 Stanislav Levin <slev@altlinux.org> 1.2.9-alt2.1 - (NMU) Fix Requires and BuildRequires to python-setuptools * Mon Aug 28 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 1.2.9-alt2 - Rebuilt with new libnetcdf11. * Thu Aug 24 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 1.2.9-alt1 - Updated to upstream version 1.2.9. * Thu Mar 17 2016 Ivan Zakharyaschev <imz@altlinux.org> 1.1.9-alt1.git20150728.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.1.9-alt1.git20150728.1 - NMU: Use buildreq for BR. * Sun Aug 02 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.1.9-alt1.git20150728 - New snapshot * Mon Jul 27 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.1.9-alt1.git20150722 - Version 1.1.9 * Thu Apr 30 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.1.8-alt1.git20150416 - Version 1.1.8 * Wed Mar 04 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.1.5-alt1.git20150303 - Version 1.1.5 * Fri Dec 19 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.1.3-alt1.git20141218 - Version 1.1.3 * Wed Nov 19 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.1.2-alt1.git20141116 - Initial build for Sisyphus |