]> git.pld-linux.org Git - packages/python-mechanize.git/blame - python-mechanize.spec
- BR setuptools, package egg info
[packages/python-mechanize.git] / python-mechanize.spec
CommitLineData
99526896 1%define module mechanize
dfca3e2b 2%define extraver b
99526896 3%define rel 4
258edb59 4Summary: Library for automating interaction with web pages
0a3f642e 5Summary(pl.UTF-8): Biblioteka do automatycznej interakcji ze stronami WWW
258edb59
JK
6Name: python-%{module}
7Version: 0.1.6
dfca3e2b 8Release: 0.%{extraver}.%{rel}
258edb59 9License: BSD
d5855ba1 10Group: Development/Languages/Python
dfca3e2b 11Source0: http://wwwsearch.sourceforge.net/mechanize/src/%{module}-%{version}%{extraver}.tar.gz
258edb59 12# Source0-md5: 98c27be9464f1342ede05784999d2757
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.060582 seconds and 4 git commands to generate.