diff --git a/python-html2text.changes b/python-html2text.changes index db0a227..a6c9880 100644 --- a/python-html2text.changes +++ b/python-html2text.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Aug 20 04:47:19 UTC 2020 - John Vandenberg + +- Add Conflicts with html2text +- Ignore upstream egg-info and regenerate it + ------------------------------------------------------------------- Thu Apr 9 11:17:36 UTC 2020 - Marketa Calabkova diff --git a/python-html2text.spec b/python-html2text.spec index 39f7e99..b8823e2 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -33,6 +33,7 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires(post): update-alternatives Requires(preun): update-alternatives +Conflicts: html2text BuildArch: noarch %python_subpackages @@ -45,6 +46,9 @@ Markdown (a text-to-HTML format). # remove useless shebang sed -i '/^#!/d' %{upname}/__init__.py +# remove executable bits from egg files +rm -r *.egg-info/ + %build %python_build @@ -54,9 +58,6 @@ sed -i '/^#!/d' %{upname}/__init__.py %python_clone -a %{buildroot}%{_bindir}/%{upname} -# remove executable bits from egg files -%python_expand chmod -x %{buildroot}%{$python_sitelib}/%{upname}-*.egg-info/* - %post %python_install_alternative html2text @@ -73,5 +74,6 @@ export LANG=en_US.UTF-8 %doc README.md AUTHORS.rst ChangeLog.rst %python_alternative %{_bindir}/%{upname} %{python_sitelib}/* +%{python_sitelib}/*.egg-info/ %changelog