Пакет python-module-svg-path: 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 | %def_without python2 %def_with python3 %define modname svg.path Name: python-module-svg-path Version: 2.2 Release: alt3 Summary: SVG path objects and parser Group: Development/Python License: CC0 Url: http://pypi.python.org/pypi/svg.path Source: %name-%version.tar #Source-url: https://github.com/regebro/svg.path/archive/%version.tar.gz BuildArch: noarch %if_with python2 BuildRequires(pre): rpm-build-python BuildRequires: python-devel python-module-setuptools Requires: python-module-svg %endif %if_with python3 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-module-setuptools python3-devel %endif %description svg.path is a collection of objects that implement the different path commands in SVG, and a parser for SVG path definitions. %package tests Summary: Tests for %name Group: Development/Python Requires: python-module-svg-path = %version-%release %description tests Tests for python-module-svg-path. %package -n python3-module-svg-path Summary: SVG path objects and parser Group: Development/Python3 Requires: python3-module-svg %description -n python3-module-svg-path svg.path is a collection of objects that implement the different path commands in SVG, and a parser for SVG path definitions. %package -n python3-module-svg-path-tests Summary: Tests for %name Group: Development/Python3 Requires: python3-module-svg-path = %version-%release %description -n python3-module-svg-path-tests Tests for python3-module-svg-path. %prep %setup %if_with python3 rm -fR ../python3-module-%modname cp -fR . ../python3-module-%modname %endif %build %if_with python2 %python_build %endif %if_with python3 pushd ../python3-module-%modname %python3_build popd %endif %install %if_with python3 pushd ../python3-module-%modname %python3_install popd %endif %if_with python2 %python_install %endif %check %if_with python2 python setup.py test %endif %if_with python3 pushd ../python3-module-%modname python3 setup.py test popd %endif %if_with python2 %files %doc README.rst CHANGES.txt CONTRIBUTORS.txt %python_sitelibdir/svg/path %python_sitelibdir/%modname-%{version}* %exclude %python_sitelibdir/svg/path/tests %files tests %python_sitelibdir/svg/path/tests %endif %if_with python3 %files -n python3-module-svg-path %doc README.rst CHANGES.txt CONTRIBUTORS.txt %python3_sitelibdir/svg/path %python3_sitelibdir/%modname-%version-* %exclude %python3_sitelibdir/svg/path/tests %files -n python3-module-svg-path-tests %python3_sitelibdir/svg/path/tests %endif %changelog * Sat Jun 01 2019 Vitaly Lipatov <lav@altlinux.ru> 2.2-alt3 - NMU: build python3 only module * Fri Jul 28 2017 Anton Midyukov <antohami@altlinux.org> 2.2-alt2 - New subpackages tests * Wed Jul 26 2017 Anton Midyukov <antohami@altlinux.org> 2.2-alt1 - Initial build for ALT Sisyphus |