Пакет python-module-scipy: 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 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 | # Note: mkl is a Intel Compiler thing BuildRequires(pre): rpm-build-python %define python_noarch %_libexecdir/python%_python_version/site-packages %define oname scipy %define svnver 6490 Name: python-module-%oname Version: 0.10.0 Release: alt1.git20110402.3 Summary: SciPy is the library of scientific codes License: BSD Group: Development/Python Url: http://www.scipy.org/ Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org> %setup_python_module %oname #add_python_req_skip swig2_ext symeig vtk # git://github.com/scipy/scipy.git Source: %oname-%version.tar Source1: site.cfg BuildPreReq: libsuitesparse-devel swig /proc rpm-macros-make BuildPreReq: python-module-sphinx-devel BuildPreReq: python-module-Pygments BuildPreReq: python-module-matplotlib BuildPreReq: %py_dependencies scikits.statsmodels.docs.sphinxext BuildPreReq: python-module-matplotlib-sphinxext BuildPreReq: texlive-latex-extra texlive-latex-recommended BuildRequires: gcc-c++ gcc-fortran liblapack-goto-devel python-module-Pyrex BuildRequires: python-module-ctypes libnumpy-devel python-modules-curses BuildRequires: libsuitesparse-devel %description SciPy is the library of scientific codes built on top of NumPy. %package devel Summary: Development files of SciPy Group: Development/Python Requires: %name = %version-%release Requires: python-devel libnumpy-devel %description devel SciPy is the library of scientific codes built on top of NumPy. This package contains development files of SciPy. %package tests Summary: Tests and examples for SciPy Group: Development/Python Requires: %name = %version-%release %add_python_req_skip ext_tools inline_tools swig2_ext symeig %description tests SciPy is the library of scientific codes built on top of NumPy. This package contains tests and examples for SciPy. %package pickles Summary: Pickles for SciPy Group: Development/Python %description pickles SciPy is the library of scientific codes built on top of NumPy. This package contains pickles for SciPy. %package doc-html Summary: Documentation for SciPy in HTML Group: Development/Documentation %description doc-html SciPy is the library of scientific codes built on top of NumPy. This package contains development documentation for SciPy in HTML. %package doc-pdf Summary: Documentation for SciPy in PDF Group: Development/Documentation %description doc-pdf SciPy is the library of scientific codes built on top of NumPy. This package contains development documentation for SciPy in PDF. %package -n python-module-weave Summary: Weave provides tools for including C/C++ code within Python Group: Development/Python BuildArch: noarch %description -n python-module-weave Weave provides tools for including C/C++ code within Python. %prep %setup install -p -m644 %SOURCE1 . sed -i 's|@LIBDIR@|%_libdir|g' site.cfg doc/Makefile sed -i 's|@PYVER@|%_python_version|g' doc/Makefile cat <<EOF >%oname/__svn_version__.py version='%version' svn_version='%svnver' EOF # Sphinx sed -i "s|@TOP@|$PWD|" \ doc/source/conf.py sed -i 's|@SPHINXREL@|%sphinx_rel|' \ doc/source/conf.py %prepare_sphinx . cp conf.py objects.inv doc/ mkdir -p ~/.matplotlib cp %python_sitelibdir/matplotlib/mpl-data/matplotlibrc \ ~/.matplotlib/ sed -i 's|^\(backend\).*|\1 : Agg|' ~/.matplotlib/matplotlibrc %build %add_optflags -I%_includedir/suitesparse -fno-strict-aliasing %optflags_shared %python_build_debug build_ext build_py build_clib \ config_fc --fcompiler=gnu95 # weave pushd scipy/weave %python_build_debug build_ext build_py build_clib build_scripts \ config_fc --fcompiler=gnu95 popd %install %python_install install_lib install_headers \ install_data config_fc pushd scipy/weave %python_install install_lib install_headers \ install_data config_fc popd install -m644 %oname/__svn_version__.py \ %buildroot%python_sitelibdir/%oname # headers pushd %oname for i in $(find ./ -name '*\.h' |grep -v weave); do dir=$(echo $i|sed 's|\(.*\)/.*|\1|') install -d %buildroot%_includedir/%oname/$dir install -p -m644 $i \ %buildroot%_includedir/%oname/$dir done popd pushd %buildroot%python_noarch/weave for i in $(find ./ -name '\.h' |egrep weave); do dir=$(echo $i|sed 's|\(.*\)/.*|\1|') install -d %buildroot%_includedir/weave/$dir ln -s %python_noarch/weave/$i \ %buildroot%_includedir/weave/$dir done popd install -p -m644 $(find ./ -name fortranobject.h) \ %buildroot%_includedir/%oname # docs export PYTHONPATH=%buildroot%python_sitelibdir %add_optflags -I%buildroot%_includedir -I%_includedir/suitesparse PATH=$PATH:%python_sitelibdir/scikits/statsmodels/docs/sphinxext export PATH=$PATH:%python_sitelibdir/scikits/statsmodels/docs pushd doc %make_ext default popd install -d %buildroot%_docdir/%name/pdf/tutorial cp -fR doc/build/html %buildroot%_docdir/%name/ cp -u $(find doc -name '*.pdf' |egrep -v plot_directive) \ %buildroot%_docdir/%name/pdf/ #install -p -m644 doc/build/plot_directive/tutorial/*.pdf \ # %buildroot%_docdir/%name/pdf/tutorial install -p -m644 LICENSE.txt README.txt THANKS.txt TOCHANGE.txt LATEST.txt \ %buildroot%_docdir/%name/ # pickles cp -fR doc/build/pickle %buildroot%python_sitelibdir/%oname/ # tests for i in $(find ./ -name tests -type d) \ $(find ./ -name examples -type d) do touch $i/__init__.py done %find_lang %name %check pushd %buildroot%python_sitelibdir python -c "import scipy ; scipy.test()" popd rm -f %buildroot%python_sitelibdir/*.so \ %buildroot%python_sitelibdir/*.cpp %files -f %name.lang %python_sitelibdir/* %exclude %python_sitelibdir/%oname/*/examples %exclude %python_sitelibdir/%oname/*/tests %exclude %python_sitelibdir/%oname/*/*/tests %exclude %python_sitelibdir/%oname/*/*/*/tests %exclude %python_sitelibdir/%oname/*/*/*/*/tests %exclude %python_sitelibdir/%oname/pickle %exclude %python_sitelibdir/%oname/weave/blitz %exclude %python_noarch/weave %ifnarch x86_64 %exclude %python_noarch/weave-*.egg-info %endif %files tests %python_sitelibdir/%oname/*/examples %python_sitelibdir/%oname/*/tests %python_sitelibdir/%oname/*/*/tests %python_sitelibdir/%oname/*/*/*/tests %python_sitelibdir/%oname/*/*/*/*/tests %files devel %_includedir/* %python_sitelibdir/%oname/weave/blitz %files doc-html %dir %_docdir/%name %_docdir/%name/html %files doc-pdf %dir %_docdir/%name %_docdir/%name/pdf %files pickles %python_sitelibdir/%oname/pickle %_python_set_noarch %files -n python-module-weave %doc scipy/weave/LICENSE.txt scipy/weave/README.txt %python_sitelibdir/weave* %exclude %python_sitelibdir/weave/examples %exclude %python_sitelibdir/weave/tests %changelog * Sun Apr 10 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.10.0-alt1.git20110402.3 - Built with docs * Fri Apr 08 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.10.0-alt1.git20110402.2 - Rebuilt with GotoBLAS2 1.13-alt3 - Bootstrap (without docs) * Thu Apr 07 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.10.0-alt1.git20110402.1 - Fixed underlinking of modules * Thu Apr 07 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.10.0-alt1.git20110402 - Version 0.10.0 - Rebuilt with lapack-goto instead of lapack * Tue Apr 05 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.9.0-alt1.svn20100607.6 - Rebuilt with ATLAS 3.9.35 * Mon Mar 28 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.9.0-alt1.svn20100607.5 - Rebuilt with lapack 3.3.0-alt4 * Tue Mar 08 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.9.0-alt1.svn20100607.4 - Added -g into compiler flags - Moved all development files into devel package * Fri Feb 25 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.9.0-alt1.svn20100607.3 - Rebuilt for debuginfo * Tue Oct 26 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.9.0-alt1.svn20100607.2 - Rebuilt for soname set-versions * Wed Oct 13 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.9.0-alt1.svn20100607.1 - Fixed underlinking * Wed Jun 09 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.9.0-alt1.svn20100607 - Version 0.9.0 * Fri Apr 02 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.8.0-alt2.svn20100202.2 - Rebuilt with new NumPy * Tue Mar 02 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.8.0-alt2.svn20100202.1 - Rebuilt with updated macro %%prepare_sphinx * Thu Feb 04 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.8.0-alt2.svn20100202 - Rebuilt with reformed NumPy - Added + documentation (HTML & PDF) + pickles, devel and tests packages, plus weave in root of %%python_sitelibdir + %%check section * Fri Jan 22 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.8.0-alt2.svn20100121 - New snapshot - Rebuild with new NumPy - Extracted examples and tests into separate package - Added docs packages * Mon Jan 11 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.8.0-alt2.svn20100109 - New snapshot - Fixed error of find numpy library (ALT #22707) * Thu Dec 31 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.8.0-alt2.svn20091231 - New snapshot - Rebuilt without python-module-Numeric * Mon Nov 16 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.8.0-alt2.svn20090913.1 - Rebuilt with python 2.6 * Sun Sep 13 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.8.0-alt2.svn20090913 - New snapshot * Fri Sep 04 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.8.0-alt2.svn20090902.1 - Disabled strict aliasing rules * Wed Sep 02 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.8.0-alt2.svn20090902 - Rebuilt with shared libraries of SuiteSparse * Thu Aug 27 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.8.0-alt2.svn20090827 - New snapshot * Sun Aug 02 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.8.0-alt2.svn20090730.2 - Fixed svn version for special_version.py * Fri Jul 31 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.8.0-alt2.svn20090730.1 - Version 0.8.0 * Thu Dec 04 2008 Vitaly Lipatov <lav@altlinux.ru> 0.7.0-alt1 - new version 0.7.0b1 - update buildreqs, cleanup spec * Sun Jul 06 2008 Vitaly Lipatov <lav@altlinux.ru> 0.6.0-alt1 - initial build for ALT Linux Sisyphus |