Hello community, here is the log from the commit of package html2text for openSUSE:Factory checked in at 2017-04-30 21:23:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/html2text (Old) and /work/SRC/openSUSE:Factory/.html2text.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "html2text" Sun Apr 30 21:23:32 2017 rev:20 rq:491753 version:1.3.2a Changes: -------- --- /work/SRC/openSUSE:Factory/html2text/html2text.changes 2016-05-08 10:45:29.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.html2text.new/html2text.changes 2017-04-30 21:23:47.241634734 +0200 @@ -1,0 +2,6 @@ +Thu Apr 27 16:32:45 UTC 2017 - [email protected] + +- Implement update-alternatives to avoid conflict with + python3-html2text. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ html2text.spec ++++++ --- /var/tmp/diff_new_pack.ZQxZTr/_old 2017-04-30 21:23:47.981530410 +0200 +++ /var/tmp/diff_new_pack.ZQxZTr/_new 2017-04-30 21:23:47.985529846 +0200 @@ -38,6 +38,8 @@ Patch8: http://www.mbayer.de/html2text/downloads/patch-amd64-html2text-1.3.2a.diff Patch9: html2text-debian-810_fix_deprecated_conversion_warnings.patch BuildRequires: gcc-c++ +Requires(post): update-alternatives +Requires(preun): update-alternatives BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -63,15 +65,32 @@ make %{?_smp_mflags} EXPLICIT="%{optflags}" %install -install -D -m 0755 html2text %{buildroot}%{_bindir}/html2text -install -D -m 0644 html2text.1.gz %{buildroot}%{_mandir}/man1/html2text.1.gz +# To avoid conflicts with the python3-html2text package +install -D -m 0755 html2text %{buildroot}%{_bindir}/html2text-cpp +install -D -m 0644 html2text.1.gz %{buildroot}%{_mandir}/man1/html2text-cpp.1.gz install -D -m 0644 html2textrc.5.gz %{buildroot}%{_mandir}/man5/html2textrc.5.gz +ln -s -f %{_sysconfdir}/alternatives/html2text %{buildroot}%{_bindir}/html2text +ln -s -f %{_sysconfdir}/alternatives/html2text.1.gz %{buildroot}%{_mandir}/man1/html2text.1.gz + +%post +update-alternatives --install %{_bindir}/html2text html2text %{_bindir}/html2text-cpp 30 \ + --slave %{_mandir}/man1/html2text.1.gz html2text.1.gz %{_mandir}/man1/html2text-cpp.1.gz + +%preun +if [ ! -f %{_bindir}/html2text-cpp ] ; then + update-alternatives --remove html2text %{_bindir}/html2text-cpp +fi + %files %defattr(-,root,root) %doc README CHANGES COPYING TODO CREDITS KNOWN_BUGS RELEASE_NOTES %{_bindir}/html2text +%{_bindir}/html2text-cpp +%ghost %{_sysconfdir}/alternatives/html2text %{_mandir}/man1/html2text.1.gz +%{_mandir}/man1/html2text-cpp.1.gz +%ghost %{_sysconfdir}/alternatives/html2text.1.gz %{_mandir}/man5/html2textrc.5.gz %changelog
