]> git.pld-linux.org Git - packages/python-mechanize.git/blame - python-mechanize.spec
- added BR: python-modules, rpm-pythonprov
[packages/python-mechanize.git] / python-mechanize.spec
CommitLineData
99526896 1%define module mechanize
886bd95e 2%define extraver %{nil}
59779625 3%define rel 2
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}
86bf5307
CM
7Version: 0.2.4
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
86bf5307 12# Source0-md5: 0c1c3cec1c6d7b5d87662a069f04eb8d
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
66117fc1 17BuildRequires: python-modules
dfca3e2b 18BuildRequires: python-setuptools
66117fc1 19BuildRequires: rpm-pythonprov
8918d8d0 20Requires: python-ClientForm >= 0.2.6
258edb59
JK
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24Library for automating interaction with web pages.
25
131786f7 26%description -l pl.UTF-8
258edb59
JK
27Biblioteka do automatycznej interakcji ze stronami WWW.
28
29%prep
dfca3e2b 30%setup -q -n %{module}-%{version}%{extraver}
258edb59
JK
31
32%build
dfca3e2b 33%{__python} setup.py build
258edb59
JK
34
35%install
dfca3e2b 36rm -rf $RPM_BUILD_ROOT
99526896 37%{__python} setup.py install \
258edb59
JK
38 --root=$RPM_BUILD_ROOT \
39 --optimize=2
40
41%py_postclean %{_datadir}/%{name}
42
43%clean
44rm -rf $RPM_BUILD_ROOT
45
46%files
258edb59 47%defattr(644,root,root,755)
86bf5307 48%doc COPYING.txt
7e42cab0 49%dir %{py_sitescriptdir}/%{module}
258edb59 50%{py_sitescriptdir}/%{module}/*.py[oc]
dfca3e2b
ER
51%if "%{py_ver}" > "2.4"
52%{py_sitescriptdir}/mechanize-*.egg-info
53%endif
This page took 0.061273 seconds and 4 git commands to generate.