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