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
@@ -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