]> git.pld-linux.org Git - packages/python-mechanize.git/blob - python-mechanize.spec
- release 2
[packages/python-mechanize.git] / python-mechanize.spec
1 %define         module  mechanize
2 %define         extraver %{nil}
3 %define         rel             2
4 Summary:        Library for automating interaction with web pages
5 Summary(pl.UTF-8):      Biblioteka do automatycznej interakcji ze stronami WWW
6 Name:           python-%{module}
7 Version:        0.1.11
8 Release:        2
9 License:        BSD, ZPL 2.1
10 Group:          Development/Languages/Python
11 Source0:        http://wwwsearch.sourceforge.net/mechanize/src/%{module}-%{version}%{extraver}.tar.gz
12 # Source0-md5:  c5e89a1886e44bd7a8598b0ba47287af
13 URL:            http://wwwsearch.sourceforge.net/
14 %pyrequires_eq  python-modules
15 BuildRequires:  python >= 1:2.3
16 BuildRequires:  python-devel >= 1:2.3
17 BuildRequires:  python-setuptools
18 Requires:       python-ClientForm >= 0.2.6
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 Library for automating interaction with web pages.
23
24 %description -l pl.UTF-8
25 Biblioteka do automatycznej interakcji ze stronami WWW.
26
27 %prep
28 %setup -q -n %{module}-%{version}%{extraver}
29
30 %build
31 %{__python} setup.py build
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 %{__python} setup.py install \
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
45 %defattr(644,root,root,755)
46 %doc COPYING.txt README.html ChangeLog.txt
47 %dir %{py_sitescriptdir}/%{module}
48 %{py_sitescriptdir}/%{module}/*.py[oc]
49 %if "%{py_ver}" > "2.4"
50 %{py_sitescriptdir}/mechanize-*.egg-info
51 %endif
This page took 0.169625 seconds and 4 git commands to generate.