Пакет python3-module-html5-parser: Specfile
%define oname html5-parser # obsoleted tests %def_without check # packaged gumbo is obsoleted %def_without packaged_gumbo Name: python3-module-html5-parser Version: 0.4.12 Release: alt1 Summary: Fast C based HTML 5 parsing for python Url: https://github.com/kovidgoyal/html5-parser License: ASL 2.0 Group: Development/Python3 Packager: Vitaly Lipatov <lav@altlinux.ru> # Source-url: %__pypi_url %oname Source: %name-%version.tar BuildRequires(pre): rpm-build-intro >= 2.2.4 BuildRequires(pre): rpm-build-python3 BuildRequires: python3-devel python3-module-setuptools %if_with packaged_gumbo BuildRequires: libgumbo-devel %endif BuildRequires: libxml2-devel # generated by epm --restore --dry-run from html5-parser/setup.py install_requires %py3_use chardet %py3_use lxml >= 3.8.0 # detectable %py3_use beautifulsoup4 %description A fast, standards compliant, C based, HTML 5 parser for python. Over thirty times as fast as pure python based parsers, such as html5lib. Based on Google gumbo-parser C library. %prep %setup %if_with packaged_gumbo rm -rfv gumbo sed -i "s|src gumbo|src|" build.py sed -i "s|'gumbo/gumbo.h',||" build.py %endif %build %python3_build_debug %install %python3_install %python3_prune %check %python3_test %files %doc README.rst %python3_sitelibdir/* %changelog * Sun Feb 18 2024 Vitaly Lipatov <lav@altlinux.ru> 0.4.12-alt1 - new version 0.4.12 (with rpmrb script) * Sun Apr 23 2023 Vitaly Lipatov <lav@altlinux.ru> 0.4.11-alt1 - new version 0.4.11 (with rpmrb script) * Mon Apr 04 2022 Vitaly Lipatov <lav@altlinux.ru> 0.4.10-alt1 - new version 0.4.10 (with rpmrb script) * Sun Nov 08 2020 Vitaly Lipatov <lav@altlinux.ru> 0.4.9-alt1 - new version 0.4.9 (with rpmrb script) - enable tests, update BR * Sun Nov 08 2020 Vitaly Lipatov <lav@altlinux.ru> 0.4.7-alt2 - build python3 package separately, cleanup spec * Sun Jun 30 2019 Vitaly Lipatov <lav@altlinux.ru> 0.4.7-alt1 - new version 0.4.7 (with rpmrb script) * Sun Jun 09 2019 Vitaly Lipatov <lav@altlinux.ru> 0.4.6-alt1 - new version 0.4.6 (with rpmrb script) * Sat Jun 30 2018 Vitaly Lipatov <lav@altlinux.ru> 0.4.5-alt1 - new version 0.4.5 (with rpmrb script) - cleanup spec (use python3_dir* macros from rpm-build-intro) * Thu Mar 22 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 0.4.4-alt1.1 - (NMU) Rebuilt with python-3.6.4. * Sun Oct 01 2017 Vitaly Lipatov <lav@altlinux.ru> 0.4.4-alt1 - initial build for ALT Sisyphus |