]> git.pld-linux.org Git - packages/python-mechanize.git/blame - python-mechanize.spec
- up to 0.1.11
[packages/python-mechanize.git] / python-mechanize.spec
CommitLineData
99526896 1%define module mechanize
886bd95e 2%define extraver %{nil}
3%define rel 1
258edb59 4Summary: Library for automating interaction with web pages
0a3f642e 5Summary(pl.UTF-8): Biblioteka do automatycznej interakcji ze stronami WWW
258edb59 6Name: python-%{module}
a5f360a4 7Version: 0.1.11
886bd95e 8Release: 1
a5f360a4 9License: BSD, ZPL 2.1
d5855ba1 10Group: Development/Languages/Python
dfca3e2b 11Source0: http://wwwsearch.sourceforge.net/mechanize/src/%{module}-%{version}%{extraver}.tar.gz
a5f360a4 12# Source0-md5: c5e89a1886e44bd7a8598b0ba47287af
7e42cab0 13URL: http://wwwsearch.sourceforge.net/
258edb59 14%pyrequires_eq python-modules
dfca3e2b
ER
15BuildRequires: python >= 1:2.3
16BuildRequires: python-devel >= 1:2.3
17BuildRequires: python-setuptools
8918d8d0 18Requires: python-ClientForm >= 0.2.6
258edb59
JK
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%description
22Library for automating interaction with web pages.
23
131786f7 24%description -l pl.UTF-8
258edb59
JK
25Biblioteka 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 34rm -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
42rm -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
This page took 0.0894 seconds and 4 git commands to generate.