Update to 3.02; use setuptools; download tarball from github
This commit is contained in:
parent
f8fadfab76
commit
1ea0204634
3 changed files with 14 additions and 8 deletions
|
|
@ -1,20 +1,23 @@
|
|||
# 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
|
||||
|
||||
Name: python-html2text
|
||||
Version: 2.38
|
||||
Version: 3.02
|
||||
Release: 3.1
|
||||
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: http://www.aaronsw.com/2002/html2text/html2text-%{version}.py
|
||||
Source0: https://github.com/aaronsw/html2text/tarball/%{version}/%{name}-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python
|
||||
BuildRequires: python-setuptools-devel
|
||||
|
||||
%description
|
||||
html2text is a Python script that convers a page of HTML into clean,
|
||||
|
|
@ -24,9 +27,7 @@ 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
|
||||
%setup -q -n %{tardirname}
|
||||
|
||||
|
||||
%build
|
||||
|
|
@ -35,8 +36,7 @@ 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}/
|
||||
%{__python} setup.py install --root $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%clean
|
||||
|
|
@ -49,6 +49,11 @@ rm -rf $RPM_BUILD_ROOT
|
|||
|
||||
|
||||
%changelog
|
||||
* Mon Apr 11 2011 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 3.02-1
|
||||
- update to 3.02
|
||||
- download tarball from github
|
||||
- use setuptools
|
||||
|
||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.38-3.1
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue