2024-01-06 11:14:11 +01:00
|
|
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
2024-01-06 11:14:11 +01:00
|
|
|
Name: python-html5lib
|
2024-01-06 11:14:11 +01:00
|
|
|
Version: 1.1
|
2024-01-06 11:14:11 +01:00
|
|
|
Release: 2mamba
|
2024-01-06 11:14:11 +01:00
|
|
|
Summary: HTML parser based on the HTML5 specifcation
|
|
|
|
Group: System/Libraries/Python
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 11:14:11 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 11:14:11 +01:00
|
|
|
URL: https://github.com/html5lib/html5lib-python
|
|
|
|
Source: https://github.com/html5lib/html5lib-python.git/%{version}/html5lib-python-%{version}.tar.bz2
|
|
|
|
License: MIT
|
2024-01-06 11:14:11 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-06 11:14:11 +01:00
|
|
|
BuildRequires: libpython3-devel
|
|
|
|
BuildRequires: python3.7dist(six)
|
|
|
|
BuildRequires: python3.7dist(webencodings)
|
2024-01-06 11:14:11 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 11:14:11 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
HTML parser based on the HTML5 specifcation.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n html5lib-python-%{version}
|
|
|
|
|
2024-01-06 11:14:11 +01:00
|
|
|
%if "%{?with_pyver}"
|
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
2024-01-06 11:14:11 +01:00
|
|
|
%build
|
|
|
|
%{__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} \
|
|
|
|
--record=%{name}.filelist
|
|
|
|
|
2024-01-06 11:14:11 +01:00
|
|
|
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
2024-01-06 11:14:11 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-06 11:14:11 +01:00
|
|
|
%files %{?pyappend} -f %{name}.filelist
|
2024-01-06 11:14:11 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-06 11:14:11 +01:00
|
|
|
%dir %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info
|
|
|
|
%{python_sitearch}/%{pkgname}-%{version}-py*.egg-info/*
|
2024-01-06 11:14:11 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 11:14:11 +01:00
|
|
|
* Thu May 05 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1-2mamba
|
|
|
|
- rebuilt with distdeps and python 3.10 subpackage
|
|
|
|
|
2024-01-06 11:14:11 +01:00
|
|
|
* Fri Jul 03 2020 Automatic Build System <autodist@mambasoft.it> 1.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:14:11 +01:00
|
|
|
* Fri Aug 09 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.1-2mamba
|
|
|
|
- rebuilt with python3 3.7.4
|
|
|
|
|
2024-01-06 11:14:11 +01:00
|
|
|
* Wed Dec 27 2017 Automatic Build System <autodist@mambasoft.it> 1.0.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:14:11 +01:00
|
|
|
* Thu Dec 15 2016 Automatic Build System <autodist@mambasoft.it> 0.999999999-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:14:11 +01:00
|
|
|
* Tue Sep 15 2015 Automatic Build System <autodist@mambasoft.it> 0.9999999-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 11:14:11 +01:00
|
|
|
* Mon Jun 22 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.999-2mamba
|
|
|
|
- rebuilt with -py3 package
|
|
|
|
|
2024-01-06 11:14:11 +01:00
|
|
|
* Sun Dec 29 2013 Automatic Build System <autodist@mambasoft.it> 0.999-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Sep 30 2013 Automatic Build System <autodist@mambasoft.it> 0.99-1mamba
|
|
|
|
- update to 0.99
|
|
|
|
|
|
|
|
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.90-2mamba
|
|
|
|
- python 2.7 mass rebuild
|
|
|
|
|
|
|
|
* Tue Oct 12 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 0.90-1mamba
|
|
|
|
- package created by autospec
|