Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37699862
en ru br
ALT Linux repositórios
S:0.4.11-alt1

Group :: Development/Python3
RPM: python3-module-html5-parser

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%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.10
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 at 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

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009