]> git.pld-linux.org Git - packages/python3-html2text.git/commitdiff
rename python3 only package and drop python 2 support
authorJan Palus <atler@pld-linux.org>
Mon, 14 Dec 2020 01:15:37 +0000 (02:15 +0100)
committerJan Palus <atler@pld-linux.org>
Mon, 14 Dec 2020 01:15:37 +0000 (02:15 +0100)
python3-html2text.spec [moved from python-html2text.spec with 56% similarity]

similarity index 56%
rename from python-html2text.spec
rename to python3-html2text.spec
index ea267cf4935b131bcad671132b3922d8008651c7..59ffb31e6749c92acc91e78e01833bb1da0aca56 100644 (file)
@@ -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
This page took 0.108789 seconds and 4 git commands to generate.