15
0

- Fix bnc#732039, add a COPYING file and set license to SDPX style

(GPL-3.0)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-html2text?expand=0&rev=6
This commit is contained in:
Sascha Peilicke
2011-11-24 11:51:19 +00:00
committed by Git OBS Bridge
parent 76f704251a
commit 0cd9339cbf
3 changed files with 685 additions and 5 deletions

View File

@@ -15,17 +15,16 @@
# 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.101
Release: 0
Url: http://www.aaronsw.com/2002/html2text/
Summary: Turn HTML into equivalent Markdown-structured text
License: GNU GPL 3
License: GPL-3.0
Group: Development/Languages/Python
Source: html2text-%{version}.tar.bz2
Source1: COPYING
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-distribute
@@ -36,22 +35,23 @@ 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 -q -n html2text-%{version}
cp %{SOURCE1} .
%build
CFLAGS="%{optflags}" python setup.py build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root,-)
%doc COPYING
%{python_sitelib}/*
%changelog