]>
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 |
11fd3cdb | 7 | Release: 4 |
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/ |
7f2bad2e | 13 | BuildRequires: rpmbuild(macros) >= 1.710 |
889a7507 | 14 | BuildRequires: python-modules |
15 | BuildRequires: rpm-pythonprov | |
6f13fa25 | 16 | Requires: python-modules >= 2.2 |
e0d5fc77 AG |
17 | BuildArch: noarch |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | A simple "pull API" for HTML parsing, after Perl's HTML::TokeParser. | |
22 | Many simple HTML parsing tasks are simpler this way than with the | |
23 | HTMLParser module. pullparser.PullParser is a subclass of | |
24 | HTMLParser.HTMLParser. | |
25 | ||
cbf34616 | 26 | %description -l pl.UTF-8 |
69cca394 | 27 | Prosty analizator HTML, inspirowany perlowym HTML::TokeParser. Wiele |
cbf34616 JR |
28 | prostych zadań związanych z przetwarzaniem HTML można nim zrobić |
29 | łatwiej niż za pomocą modułu HTMLParser. pullparser.PullParser jest | |
30 | podklasą HTMLParser.HTMLParser. | |
e0d5fc77 AG |
31 | |
32 | %prep | |
33 | %setup -q -n %{module}-%{version} | |
34 | ||
35 | %build | |
e5040e58 | 36 | %py_build |
e0d5fc77 AG |
37 | |
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
e5040e58 | 41 | %py_install |
e0d5fc77 | 42 | |
9338aba2 | 43 | rm $RPM_BUILD_ROOT%{py_sitescriptdir}/*.py |
e0d5fc77 AG |
44 | |
45 | %clean | |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
631ccd50 | 50 | %doc ChangeLog GeneralFAQ.html README.html |
e0d5fc77 | 51 | %{py_sitescriptdir}/*.py[co] |