78 lines
2.4 KiB
RPMSpec
78 lines
2.4 KiB
RPMSpec
Name: python-mechanize
|
||
Version: 0.4.8
|
||
Release: 1mamba
|
||
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/
|
||
Source: https://pypi.debian.net/mechanize/mechanize-%{version}.tar.gz
|
||
License: GPL
|
||
## AUTOBUILDREQ-BEGIN
|
||
## AUTOBUILDREQ-END
|
||
Requires: python >= %python_version
|
||
Provides: mechanize
|
||
Obsoletes: mechanize
|
||
|
||
%description
|
||
Stateful programmatic web browsing in Python, after Andy Lester’s Perl module WWW::Mechanize.
|
||
|
||
%if 0%{?with_pyver}
|
||
%pyver_package
|
||
%endif
|
||
|
||
%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 \
|
||
--record=%{name}.filelist
|
||
|
||
sed -i "s,.*/man/.*,&.gz," %{name}.filelist
|
||
|
||
%files %{?pyappend} -f %{name}.filelist
|
||
%defattr(-,root,root)
|
||
|
||
%changelog
|
||
* Fri Apr 15 2022 Automatic Build System <autodist@mambasoft.it> 0.4.8-1mamba
|
||
- automatic version update by autodist
|
||
|
||
* Sun Sep 19 2021 Automatic Build System <autodist@mambasoft.it> 0.4.7-1mamba
|
||
- automatic version update by autodist
|
||
|
||
* Wed Sep 01 2021 Automatic Build System <autodist@mambasoft.it> 0.4.6-1mamba
|
||
- automatic version update by autodist
|
||
|
||
* Sat Apr 11 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.5-2mamba
|
||
- rebuilt with py3* packages
|
||
|
||
* Tue Dec 31 2019 Automatic Build System <autodist@mambasoft.it> 0.4.5-1mamba
|
||
- automatic version update by autodist
|
||
|
||
* Fri Nov 08 2019 Automatic Build System <autodist@mambasoft.it> 0.4.4-1mamba
|
||
- automatic version update by autodist
|
||
|
||
* Sun Aug 18 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.3-1mamba
|
||
- update to 0.4.3
|
||
|
||
* 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
|