15
0

- Upgrade to 2018.1.9:

Fix #188: Non-ASCII in title attribute causes encode error.
    Feature #194: Add support for the <kbd> tag.
    Feature #193: Add support for the <q> tag.
    Fix #157: Fix images link with div wrap
    Fix #55: Fix error when empty title tags
    Fix #160: The html2text tests are failing on Windows and on
        Cygwin due to differences in eol handling between
        Windows/*nix
    Feature #164: Housekeeping: Add flake8 to the travis build,
        cleanup existing flake8 violations, add py3.6 and pypy3
        to the travis build
    Fix #109: Fix for unexpanded &lt; &gt; &amp;
    Fix #143: Fix line wrapping for the lines starting with bold
        Adds support for numeric bold text indication in font-weight,
        as used by Google (and presumably others.)
    Fix #173 and #142: Stripping whitespace in crucial markdown
        and adding whitespace as necessary
        Don't drop any cell data on tables uneven row lengths
        (e.g. colspan in use)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-html2text?expand=0&rev=26
This commit is contained in:
2018-08-13 11:48:24 +00:00
committed by Git OBS Bridge
parent ae2dd37aa0
commit c5b6b6eb96
5 changed files with 44 additions and 26 deletions

View File

@@ -22,7 +22,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without tests
Name: python-%{upname}
Version: 2016.9.19
Version: 2018.1.9
Release: 0
Summary: Turn HTML into equivalent Markdown-structured text
License: GPL-3.0-only
@@ -57,20 +57,16 @@ sed -i '/^#!/d' %{upname}/__init__.py
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# To avoid conflicts with the rst2html5 package
mv %{buildroot}%{_bindir}/%{upname} %{buildroot}%{_bindir}/%{upname}-python
ln -s -f %{_sysconfdir}/alternatives/%{upname} %{buildroot}%{_bindir}/%{upname}
%python_clone -a %{buildroot}%{_bindir}/%{upname}
# remove executable bits from egg files
%python_expand chmod -x %{buildroot}%{$python_sitelib}/%{upname}-*.egg-info/*
%post
update-alternatives --install %{_bindir}/%{upname} %{upname} %{_bindir}/%{upname}-python 15
%python_install_alternative html2text
%preun
if [ ! -f %{_bindir}/%{upname}-python ] ; then
update-alternatives --remove %{upname} %{_bindir}/%{upname}-python
fi
%postun
%python_uninstall_alternative html2text
%if %{with tests}
%check
@@ -80,9 +76,7 @@ fi
%files %{python_files}
%license COPYING
%doc README.md AUTHORS.rst ChangeLog.rst
%python3_only %{_bindir}/%{upname}
%python3_only %{_bindir}/%{upname}-python
%python3_only %ghost %{_sysconfdir}/alternatives/%{upname}
%python_alternative %{_bindir}/%{upname}
%{python_sitelib}/*
%changelog