From e1d99a005ff9ed922b1be1c4805bc51c4190c239 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 11:27:11 +0100 Subject: [PATCH] rebuilt with distdeps and python 3.10 subpackage [release 0.4.8-2mamba;Thu May 05 2022] --- python-mechanize.spec | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/python-mechanize.spec b/python-mechanize.spec index 8c47154..233aee5 100644 --- a/python-mechanize.spec +++ b/python-mechanize.spec @@ -1,19 +1,19 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) Name: python-mechanize Version: 0.4.8 -Release: 1mamba +Release: 2mamba Summary: Stateful programmatic web browsing in Python Group: System/Libraries Vendor: openmamba Distribution: openmamba -Packager: Ercole 'ercolinux' Carpanetto -URL: http://wwwsearch.sourceforge.net/mechanize/ +Packager: Silvan Calarco +URL: https://github.com/python-mechanize/mechanize Source: https://pypi.debian.net/mechanize/mechanize-%{version}.tar.gz License: GPL ## AUTOBUILDREQ-BEGIN +BuildRequires: libpython3-devel +BuildRequires: python3.7dist(html5lib) ## 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. @@ -34,17 +34,22 @@ CFLAGS="%{optflags}" %{__python} setup.py build %{__python} setup.py install \ -O1 --skip-build \ --root="%{buildroot}" \ - --install-headers=%{_includedir}/python \ + --install-headers=%{python_inc} \ --install-lib=%{python_sitearch} \ - --single-version-externally-managed \ --record=%{name}.filelist -sed -i "s,.*/man/.*,&.gz," %{name}.filelist +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist -%files %{?pyappend} -f %{name}.filelist +%files %{?pyappend} +#-f %{name}.filelist %defattr(-,root,root) +%dir %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info +%{python_sitearch}/%{pkgname}-%{version}-py*.egg-info/* %changelog +* Thu May 05 2022 Silvan Calarco 0.4.8-2mamba +- rebuilt with distdeps and python 3.10 subpackage + * Fri Apr 15 2022 Automatic Build System 0.4.8-1mamba - automatic version update by autodist