From f49d2b999d0c21ebb0cf4bec84000d4857cd2598 Mon Sep 17 00:00:00 2001 From: Thorsten Leemhuis Date: Mar 26 2007 07:54:31 +0000 Subject: initial import; review in #233743 --- diff --git a/.cvsignore b/.cvsignore index e69de29..dc39661 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +html2text-2.26.py diff --git a/python-html2text.spec b/python-html2text.spec new file mode 100644 index 0000000..199fadf --- /dev/null +++ b/python-html2text.spec @@ -0,0 +1,55 @@ +# sitelib for noarch packages, sitearch for others (remove the unneeded one) +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + + +Name: python-html2text +Version: 2.26 +Release: 2%{?dist} +Summary: Converts a page of HTML into clean, easy-to-read plain ASCII text + +Group: Development/Languages +License: GPL +URL: http://www.aaronsw.com/2002/html2text/ +Source0: http://www.aaronsw.com/2002/html2text/html2text-2.26.py +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch + +%description +html2text is a Python script that convers a page of HTML into clean, +easy-to-read plain ASCII text. Better yet, that ASCII also happens to +be valid Markdown (a text-to-HTML format). + +Also known as: THE ASCIINATOR, html to text, htm to txt, htm2txt, ... + +%prep +%setup -q -c -T +install -p %{SOURCE0} ./html2text.py +sed -i -e 's/\r//' html2text.py + + +%build +echo Nothing to build + + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/%{python_sitelib}/ +install -p -m 0644 html2text.py $RPM_BUILD_ROOT/%{python_sitelib}/ + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%{python_sitelib}/* + + +%changelog +* Sat Mar 24 2007 Thorsten Leemhuis - 2.26-2 +- Use sed instead of dos2unix + +* Sat Mar 24 2007 Thorsten Leemhuis - 2.26-1 +- Initial package diff --git a/sources b/sources index e69de29..4c8c5e0 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6b567fea434b188e3ce838fffccf1565 html2text-2.26.py