[packages/python-html2text] up to 2019.8.11
atler
atler at pld-linux.org
Mon Dec 14 02:13:23 CET 2020
commit 74d66721ef716afa80ebf07d48b78732a6181407
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Dec 14 01:59:39 2020 +0100
up to 2019.8.11
- last version to support python 2 -- drop python 3 support (moved to
python3-html2text)
python-html2text.spec | 40 +++-------------------------------------
1 file changed, 3 insertions(+), 37 deletions(-)
---
diff --git a/python-html2text.spec b/python-html2text.spec
index ea267cf..62fd4a1 100644
--- a/python-html2text.spec
+++ b/python-html2text.spec
@@ -1,26 +1,14 @@
-#
-# Conditional build:
-%bcond_without python2 # Python 2 package
-%bcond_without python3 # Python 3 package
-
%define module html2text
Summary: A HTML to markdown-structured text converter
Name: python-%{module}
-Version: 2018.1.9
-Release: 2
+Version: 2019.8.11
+Release: 1
License: GPL v3
Group: Libraries/Python
Source0: https://pypi.python.org/packages/source/h/html2text/%{module}-%{version}.tar.gz
-# Source0-md5: db43de61793d431618bd0b298f9f7410
+# Source0-md5: 21aad7ec95b70606024b783c8253899c
URL: https://github.com/Alir3z4/html2text/
-%if %{with python2}
BuildRequires: python-modules
-%endif
-%if %{with python3}
-BuildRequires: python3-Cython
-BuildRequires: python3-modules
-BuildRequires: python3-setuptools
-%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.710
BuildArch: noarch
@@ -40,42 +28,20 @@ A HTML to markdown-structured text converter.
%setup -q -n %{module}-%{version}
%build
-%if %{with python2}
%py_build
-%endif
-%if %{with python3}
-%py3_build
-%endif
%install
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%py_install
%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
%clean
rm -rf $RPM_BUILD_ROOT
-%if %{with python2}
%files
%defattr(644,root,root,755)
%dir %{py_sitescriptdir}/html2text
%{py_sitescriptdir}/html2text/*.py[co]
%{py_sitescriptdir}/html2text-*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%dir %{py3_sitescriptdir}/html2text
-%{py3_sitescriptdir}/html2text/*.py
-%{py3_sitescriptdir}/html2text/__pycache__
-%{py3_sitescriptdir}/html2text-*.egg-info
-%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-html2text.git/commitdiff/74d66721ef716afa80ebf07d48b78732a6181407
More information about the pld-cvs-commit
mailing list