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