Пакет python-module-BeautifulSoup: 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 | # test new macroses %define python_build CFLAGS="%optflags" python setup.py build %define python_install python setup.py install --root %buildroot --optimize=2 %def_with python3 %define oname BeautifulSoup Name: python-module-%oname Version: 3.2.1 Release: alt2.1.1.1 Summary: HTML/XML parser for quick-turnaround applications like screen-scraping License: PSF Group: Development/Python Url: http://www.crummy.com/software/BeautifulSoup/ BuildArch: noarch %setup_python_module %oname Source: %oname-%version.tar.bz2 # Automatically added by buildreq on Sat May 26 2007 BuildRequires: python-devel python-modules-compiler python-modules-encodings %if_with python3 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-devel python-tools-2to3 python3-module-sgmllib %endif %description Beautiful Soup parses a (possibly invalid) XML or HTML document into a tree representation. It provides methods and Pythonic idioms that make it easy to navigate, search, and modify the tree. %if_with python3 %package -n python3-module-%oname Summary: HTML/XML parser for quick-turnaround applications like screen-scraping (Python 3) Group: Development/Python3 %description -n python3-module-%oname Beautiful Soup parses a (possibly invalid) XML or HTML document into a tree representation. It provides methods and Pythonic idioms that make it easy to navigate, search, and modify the tree. %endif %prep %setup -n %oname-%version %if_with python3 rm -rf ../python3 cp -a . ../python3 %endif %build export LC_ALL=en_US.UTF-8 %python_build %if_with python3 pushd ../python3 for i in *.py; do 2to3 -w $i done %python3_build popd %endif %install export LC_ALL=en_US.UTF-8 %python_install %if_with python3 pushd ../python3 %python3_install popd %endif %files %python_sitelibdir/* %if_with python3 %files -n python3-module-%oname %python3_sitelibdir/* %endif %changelog * Mon Apr 11 2016 Ivan Zakharyaschev <imz@altlinux.org> 3.2.1-alt2.1.1.1 - (NMU) rebuild with rpm-build-python3-0.1.10 (for new-style python3(*) reqs) and with python3-3.5 (for byte-compilation). * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 3.2.1-alt2.1.1 - (NMU) rebuild with rpm-build-python3-0.1.9 (for common python3/site-packages/ and auto python3.3-ABI dep when needed) * Fri Mar 22 2013 Aleksey Avdeev <solo@altlinux.ru> 3.2.1-alt2.1 - Rebuild with Python-3.3 * Tue Apr 10 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.2.1-alt2 - Added module for Python 3 * Mon Apr 09 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.2.1-alt1 - Version 3.2.1 * Thu Oct 20 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 3.0.8.1-alt1.1 - Rebuild with Python-2.7 * Thu Jul 29 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.0.8.1-alt1 - Version 3.0.8.1 * Wed Nov 11 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 3.0.6-alt1.1 - Rebuilt with python 2.6 * Mon Jun 09 2008 Vitaly Lipatov <lav@altlinux.ru> 3.0.6-alt1 - new version 3.0.6 (with rpmrb script) - fix bug #14975 * Sun Jul 22 2007 Vitaly Lipatov <lav@altlinux.ru> 3.0.4-alt1 - change buildarch to noarch * Sat May 26 2007 Vitaly Lipatov <lav@altlinux.ru> 3.0.4-alt0.1 - initial build for ALT Linux Sisyphus |