Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Fedora Release Engineering
3820b13134 dist-git conversion 2010-07-29 10:23:19 +00:00
Bill Nottingham
b0b5670340 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:51:57 +00:00
Thorsten Leemhuis
35674c3d3d initial import; review in #233715 2007-03-26 07:57:45 +00:00
Warren Togami
c9570e5605 Initialize branch EL-5 for python-html2text 2007-03-24 22:49:16 +00:00
5 changed files with 57 additions and 21 deletions

View file

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
html2text-2.26.py

View file

@ -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 $$/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)

55
python-html2text.spec Normal file
View file

@ -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 <fedora[AT]leemhuis.info> - 2.26-2
- Use sed instead of dos2unix
* Sat Mar 24 2007 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 2.26-1
- Initial package

View file

@ -0,0 +1 @@
6b567fea434b188e3ce838fffccf1565 html2text-2.26.py