]>
Commit | Line | Data |
---|---|---|
1 | %define module mechanize | |
2 | %define extraver %{nil} | |
3 | Summary: Library for automating interaction with web pages | |
4 | Summary(pl.UTF-8): Biblioteka do automatycznej interakcji ze stronami WWW | |
5 | Name: python-%{module} | |
6 | Version: 0.2.5 | |
7 | Release: 2 | |
8 | License: BSD, ZPL 2.1 | |
9 | Group: Development/Languages/Python | |
10 | Source0: http://wwwsearch.sourceforge.net/mechanize/src/%{module}-%{version}%{extraver}.tar.gz | |
11 | # Source0-md5: 32657f139fc2fb75bcf193b63b8c60b2 | |
12 | URL: http://wwwsearch.sourceforge.net/ | |
13 | BuildRequires: python >= 1:2.3 | |
14 | BuildRequires: python-devel >= 1:2.3 | |
15 | BuildRequires: python-modules | |
16 | BuildRequires: python-setuptools | |
17 | BuildRequires: rpm-pythonprov | |
18 | Requires: python-ClientForm >= 0.2.6 | |
19 | Requires: python-modules | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | Library for automating interaction with web pages. | |
24 | ||
25 | %description -l pl.UTF-8 | |
26 | Biblioteka do automatycznej interakcji ze stronami WWW. | |
27 | ||
28 | %prep | |
29 | %setup -q -n %{module}-%{version}%{extraver} | |
30 | ||
31 | %build | |
32 | %py_build | |
33 | ||
34 | %install | |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | %py_install | |
37 | ||
38 | %py_postclean %{_datadir}/%{name} | |
39 | ||
40 | %clean | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %files | |
44 | %defattr(644,root,root,755) | |
45 | %doc COPYING.txt | |
46 | %dir %{py_sitescriptdir}/%{module} | |
47 | %{py_sitescriptdir}/%{module}/*.py[oc] | |
48 | %if "%{py_ver}" > "2.4" | |
49 | %{py_sitescriptdir}/mechanize-*.egg-info | |
50 | %endif |