forked from pool/python-html2text
- Update to 3.101:
- Sorry, no changelog atm. - Regenerate spec file with py2pack; - Bzip2 source code. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-html2text?expand=0&rev=5
This commit is contained in:
committed by
Git OBS Bridge
parent
9a52d95968
commit
76f704251a
@@ -15,15 +15,17 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%{!?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.02
|
||||
Version: 3.101
|
||||
Release: 0
|
||||
Url: http://www.aaronsw.com/2002/html2text/
|
||||
Summary: Turn HTML into equivalent Markdown-structured text
|
||||
License: GPL-3.0
|
||||
License: GNU GPL 3
|
||||
Group: Development/Languages/Python
|
||||
Source: html2text-%{version}.tar.gz
|
||||
Source: html2text-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-distribute
|
||||
@@ -34,22 +36,22 @@ BuildArch: noarch
|
||||
%endif
|
||||
%endif
|
||||
%{!?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)")}
|
||||
|
||||
%description
|
||||
Turn HTML into equivalent Markdown-structured text.
|
||||
|
||||
%prep
|
||||
%setup -n html2text-%{version}
|
||||
sed -i "1d" html2text.py # Fix non-executable script
|
||||
%setup -q -n html2text-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
CFLAGS="%{optflags}" python setup.py build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%python_sitelib/*
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user