]>
Commit | Line | Data |
---|---|---|
258edb59 JK |
1 | %define module mechanize |
2 | %define _beta b | |
3 | Summary: Library for automating interaction with web pages | |
131786f7 | 4 | Summary(pl.UTF-8): Biblioteka do automatycznej interakcji ze stronami WWW |
258edb59 JK |
5 | Name: python-%{module} |
6 | Version: 0.1.6 | |
d5855ba1 | 7 | Release: 0.%{_beta}.2 |
258edb59 | 8 | License: BSD |
d5855ba1 | 9 | Group: Development/Languages/Python |
258edb59 JK |
10 | Source0: http://wwwsearch.sourceforge.net/%{module}/src/%{module}-%{version}%{_beta}.tar.gz |
11 | # Source0-md5: 98c27be9464f1342ede05784999d2757 | |
12 | URL: http://wwwsearch.sourceforge.net | |
13 | %pyrequires_eq python-modules | |
14 | BuildRequires: python >= 1:2.3 | |
15 | BuildRequires: python-devel >= 1:2.3 | |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
17 | ||
18 | %description | |
19 | Library for automating interaction with web pages. | |
20 | ||
131786f7 | 21 | %description -l pl.UTF-8 |
258edb59 JK |
22 | Biblioteka do automatycznej interakcji ze stronami WWW. |
23 | ||
24 | %prep | |
25 | %setup -q -n %{module}-%{version}%{_beta} | |
26 | ||
27 | %build | |
28 | python setup.py build | |
29 | ||
30 | %install | |
31 | python setup.py install \ | |
32 | --root=$RPM_BUILD_ROOT \ | |
33 | --optimize=2 | |
34 | ||
35 | %py_postclean %{_datadir}/%{name} | |
36 | ||
37 | %clean | |
38 | rm -rf $RPM_BUILD_ROOT | |
39 | ||
40 | %files | |
41 | %doc COPYING.txt README.html ChangeLog.txt | |
42 | %defattr(644,root,root,755) | |
43 | %dir %{py_sitescriptdir}/%{module}/ | |
44 | %{py_sitescriptdir}/%{module}/*.py[oc] |