From 4e9692ccb0bf8c4dcc384d2624c9b006258cc095 Mon Sep 17 00:00:00 2001 From: Warren Togami Date: Sat, 24 Mar 2007 22:49:13 +0000 Subject: [PATCH 1/4] Initialize branch EL-4 for python-html2text --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..6ec5cef --- /dev/null +++ b/branch @@ -0,0 +1 @@ +EL-4 From 4249746bd513a25f176ef85b526c796b55ecfc42 Mon Sep 17 00:00:00 2001 From: Thorsten Leemhuis Date: Mon, 26 Mar 2007 07:56:25 +0000 Subject: [PATCH 2/4] initial import; review in #233715 --- .cvsignore | 1 + python-html2text.spec | 55 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 57 insertions(+) create mode 100644 python-html2text.spec 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 From c45720c31f15e728a56b879d24a8aa5d569e7ca3 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 26 Nov 2009 01:51:57 +0000 Subject: [PATCH 3/4] Fix typo that causes a failure to update the common directory. (releng #2781) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ada8cae..4eddbae 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ NAME := python-html2text SPECFILE = $(firstword $(wildcard *.spec)) define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done endef MAKEFILE_COMMON := $(shell $(find-makefile-common)) From aeec00a9f4bed7889954e1131e782416b1e83f6c Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 29 Jul 2010 10:23:16 +0000 Subject: [PATCH 4/4] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - 3 files changed, 22 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 4eddbae..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: python-html2text -# $Id$ -NAME := python-html2text -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/branch b/branch deleted file mode 100644 index 6ec5cef..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -EL-4