Пакет 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 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 | # Note: mkl is a Intel Compiler thing %def_disable snapshot BuildRequires(pre): rpm-build-python %define python_noarch %python_sitelibdir_noarch %define modname scipy %define ver_major 0.19 %def_enable docs %def_with python3 Name: python-module-%modname Version: %ver_major.1 Release: alt0.M80P.1 Summary: SciPy is the library of scientific codes License: BSD Group: Development/Python Url: http://www.scipy.org/ %setup_python_module %modname Requires: %python_noarch #add_python_req_skip swig2_ext symeig vtk %add_python_req_skip distutils %if_disabled snapshot Source: https://github.com/%modname/%modname/releases/download/v%version/%modname-%version.tar.xz %else #VCS git://github.com/scipy/scipy.git Source: %modname-%version.tar %endif Source1: site.cfg #BuildPreReq: python-module-sympy python-module-scipy git #BuildPreReq: python-module-numpy python-module-matplotlib-sphinxext #BuildPreReq: python-module-numdifftools #BuildPreReq: libsuitesparse-devel swig /proc rpm-macros-make #BuildPreReq: python-module-sphinx-devel #BuildPreReq: python-module-Pygments #BuildPreReq: python-module-matplotlib #BuildPreReq: boost-python-devel %if_enabled docs #BuildPreReq: python-module-matplotlib-sphinxext python-module-numpydoc #BuildPreReq: %py_dependencies scikits.statsmodels.docs.sphinxext %endif BuildRequires(pre): rpm-macros-make BuildRequires(pre): rpm-macros-sphinx BuildPreReq: gcc-c++ gcc-fortran git-core liblapack-devel libnumpy-devel libnumpy-py3-devel python-module-Cython python-module-Pyrex python-module-alabaster python-module-html5lib python-module-ipyparallel python-module-matplotlib-sphinxext python-module-numdifftools python-module-numpy-testing python-module-objects.inv python-module-sphinx-pickles python3-module-Cython python3-module-html5lib python3-module-jinja2-tests python3-module-numpy-testing rpm-build-python3 time vixie-cron #BuildRequires: gcc-c++ gcc-fortran liblapack-devel python-module-Pyrex #BuildRequires: python-module-ctypes libnumpy-devel python-modules-curses #BuildRequires: libsuitesparse-devel python-module-Cython %if_with python3 BuildRequires(pre): rpm-build-python3 #BuildRequires: python3-devel python3-module-distribute #BuildPreReq: python3-module-Pygments libnumpy-py3-devel #BuildPreReq: python-tools-2to3 python3-module-Cython #BuildPreReq: boost-python3-devel %endif %description SciPy is the library of scientific codes built on top of NumPy. %if_with python3 %package -n python3-module-%modname Summary: SciPy is the library of scientific codes (Python 3) Group: Development/Python3 Requires: %python3_sitelibdir_noarch %add_python3_req_skip _min_spanning_tree _shortest_path _tools %add_python3_req_skip _traversal sympy %add_python3_req_skip distutils %description -n python3-module-%modname SciPy is the library of scientific codes built on top of NumPy. %package -n python3-module-%modname-devel Summary: Development files of SciPy (Python 3) Group: Development/Python3 Requires: python3-module-%modname = %version-%release Requires: python3-devel libnumpy-py3-devel %description -n python3-module-%modname-devel SciPy is the library of scientific codes built on top of NumPy. This package contains development files of SciPy. %package -n python3-module-%modname-tests Summary: Tests and examples for SciPy (Python 3) Group: Development/Python3 Requires: python3-module-%modname = %version-%release %add_python3_req_skip ext_tools inline_tools swig2_ext symeig %add_python3_req_skip md5 vtk wxPython %add_python3_req_skip pylab %description -n python3-module-%modname-tests SciPy is the library of scientific codes built on top of NumPy. This package contains tests and examples for SciPy. %endif %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 vtk weave %description tests SciPy is the library of scientific codes built on top of NumPy. This package contains tests and examples for SciPy. %if_enabled docs %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 BuildArch: noarch %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. %endif %prep %setup -n %modname-%version install -p -m644 %SOURCE1 . sed -i 's|@LIBDIR@|%_libdir|g' site.cfg doc/Makefile sed -i 's|@PYVER@|%_python_version|g' doc/Makefile %if_with python3 rm -rf ../python3 cp -a . ../python3 sed -i 's|@PYSUFF@|3|' ../python3/site.cfg %endif sed -i 's|@PYSUFF@||' site.cfg # Sphinx %if_enabled docs 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/ %endif 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 %if_with python3 pushd ../python3 %python3_build_debug build_ext build_py build_clib \ config_fc --fcompiler=gnu95 popd %endif %install %python_install install_lib install_headers \ install_data config_fc # headers pushd %modname for i in $(find ./ -name '*.h'); do dir=$(echo $i|sed 's|\(.*\)/.*|\1|') install -d %buildroot%_includedir/%modname/$dir install -p -m644 $i \ %buildroot%_includedir/%modname/$dir done popd install -p -m644 $(find ./ -name fortranobject.h) \ %buildroot%_includedir/%modname %if_with python3 pushd ../python3 %python3_install install_lib install_headers \ install_data config_fc find %buildroot%python3_sitelibdir -type f -exec \ sed -i 's|#! %_bindir/env python|#!%_bindir/python3|' -- '{}' + ||: find %buildroot%python3_sitelibdir -type f -exec \ sed -i 's|#!%_bindir/env python|#!%_bindir/python3|' -- '{}' + ||: # headers pushd %modname for i in $(find ./ -name '*.h'); do dir=$(echo $i|sed 's|\(.*\)/.*|\1|') install -d %buildroot%_includedir/%modname-py3/$dir install -p -m644 $i \ %buildroot%_includedir/%modname-py3/$dir done popd install -p -m644 $(find ./ -name fortranobject.h) \ %buildroot%_includedir/%modname-py3 popd pushd %buildroot%python3_sitelibdir/%modname/sparse/csgraph for i in $(ls *.so); do ln -s %python3_sitelibdir/%modname/sparse/csgraph/$i \ %buildroot%python3_sitelibdir/ done popd %endif # docs %if_enabled 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 html pickle popd install -d %buildroot%_docdir/%name cp -fR doc/build/html %buildroot%_docdir/%name/ install -p -m644 LICENSE.txt doc/README.txt THANKS.txt HACKING.rst.txt \ %buildroot%_docdir/%name/ # pickles cp -fR doc/build/pickle %buildroot%python_sitelibdir/%modname/ %endif # tests for i in $(find ./ -name tests -type d) \ $(find ./ -name examples -type d) do touch $i/__init__.py done rm -f %buildroot%python_sitelibdir/scipy/pickle/generated/scipy-stats-rv_discrete-1.py %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/%modname/*/tests %exclude %python_sitelibdir/%modname/*/*/tests %exclude %python_sitelibdir/%modname/*/*/*/tests %exclude %python_sitelibdir/%modname/*/*/*/*/tests %if_enabled docs %exclude %python_sitelibdir/%modname/pickle %endif %files tests %python_sitelibdir/%modname/*/tests %python_sitelibdir/%modname/*/*/tests %python_sitelibdir/%modname/*/*/*/tests %python_sitelibdir/%modname/*/*/*/*/tests %files devel %_includedir/* %if_with python3 %exclude %_includedir/%modname-py3 %endif %if_with python3 %files -n python3-module-%modname -f %name.lang %python3_sitelibdir/* #exclude %python3_sitelibdir/%modname/*/examples %exclude %python3_sitelibdir/%modname/*/tests %exclude %python3_sitelibdir/%modname/*/*/tests %exclude %python3_sitelibdir/%modname/*/*/*/tests %exclude %python3_sitelibdir/%modname/*/*/*/*/tests %files -n python3-module-%modname-tests #python3_sitelibdir/%modname/*/examples %python3_sitelibdir/%modname/*/tests %python3_sitelibdir/%modname/*/*/tests %python3_sitelibdir/%modname/*/*/*/tests %python3_sitelibdir/%modname/*/*/*/*/tests %files -n python3-module-%modname-devel %_includedir/%modname-py3 %endif %if_enabled docs %files doc-html #dir %_docdir/%name #_docdir/%name/html %_docdir/%name #files doc-pdf #dir %_docdir/%name #_docdir/%name/pdf %files pickles %python_sitelibdir/%modname/pickle %endif %changelog * Fri Aug 25 2017 Yuri N. Sedunov <aris@altlinux.org> 0.19.1-alt0.M80P.1 - backport to p8 * Sat Jul 08 2017 Yuri N. Sedunov <aris@altlinux.org> 0.19.1-alt1 - 0.19.1 * Thu Jun 29 2017 Yuri N. Sedunov <aris@altlinux.org> 0.19.0-alt0.M80P.1 - backport to p8 * Mon Jun 19 2017 Yuri N. Sedunov <aris@altlinux.org> 0.19.0-alt1 - 0.19.0 * Fri Mar 25 2016 Ivan Zakharyaschev <imz@altlinux.org> 0.17.0-alt1.git20150829.2.1 - (NMU) rebuild with python3-3.5 & rpm-build-python3-0.1.10 (for ABI dependence and new python3(*) reqs) * Thu Mar 24 2016 Denis Medvedev <nbr@altlinux.org> 0.17.0-alt1.git20150829.2 - NMU: arranged dependencies. * Thu Jan 28 2016 Mikhail Efremov <sem@altlinux.org> 0.17.0-alt1.git20150829.1 - NMU: Use buildreq for BR. * Sun Aug 30 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.17.0-alt1.git20150829 - Version 0.17.0 * Sun Apr 26 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.15.1-alt1.git20150425 - Version 0.15.1 * Fri Mar 06 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.15.0-alt2.git20141102 - Fixed build * Mon Nov 03 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.15.0-alt1.git20141102 - New snapshot * Wed May 07 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.15.0-alt1.git20140506 - Version 0.15.0 * Thu Jan 16 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.14.0-alt7.git20131020 - Rebuilt with new python-module-sphinx * Tue Jan 14 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.14.0-alt6.git20131020 - Disabled docs * Wed Nov 20 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.14.0-alt5.git20131020 - Don't require sympy for module for Python 3 * Wed Nov 06 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.14.0-alt4.git20131020 - Fixed build * Fri Oct 25 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.14.0-alt3.git20131020 - Fixed linking of qhull.so * Thu Oct 24 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.14.0-alt2.git20131020 - Fixed linking * Wed Oct 23 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.14.0-alt1.git20131020 - Version 0.14.0 * Wed Jun 19 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.13.0-alt2.git20130614 - Fixed build * Sat Jun 15 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.13.0-alt1.git20130614 - Version 0.13.0 * Sat Mar 30 2013 Aleksey Avdeev <solo@altlinux.ru> 0.12.0-alt2.git20121009.1 - Rebuild with Python-3.3 - Fix non-identical noarch packages (python{,3}-module-weave) * Wed Dec 19 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.12.0-alt2.git20121009 - Set doc-html as noarch * Fri Oct 12 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.12.0-alt1.git20121009 - Version 0.12.0 * Sun Aug 12 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.11.0-alt5.git20120508 - Built with OpenBLAS instead of GotoBLAS2 * Sun Jun 10 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.11.0-alt4.git20120508 - Fixed build * Fri May 25 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.11.0-alt3.git20120508 - Fixed scipy.sparse.csgraph importing in module for Python 3 * Sun May 13 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.11.0-alt2.git20120508 - New snapshot - Added module for Python 3 * Thu Apr 12 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 0.11.0-alt2.git20111011.1 - Rebuild to remove redundant libpython2.7 dependency * Sun Nov 27 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.11.0-alt2.git20111011 - Enabled docs (except pdf) * Wed Oct 26 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 0.11.0-alt1.git20111011.1 - Rebuild with Python-2.7 * Mon Oct 24 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.11.0-alt1.git20111011 - Version 0.11.0 * Mon Jul 18 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.10.0-alt1.git20110716 - New snapshot * 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 |