TODO: decide on the new /usr/bin/html2text this one wants to install
update to 3.200.3
This commit is contained in:
parent
49811b8aa1
commit
32ba69f32c
3 changed files with 17 additions and 7 deletions
|
|
@ -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 <rel-eng@lists.fedoraproject.org> - 3.02-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
* Fri Jan 13 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 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 <fedora [AT] leemhuis [DOT] info> - 3.02-2
|
||||
- add disttag
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue