forked from pool/python-html2text
- Update to version 3.02:
* Upstream provides no changes - BuildRequire more modern python-distribute instead of python-setuptools - Fixed non-executable script rpmlint warning OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-html2text?expand=0&rev=4
This commit is contained in:
committed by
Git OBS Bridge
parent
5c0696e93e
commit
9a52d95968
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e78f4a03b99d98b79f677727101b3196ef6d24707ae1c7d6eedfcc3142e9e845
|
||||
size 5179
|
||||
3
html2text-3.02.tar.gz
Normal file
3
html2text-3.02.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cc7886dd64efc41edd08ad2a4149b3606fffb9569c2f82796728427fe27c90d1
|
||||
size 5376
|
||||
@@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 21 09:28:46 UTC 2011 - saschpe@suse.de
|
||||
|
||||
- Update to version 3.02:
|
||||
* Upstream provides no changes
|
||||
- BuildRequire more modern python-distribute instead of python-setuptools
|
||||
- Fixed non-executable script rpmlint warning
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 15 23:33:53 UTC 2011 - alexandre@exatati.com.br
|
||||
|
||||
|
||||
@@ -11,59 +11,45 @@
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
|
||||
%define mod_name html2text
|
||||
|
||||
Name: python-%{mod_name}
|
||||
Version: 3.01
|
||||
Release: 1
|
||||
License: GNU GPL 3
|
||||
Summary: Turn HTML into equivalent Markdown-structured text
|
||||
Name: python-html2text
|
||||
Version: 3.02
|
||||
Release: 0
|
||||
Url: http://www.aaronsw.com/2002/html2text/
|
||||
Summary: Turn HTML into equivalent Markdown-structured text
|
||||
License: GPL-3.0
|
||||
Group: Development/Languages/Python
|
||||
Source: %{mod_name}-%{version}.tar.bz2
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
Source: html2text-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-distribute
|
||||
%if 0%{?suse_version}
|
||||
%py_requires
|
||||
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
|
||||
%if 0%{?suse_version} > 1110
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
%endif
|
||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
|
||||
%description
|
||||
Turn HTML into equivalent Markdown-structured text.
|
||||
|
||||
Author:
|
||||
-------
|
||||
Aaron Swartz <me@aaronsw.com>
|
||||
|
||||
%prep
|
||||
%setup -n %{mod_name}-%{version}
|
||||
%setup -n html2text-%{version}
|
||||
sed -i "1d" html2text.py # Fix non-executable script
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
python setup.py build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %{?suse_version: --record-rpm=INSTALLED_FILES}
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files %{?suse_version: -f INSTALLED_FILES}
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%if 0%{!?suse_version:1}
|
||||
# You may have to add additional files here!
|
||||
%python_sitelib/%{mod_name}*
|
||||
%endif
|
||||
%python_sitelib/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user