15
0

Accepting request 828011 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/828011
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-html2text?expand=0&rev=23
This commit is contained in:
2020-08-28 19:20:54 +00:00
committed by Git OBS Bridge
2 changed files with 11 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Aug 20 04:47:19 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Add Conflicts with html2text
- Ignore upstream egg-info and regenerate it
-------------------------------------------------------------------
Thu Apr 9 11:17:36 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@@ -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