From 32ba69f32c10d114e55099aa6e37bfb77daa9a74 Mon Sep 17 00:00:00 2001 From: Michael Schwendt Date: Sat, 14 Jan 2012 21:28:03 +0100 Subject: [PATCH] TODO: decide on the new /usr/bin/html2text this one wants to install update to 3.200.3 --- .gitignore | 1 + python-html2text.spec | 21 +++++++++++++++------ sources | 2 +- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 6530429..4bad3b0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ html2text-2.38.py /python-html2text-3.02.tar.gz +/aaronsw-html2text-3.02-77-gc368b14.tar.gz diff --git a/python-html2text.spec b/python-html2text.spec index bcb60a1..b103410 100644 --- a/python-html2text.spec +++ b/python-html2text.spec @@ -1,17 +1,18 @@ # 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()")} -%global tardirname aaronsw-html2text-d9bf7d6 +%global tardirname aaronsw-html2text-c368b14 Name: python-html2text -Version: 3.02 -Release: 3%{?dist} +Version: 3.200.3 +Release: 1%{?dist} Summary: Converts a page of HTML into clean, easy-to-read plain ASCII text Group: Development/Languages License: GPLv3 URL: http://www.aaronsw.com/2002/html2text/ -Source0: https://github.com/aaronsw/html2text/tarball/%{version}/%{name}-%{version}.tar.gz +#Source0: https://github.com/aaronsw/html2text/tarball/%{version}/%{name}-%{version}.tar.gz +Source0: aaronsw-html2text-3.02-77-gc368b14.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -37,6 +38,12 @@ echo Nothing to build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install --root $RPM_BUILD_ROOT +# TODO: conflicts with package' html2text' obviously +rm $RPM_BUILD_ROOT/usr/bin/html2text + +%check +cd test +PYTHONPATH=${RPM_BUILD_ROOT}%{python_sitelib} %{__python} run_tests.py %clean @@ -46,11 +53,13 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{python_sitelib}/* +%doc COPYING %changelog -* Sat Jan 14 2012 Fedora Release Engineering - 3.02-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild +* Fri Jan 13 2012 Michael Schwendt - 3.200.3-1 +- TODO: decide on the new /usr/bin/html2text this one wants to install +- update to 3.200.3 * Tue Apr 12 2011 Thorsten Leemhuis - 3.02-2 - add disttag diff --git a/sources b/sources index 76b2c6e..7c8eba3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -916b36bb84b88b1d96584b84db872efc python-html2text-3.02.tar.gz +5aab989207988e8ec1ebbf43ed1d84a4 aaronsw-html2text-3.02-77-gc368b14.tar.gz