diff --git a/html2text.spec b/html2text.spec index 289b555..a87d77e 100644 --- a/html2text.spec +++ b/html2text.spec @@ -1,49 +1,56 @@ Name: html2text -Version: 2020.1.16 +Epoch: 1 +Version: 2.0.0 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 -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 +URL: https://github.com/grobian/html2text +Source: https://github.com/grobian/html2text.git/v%{version}/html2text-%{version}.tar.bz2 +#Source: https://pypi.debian.net/html2text/html2text-%{version}.tar.gz License: GPL -BuildRoot: %{_tmppath}/%{name}-%{version}-root ## AUTOBUILDREQ-BEGIN -BuildRequires: libpython3-devel +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-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). +%debug_package + %prep %setup -q %build -CFLAGS="%{optflags}" %{__python3} setup.py build +%configure + +%make %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 +install -d -m0755 %{buildroot}%{_mandir}/{man1,man5} +%makeinstall PREFIX=%{_prefix} MANDIR=%{_mandir} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" -%files -f %{name}.filelist +%files %defattr(-,root,root) +%{_bindir}/html2text +%dir %{_datadir}/doc/html2text +%{_datadir}/doc/html2text/* +%{_mandir}/man1/html2text.1* +%{_mandir}/man5/html2textrc.5* %doc COPYING %changelog +* Sun Feb 20 2022 Silvan Calarco 2.0.0-1mamba +- update to 2.0.0 + * Tue Mar 03 2020 Silvan Calarco 2020.1.16-1mamba - update to 2020.1.16 - switch to python html2text package