Package python-module-BeautifulSoup4: 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 | # test new macroses %define python_build CFLAGS="%optflags" python setup.py build %define python_install python setup.py install --root %buildroot --optimize=2 %define oname BeautifulSoup4 Name: python-module-%oname Version: 4.6.3 Release: alt0.M80P.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 Source: BeautifulSoup-%version.tar BuildRequires: python-module-pytest BuildRequires: python-module-setuptools BuildRequires: time BuildRequires(pre): rpm-build-python BuildPreReq: python3-module-pytest BuildPreReq: python3-module-setuptools %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. %package tests Summary: Tests for BeautifulSoup4 Group: Development/Python Requires: %name = %version-%release %description tests 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. This package contains tests for BeautifulSoup4. %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. %package -n python3-module-%oname-tests Summary: Tests for BeautifulSoup4 (Python 3) Group: Development/Python3 Requires: python3-module-%oname = %version-%release %description -n python3-module-%oname-tests 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. This package contains tests for BeautifulSoup4. %prep %setup -n BeautifulSoup-%version rm -rf ../python3 cp -a . ../python3 %build export LC_ALL=en_US.UTF-8 ls %python_build pushd ../python3 find -type f -name '*.py' -exec 2to3 -w '{}' + %python3_build popd %install export LC_ALL=en_US.UTF-8 %python_install pushd ../python3 %python3_install popd %check export LC_ALL=en_US.UTF-8 python -m unittest discover -s bs4 pushd ../python3 python3 -m unittest discover -s bs4 popd %files %doc *.txt %python_sitelibdir/* %exclude %python_sitelibdir/bs4/test* %files tests %python_sitelibdir/bs4/test* %doc *.txt %files -n python3-module-%oname %python3_sitelibdir/* %exclude %python3_sitelibdir/bs4/test* %exclude %python3_sitelibdir/bs4/*/test* %files -n python3-module-%oname-tests %python3_sitelibdir/bs4/test* %python3_sitelibdir/bs4/*/test* %changelog * Sat Sep 15 2018 Andrey Bychkov <mrdrew@altlinux.org> 4.6.3-alt0.M80P.1 - backport 4.6.3 from sisyphus * Fri Sep 14 2018 Andrey Bychkov <mrdrew@altlinux.org> 4.6.3-alt1 - update version to 4.6.3 from src * Mon Jul 02 2018 Ivan Zakharyaschev <imz@altlinux.org> 4.5.3-alt2 - (.spec) use standard Python build/install macros - (.spec) re-arrange Python/Python3 BuildRequires * Wed Jan 11 2017 Igor Vlasenko <viy@altlinux.ru> 4.5.3-alt1 - automated PyPI update * Sun Mar 13 2016 Ivan Zakharyaschev <imz@altlinux.org> 4.4.0-alt1.1.1 - (NMU) rebuild with rpm-build-python3-0.1.9 (for common python3/site-packages/ and auto python3.3-ABI dep when needed) * Wed Jan 27 2016 Mikhail Efremov <sem@altlinux.org> 4.4.0-alt1.1 - NMU: Use buildreq for BR. * Sun Aug 16 2015 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.4.0-alt1 - Version 4.4.0 * Thu Nov 28 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.3.2-alt1 - Version 4.3.2 * Mon Sep 16 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.3.1-alt1 - Version 4.3.1 * Mon Apr 15 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.1.3-alt2 - Use 'find... -exec...' instead of 'for ... $(find...' * Wed Mar 06 2013 Aleksey Avdeev <solo@altlinux.ru> 4.1.3-alt1.1 - Added module for Python 3 * Fri Sep 21 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.1.3-alt1 - Version 4.1.3 * Tue Apr 10 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.0.3-alt2 - Extracted tests into separate package * Mon Apr 09 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 4.0.3-alt1 - Version 4.0.3 * 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 |