update to 2.0.0 [release 2.0.0-1mamba;Sun Feb 20 2022]

This commit is contained in:
Silvan Calarco 2024-01-05 23:43:46 +01:00
parent 7fc8fa56b5
commit a7abd90a08

View File

@ -1,49 +1,56 @@
Name: html2text Name: html2text
Version: 2020.1.16 Epoch: 1
Version: 2.0.0
Release: 1mamba Release: 1mamba
Summary: Converts a page of HTML into clean, easy-to-read plain ASCII text Summary: Converts a page of HTML into clean, easy-to-read plain ASCII text
Group: Graphical Desktop/Applications/Office Group: Graphical Desktop/Applications/Office
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.mbayer.de/html2text URL: https://github.com/grobian/html2text
Source: https://pypi.debian.net/html2text/html2text-%{version}.tar.gz Source: https://github.com/grobian/html2text.git/v%{version}/html2text-%{version}.tar.bz2
#Source: http://userpage.fu-berlin.de/%7Embayer/tools/%{name}-%{version}.tar.gz #Source: https://pypi.debian.net/html2text/html2text-%{version}.tar.gz
License: GPL License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: libpython3-devel BuildRequires: glibc-devel
BuildRequires: libgcc
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
Requires: python3 >= %python_version
%description %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). 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).
%debug_package
%prep %prep
%setup -q %setup -q
%build %build
CFLAGS="%{optflags}" %{__python3} setup.py build %configure
%make
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python3} setup.py install \ install -d -m0755 %{buildroot}%{_mandir}/{man1,man5}
-O1 --skip-build \ %makeinstall PREFIX=%{_prefix} MANDIR=%{_mandir}
--root="%{buildroot}" \
--install-headers=%{python3_inc} \
--install-lib=%{python3_sitearch} \
--record=%{name}.filelist
sed -i "s,.*/man/.*,&.gz," %{name}.filelist
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}.filelist %files
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/html2text
%dir %{_datadir}/doc/html2text
%{_datadir}/doc/html2text/*
%{_mandir}/man1/html2text.1*
%{_mandir}/man5/html2textrc.5*
%doc COPYING %doc COPYING
%changelog %changelog
* Sun Feb 20 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.0-1mamba
- update to 2.0.0
* Tue Mar 03 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2020.1.16-1mamba * Tue Mar 03 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2020.1.16-1mamba
- update to 2020.1.16 - update to 2020.1.16
- switch to python html2text package - switch to python html2text package