]>
Commit | Line | Data |
---|---|---|
69cca394 | 1 | %define module pullparser |
e0d5fc77 AG |
2 | |
3 | Summary: Python package providing a module for parsing HTML | |
39d5c41e | 4 | Summary(pl.UTF-8): Pakiet zawierający moduł analizatora HTML |
e0d5fc77 | 5 | Name: python-%{module} |
490f708d | 6 | Version: 0.0.5b |
a1e109c6 | 7 | Release: 3 |
631ccd50 | 8 | License: Artistic |
e0d5fc77 AG |
9 | Group: Development/Languages/Python |
10 | Source0: http://wwwsearch.sourceforge.net/%{module}/src/%{module}-%{version}.tar.gz | |
490f708d | 11 | # Source0-md5: e4e238ead1d1e421cc5866c8e3f9153f |
e0d5fc77 | 12 | URL: http://wwwsearch.sourceforge.net/pullparser/ |
889a7507 | 13 | BuildRequires: python-modules |
14 | BuildRequires: rpm-pythonprov | |
6f13fa25 | 15 | Requires: python-modules >= 2.2 |
e0d5fc77 AG |
16 | BuildArch: noarch |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | A simple "pull API" for HTML parsing, after Perl's HTML::TokeParser. | |
21 | Many simple HTML parsing tasks are simpler this way than with the | |
22 | HTMLParser module. pullparser.PullParser is a subclass of | |
23 | HTMLParser.HTMLParser. | |
24 | ||
cbf34616 | 25 | %description -l pl.UTF-8 |
69cca394 | 26 | Prosty analizator HTML, inspirowany perlowym HTML::TokeParser. Wiele |
cbf34616 JR |
27 | prostych zadań związanych z przetwarzaniem HTML można nim zrobić |
28 | łatwiej niż za pomocą modułu HTMLParser. pullparser.PullParser jest | |
29 | podklasą HTMLParser.HTMLParser. | |
e0d5fc77 AG |
30 | |
31 | %prep | |
32 | %setup -q -n %{module}-%{version} | |
33 | ||
34 | %build | |
e5040e58 | 35 | %py_build |
e0d5fc77 AG |
36 | |
37 | %install | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
e5040e58 | 40 | %py_install |
e0d5fc77 | 41 | |
9338aba2 | 42 | rm $RPM_BUILD_ROOT%{py_sitescriptdir}/*.py |
e0d5fc77 AG |
43 | |
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
631ccd50 | 49 | %doc ChangeLog GeneralFAQ.html README.html |
e0d5fc77 | 50 | %{py_sitescriptdir}/*.py[co] |