diff --git a/python-mechanize.spec b/python-mechanize.spec index d015669..836ecbc 100644 --- a/python-mechanize.spec +++ b/python-mechanize.spec @@ -1,6 +1,6 @@ Name: python-mechanize Version: 0.4.5 -Release: 1mamba +Release: 2mamba Summary: Stateful programmatic web browsing in Python Group: System/Libraries Vendor: openmamba @@ -8,7 +8,6 @@ Distribution: openmamba Packager: Ercole 'ercolinux' Carpanetto URL: http://wwwsearch.sourceforge.net/mechanize/ Source: https://pypi.debian.net/mechanize/mechanize-%{version}.tar.gz -#Patch0: %{name}--.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: libpython-devel @@ -21,6 +20,10 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root %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 @@ -35,19 +38,18 @@ CFLAGS="%{optflags}" %{__python} setup.py build --root="%{buildroot}" \ --install-headers=%{_includedir}/python \ --install-lib=%{python_sitearch} \ - --single-version-externally-managed + --single-version-externally-managed \ + --record=%{name}.filelist -%files +sed -i "s,.*/man/.*,&.gz," %{name}.filelist + +%files %{?pyappend} -f %{name}.filelist %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 +* Sat Apr 11 2020 Silvan Calarco 0.4.5-2mamba +- rebuilt with py3* packages + * Tue Dec 31 2019 Automatic Build System 0.4.5-1mamba - automatic version update by autodist