2024-01-05 23:43:46 +01:00
|
|
|
Name: html2text
|
2024-01-05 23:43:46 +01:00
|
|
|
Version: 2020.1.16
|
|
|
|
Release: 1mamba
|
|
|
|
Summary: Converts a page of HTML into clean, easy-to-read plain ASCII text
|
2024-01-05 23:43:46 +01:00
|
|
|
Group: Graphical Desktop/Applications/Office
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-05 23:43:46 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 23:43:46 +01:00
|
|
|
URL: http://www.mbayer.de/html2text
|
2024-01-05 23:43:46 +01:00
|
|
|
Source: https://pypi.debian.net/html2text/html2text-%{version}.tar.gz
|
|
|
|
#Source: http://userpage.fu-berlin.de/%7Embayer/tools/%{name}-%{version}.tar.gz
|
2024-01-05 23:43:46 +01:00
|
|
|
License: GPL
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
2024-01-05 23:43:46 +01:00
|
|
|
BuildRequires: libpython3-devel
|
2024-01-05 23:43:46 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 23:43:46 +01:00
|
|
|
Requires: python3 >= %python_version
|
2024-01-05 23:43:46 +01:00
|
|
|
|
|
|
|
%description
|
2024-01-05 23:43:46 +01:00
|
|
|
html2text is a Python script that converts a page of HTML into clean, easy-to-read plain ASCII text. Better yet, that ASCII also happens to be valid Markdown (a text-to-HTML format).
|
2024-01-05 23:43:46 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2024-01-05 23:43:46 +01:00
|
|
|
CFLAGS="%{optflags}" %{__python3} setup.py build
|
2024-01-05 23:43:46 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 23:43:46 +01:00
|
|
|
%{__python3} setup.py install \
|
|
|
|
-O1 --skip-build \
|
|
|
|
--root="%{buildroot}" \
|
|
|
|
--install-headers=%{python3_inc} \
|
|
|
|
--install-lib=%{python3_sitearch} \
|
|
|
|
--record=%{name}.filelist
|
|
|
|
|
|
|
|
sed -i "s,.*/man/.*,&.gz," %{name}.filelist
|
2024-01-05 23:43:46 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-05 23:43:46 +01:00
|
|
|
%files -f %{name}.filelist
|
2024-01-05 23:43:46 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-05 23:43:46 +01:00
|
|
|
%doc COPYING
|
2024-01-05 23:43:46 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 23:43:46 +01:00
|
|
|
* Tue Mar 03 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2020.1.16-1mamba
|
|
|
|
- update to 2020.1.16
|
|
|
|
- switch to python html2text package
|
|
|
|
|
2024-01-05 23:43:46 +01:00
|
|
|
* Wed Jul 18 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.2a-3mamba
|
|
|
|
- added utf8 patch
|
|
|
|
|
|
|
|
* Fri Oct 03 2008 Tiziana Ferro <tiziana.ferro@email.it> 1.3.2a-2mamba
|
|
|
|
- update vendor, distribuition, mantainer, URL
|
|
|
|
- update buildrequirements list
|
|
|
|
|
|
|
|
* Wed Dec 28 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 1.3.2a-1qilnx
|
|
|
|
- package created by autospec
|