2024-01-06 11:27:11 +01:00
|
|
|
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
2024-01-06 11:27:11 +01:00
|
|
|
|
Name: python-mechanize
|
2024-01-06 11:27:11 +01:00
|
|
|
|
Version: 0.4.8
|
2024-01-06 11:27:11 +01:00
|
|
|
|
Release: 2mamba
|
2024-01-06 11:27:11 +01:00
|
|
|
|
Summary: Stateful programmatic web browsing in Python
|
|
|
|
|
Group: System/Libraries
|
|
|
|
|
Vendor: openmamba
|
|
|
|
|
Distribution: openmamba
|
2024-01-06 11:27:11 +01:00
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
|
URL: https://github.com/python-mechanize/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
|
|
|
|
License: GPL
|
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-06 11:27:11 +01:00
|
|
|
|
BuildRequires: libpython3-devel
|
|
|
|
|
BuildRequires: python3.7dist(html5lib)
|
2024-01-06 11:27:11 +01:00
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Stateful programmatic web browsing in Python, after Andy Lester’s Perl module WWW::Mechanize.
|
|
|
|
|
|
2024-01-06 11:27:11 +01:00
|
|
|
|
%if 0%{?with_pyver}
|
|
|
|
|
%pyver_package
|
|
|
|
|
%endif
|
|
|
|
|
|
2024-01-06 11:27:11 +01:00
|
|
|
|
%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}" \
|
2024-01-06 11:27:11 +01:00
|
|
|
|
--install-headers=%{python_inc} \
|
2024-01-06 11:27:11 +01:00
|
|
|
|
--install-lib=%{python_sitearch} \
|
2024-01-06 11:27:11 +01:00
|
|
|
|
--record=%{name}.filelist
|
|
|
|
|
|
2024-01-06 11:27:11 +01:00
|
|
|
|
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
2024-01-06 11:27:11 +01:00
|
|
|
|
|
2024-01-06 11:27:11 +01:00
|
|
|
|
%files %{?pyappend}
|
|
|
|
|
#-f %{name}.filelist
|
2024-01-06 11:27:11 +01:00
|
|
|
|
%defattr(-,root,root)
|
2024-01-06 11:27:11 +01:00
|
|
|
|
%dir %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info
|
|
|
|
|
%{python_sitearch}/%{pkgname}-%{version}-py*.egg-info/*
|
2024-01-06 11:27:11 +01:00
|
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 11:27:11 +01:00
|
|
|
|
* Thu May 05 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.8-2mamba
|
|
|
|
|
- rebuilt with distdeps and python 3.10 subpackage
|
|
|
|
|
|
2024-01-06 11:27:11 +01:00
|
|
|
|
* Fri Apr 15 2022 Automatic Build System <autodist@mambasoft.it> 0.4.8-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
2024-01-06 11:27:11 +01:00
|
|
|
|
* Sun Sep 19 2021 Automatic Build System <autodist@mambasoft.it> 0.4.7-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
2024-01-06 11:27:11 +01:00
|
|
|
|
* Wed Sep 01 2021 Automatic Build System <autodist@mambasoft.it> 0.4.6-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
2024-01-06 11:27:11 +01:00
|
|
|
|
* Sat Apr 11 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.5-2mamba
|
|
|
|
|
- rebuilt with py3* packages
|
|
|
|
|
|
2024-01-06 11:27:11 +01:00
|
|
|
|
* Tue Dec 31 2019 Automatic Build System <autodist@mambasoft.it> 0.4.5-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
2024-01-06 11:27:11 +01:00
|
|
|
|
* Fri Nov 08 2019 Automatic Build System <autodist@mambasoft.it> 0.4.4-1mamba
|
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
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
|