Пакет python-module-elementtree: 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 | %define rver 20050316 %def_with python3 %define version 1.2.6 %define release alt1.%rver %setup_python_module elementtree Summary: ElementTree - a light-weight XML object model for Python. Name: %packagename Version: %version Release: alt1.20050316.1.1.1.2 URL: http://effbot.org/zone/element-index.htm Source: %modulename-%version-%rver.tar.gz Patch1: %modulename-TidyHTMLTreeBuilder-fix.patch Patch2: elementtree-1.2.6-alt-python3.patch Copyright: Python (MIT style) Group: Development/Python BuildArch: noarch Packager: Konstantin Klimchev <koka@altlinux.ru> %if_with python3 BuildRequires(pre): rpm-build-python3 BuildPreReq: python3-devel BuildPreReq: python-tools-2to3 %endif %description The Element type is a flexible container object, designed to store hierarchical data structures in memory. Element structures can be converted to and from XML. %package -n python3-module-%modulename Summary: ElementTree - a light-weight XML object model for Python Group: Development/Python3 %description -n python3-module-%modulename The Element type is a flexible container object, designed to store hierarchical data structures in memory. Element structures can be converted to and from XML. %prep %setup -q -n %modulename-%version-%rver %patch1 -p1 %patch2 -p2 %if_with python3 cp -fR . ../python3 find ../python3 -type f -name '*.py' -exec 2to3 -w -n '{}' + %endif %build %python_build %if_with python3 pushd ../python3 %python3_build popd %endif %install %__python setup.py install \ --root=%buildroot \ --optimize=2 \ --record=INSTALLED_FILES %if_with python3 pushd ../python3 %python3_install popd %endif %files -f INSTALLED_FILES %defattr(-,root,root) %doc docs samples CHANGES README benchmark.py selftest.py %if_with python3 %files -n python3-module-%modulename %doc docs samples CHANGES README benchmark.py selftest.py %python3_sitelibdir/* %endif %changelog * Wed May 16 2018 Andrey Bychkov <mrdrew@altlinux.org> 1.2.6-alt1.20050316.1.1.1.2 - (NMU) rebuild with python3.6 * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 1.2.6-alt1.20050316.1.1.1.1 - (NMU) rebuild with rpm-build-python3-0.1.9 (for common python3/site-packages/ and auto python3.3-ABI dep when needed) * Tue Jul 29 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.2.6-alt1.20050316.1.1.1 - Added module for Python 3 * Wed Oct 26 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 1.2.6-alt0.20050316.1.1.1.1 - Rebuild with Python-2.7 * Fri Nov 13 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.2.6-alt0.20050316.1.1.1 - Rebuilt with python 2.6 * Thu Jan 24 2008 Grigory Batalov <bga@altlinux.ru> 1.2.6-alt0.20050316.1.1 - Rebuilt with python-2.5. * Fri May 6 2005 Konstantin Klimchev <koka@altlinux.ru> 1.2.6-alt0.20050316.1 - new 1.2.6-20050316 - python2.4 * Wed Dec 22 2004 Konstantin Klimchev <koka@altlinux.ru> 1.2.3-alt0.20041205.1 - initial build for Sisyphus |