html2text/html2text.spec

60 lines
1.9 KiB
RPMSpec
Raw Normal View History

Name: html2text
Version: 2020.1.16
Release: 1mamba
Summary: Converts a page of HTML into clean, easy-to-read plain ASCII text
Group: Graphical Desktop/Applications/Office
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.mbayer.de/html2text
Source: https://pypi.debian.net/html2text/html2text-%{version}.tar.gz
#Source: http://userpage.fu-berlin.de/%7Embayer/tools/%{name}-%{version}.tar.gz
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root
## AUTOBUILDREQ-BEGIN
BuildRequires: libpython3-devel
## AUTOBUILDREQ-END
Requires: python3 >= %python_version
%description
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).
%prep
%setup -q
%build
CFLAGS="%{optflags}" %{__python3} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__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
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}.filelist
%defattr(-,root,root)
%doc COPYING
%changelog
* Tue Mar 03 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2020.1.16-1mamba
- update to 2020.1.16
- switch to python html2text package
* 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