]> git.pld-linux.org Git - packages/python-pullparser.git/blob - python-pullparser.spec
automatic change: use py_build/py_install macros
[packages/python-pullparser.git] / python-pullparser.spec
1 %define         module  pullparser
2
3 Summary:        Python package providing a module for parsing HTML
4 Summary(pl.UTF-8):      Pakiet zawierający moduł analizatora HTML
5 Name:           python-%{module}
6 Version:        0.0.5b
7 Release:        3
8 License:        Artistic
9 Group:          Development/Languages/Python
10 Source0:        http://wwwsearch.sourceforge.net/%{module}/src/%{module}-%{version}.tar.gz
11 # Source0-md5:  e4e238ead1d1e421cc5866c8e3f9153f
12 URL:            http://wwwsearch.sourceforge.net/pullparser/
13 BuildRequires:  python-modules
14 BuildRequires:  rpm-pythonprov
15 Requires:       python-modules >= 2.2
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
25 %description -l pl.UTF-8
26 Prosty analizator HTML, inspirowany perlowym HTML::TokeParser. Wiele
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.
30
31 %prep
32 %setup -q -n %{module}-%{version}
33
34 %build
35 %py_build
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39
40 %py_install
41
42 rm $RPM_BUILD_ROOT%{py_sitescriptdir}/*.py
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc ChangeLog GeneralFAQ.html README.html
50 %{py_sitescriptdir}/*.py[co]
This page took 0.030126 seconds and 4 git commands to generate.