[packages/python3-html2text] rename python3 only package and drop python 2 support

atler atler at pld-linux.org
Mon Dec 14 02:18:57 CET 2020


commit 9b0fb59244eb416338e6de1300729f96b14d3582
Author: Jan Palus <atler at pld-linux.org>
Date:   Mon Dec 14 02:15:37 2020 +0100

    rename python3 only package and drop python 2 support

 python-html2text.spec => python3-html2text.spec | 42 +------------------------
 1 file changed, 1 insertion(+), 41 deletions(-)
---
diff --git a/python-html2text.spec b/python3-html2text.spec
similarity index 56%
rename from python-html2text.spec
rename to python3-html2text.spec
index ea267cf..59ffb31 100644
--- a/python-html2text.spec
+++ b/python3-html2text.spec
@@ -1,11 +1,6 @@
-#
-# 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}
+Name:		python3-%{module}
 Version:	2018.1.9
 Release:	2
 License:	GPL v3
@@ -13,14 +8,9 @@ Group:		Libraries/Python
 Source0:	https://pypi.python.org/packages/source/h/html2text/%{module}-%{version}.tar.gz
 # Source0-md5:	db43de61793d431618bd0b298f9f7410
 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
@@ -29,53 +19,23 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 A HTML to markdown-structured text converter.
 
-%package -n python3-%{module}
-Summary:	A HTML to markdown-structured text converter
-Group:		Libraries/Python
-
-%description -n python3-%{module}
-A HTML to markdown-structured text converter.
-
 %prep
 %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/python3-html2text.git/commitdiff/4b037f1b8df93154c849ee0180e4e511737397f6



More information about the pld-cvs-commit mailing list