]> git.pld-linux.org Git - packages/python3-mechanize.git/blob - python-mechanize.spec
- x32 rebuild
[packages/python3-mechanize.git] / python-mechanize.spec
1 %define         module  mechanize
2 %define         extraver %{nil}
3 %define         rel             3
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.2.5
8 Release:        1
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:  32657f139fc2fb75bcf193b63b8c60b2
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-modules
18 BuildRequires:  python-setuptools
19 BuildRequires:  rpm-pythonprov
20 Requires:       python-ClientForm >= 0.2.6
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 Library for automating interaction with web pages.
25
26 %description -l pl.UTF-8
27 Biblioteka do automatycznej interakcji ze stronami WWW.
28
29 %prep
30 %setup -q -n %{module}-%{version}%{extraver}
31
32 %build
33 %{__python} setup.py build
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 %{__python} setup.py install \
38     --root=$RPM_BUILD_ROOT \
39     --optimize=2
40
41 %py_postclean %{_datadir}/%{name}
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %files
47 %defattr(644,root,root,755)
48 %doc COPYING.txt
49 %dir %{py_sitescriptdir}/%{module}
50 %{py_sitescriptdir}/%{module}/*.py[oc]
51 %if "%{py_ver}" > "2.4"
52 %{py_sitescriptdir}/mechanize-*.egg-info
53 %endif
This page took 0.078947 seconds and 4 git commands to generate.