Package python-module-gmpy: 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 | %define oname gmpy %def_with python3 Name: python-module-%oname Version: 1.17 Release: alt1.1.1.1 Summary: General MultiPrecision arithmetic for Python License: LGPL Group: Development/Python Url: http://code.google.com/p/gmpy/ Packager: Eugeny A. Rostovtsev (REAL) <real at altlinux.org> Source: %oname-%version.tar BuildRequires(pre): rpm-build-python #BuildPreReq: python-devel libgmp-devel %if_with python3 BuildRequires(pre): rpm-build-python3 # 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 python3 python3-base BuildRequires: libgmp-devel python-devel python-modules-unittest python3-devel rpm-build-python3 #BuildRequires: python3-devel %endif %description A C-coded Python extension module that wraps the GMP library to provide to Python code fast multiprecision arithmetic (integer, rational, and float), random number generation, advanced number-theoretical functions, and more. %if_with python3 %package -n python3-module-%oname Summary: General MultiPrecision arithmetic for Python 3 Group: Development/Python3 %description -n python3-module-%oname A C-coded Python extension module that wraps the GMP library to provide to Python code fast multiprecision arithmetic (integer, rational, and float), random number generation, advanced number-theoretical functions, and more. %endif %package docs Summary: Documentation and tests for GMPY Group: Development/Documentation BuildArch: noarch %description docs A C-coded Python extension module that wraps the GMP library to provide to Python code fast multiprecision arithmetic (integer, rational, and float), random number generation, advanced number-theoretical functions, and more. This package contains documentation and tests for GMPY. %prep %setup %if_with python3 rm -rf ../python3 cp -a . ../python3 %endif %build %python_build_debug %if_with python3 pushd ../python3 %python3_build_debug popd %endif %install %python_install %if_with python3 pushd ../python3 %python3_install popd %endif %check export PYTHONPATH=%buildroot%python_sitelibdir python test/gmpy_test.py rm -f test/*.pyc %files %python_sitelibdir/* %files docs %doc doc test %if_with python3 %files -n python3-module-%oname %python3_sitelibdir/* %endif %changelog * Thu Mar 22 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 1.17-alt1.1.1.1 - (NMU) Rebuilt with python-3.6.4. * Thu Mar 17 2016 Ivan Zakharyaschev <imz@altlinux.org> 1.17-alt1.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.17-alt1.1 - NMU: Use buildreq for BR. * Tue Sep 17 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.17-alt1 - Version 1.17 * Tue Mar 26 2013 Aleksey Avdeev <solo@altlinux.ru> 1.16-alt1.1 - Rebuild with Python-3.3 * Thu Feb 14 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.16-alt1 - Version 1.16 * Wed Aug 29 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.15-alt3 - Rebuilt with gmp 5.0.5 * Sat May 12 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.15-alt2 - Added module for Python 3 * Thu Apr 12 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 1.15-alt1.1 - Rebuild to remove redundant libpython2.7 dependency * Fri Jan 27 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.15-alt1 - Version 1.15 * Mon Oct 24 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 1.14-alt1.1 - Rebuild with Python-2.7 * Wed Apr 06 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.14-alt1 - Initial build for Sisyphus |