2024-01-06 11:27:11 +01:00
|
|
|
|
Name: python-mechanize
|
2024-01-06 11:27:11 +01:00
|
|
|
|
Version: 0.4.3
|
|
|
|
|
Release: 1mamba
|
2024-01-06 11:27:11 +01:00
|
|
|
|
Summary: Stateful programmatic web browsing in Python
|
|
|
|
|
Group: System/Libraries
|
|
|
|
|
Vendor: openmamba
|
|
|
|
|
Distribution: openmamba
|
|
|
|
|
Packager: Ercole 'ercolinux' Carpanetto <ercole69@gmail.com>
|
|
|
|
|
URL: http://wwwsearch.sourceforge.net/mechanize/
|
2024-01-06 11:27:11 +01:00
|
|
|
|
Source: https://pypi.debian.net/mechanize/mechanize-%{version}.tar.gz
|
2024-01-06 11:27:11 +01:00
|
|
|
|
#Patch0: %{name}-<pck-version>-<patch-description>.patch
|
|
|
|
|
License: GPL
|
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
|
BuildRequires: libpython-devel
|
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
|
Requires: python >= %python_version
|
|
|
|
|
Provides: mechanize
|
|
|
|
|
Obsoletes: mechanize
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Stateful programmatic web browsing in Python, after Andy Lester’s Perl module WWW::Mechanize.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n mechanize-%{version}
|
|
|
|
|
#%patch0 -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
CFLAGS="%{optflags}" %{__python} setup.py build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
%{__python} setup.py install \
|
|
|
|
|
-O1 --skip-build \
|
|
|
|
|
--root="%{buildroot}" \
|
|
|
|
|
--install-headers=%{_includedir}/python \
|
|
|
|
|
--install-lib=%{python_sitearch} \
|
|
|
|
|
--single-version-externally-managed
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{python_sitearch}/mechanize-%{version}-py%{python_version}.egg-info/PKG-INFO
|
|
|
|
|
%{python_sitearch}/mechanize-%{version}-py%{python_version}.egg-info/*.txt
|
|
|
|
|
%{python_sitearch}/mechanize-%{version}-py%{python_version}.egg-info/zip-safe
|
|
|
|
|
%dir %{python_sitearch}/mechanize
|
|
|
|
|
%{python_sitearch}/mechanize/*.py
|
|
|
|
|
%{python_sitearch}/mechanize/*.pyc
|
|
|
|
|
%{python_sitearch}/mechanize/*.pyo
|
|
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 11:27:11 +01:00
|
|
|
|
* Sun Aug 18 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.3-1mamba
|
|
|
|
|
- update to 0.4.3
|
|
|
|
|
|
2024-01-06 11:27:11 +01:00
|
|
|
|
* Sun Jun 02 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.5-2mamba
|
|
|
|
|
- python 2.7 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Apr 01 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.5-1mamba
|
|
|
|
|
- update to 0.2.5
|
|
|
|
|
- make package name same as specfile by renaming package from mechanize to python-mechanize
|
|
|
|
|
|
|
|
|
|
* Mon Dec 27 2010 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 0.2.4-1mamba
|
|
|
|
|
- package created by autospec
|