15
0

- Add html2text-entrypoints.patch:

+ Fix entry point colliding with /usr/bin/html2text
- Spec cleanup

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-html2text?expand=0&rev=14
This commit is contained in:
Sascha Peilicke
2013-10-28 13:19:52 +00:00
committed by Git OBS Bridge
parent 9d68711bed
commit a63bff5b16
5 changed files with 53 additions and 12 deletions

View File

@@ -16,9 +16,6 @@
#
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
Name: python-html2text
Version: 3.200.3
Release: 0
@@ -26,22 +23,24 @@ Url: http://www.aaronsw.com/2002/html2text/
Summary: Turn HTML into equivalent Markdown-structured text
License: GPL-3.0
Group: Development/Languages/Python
Source: html2text-%{version}.tar.bz2
Source: https://pypi.python.org/packages/source/h/html2text/html2text-%{version}.tar.gz
# PATCH-FIX-UPSTREAM speilicke@suse.com -- https://github.com/aaronsw/html2text/pull/79
Patch0: html2text-entrypoints.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-setuptools
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%endif
%description
Turn HTML into equivalent Markdown-structured text.
%prep
%setup -q -n html2text-%{version}
%patch0 -p1
%build
python setup.py build
@@ -51,8 +50,8 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root,-)
%doc COPYING
%{_bindir}/html2text
%doc COPYING README.md
%{_bindir}/html2text.py
%{python_sitelib}/*
%changelog