forked from pool/python-html2text
Accepting request 1280690 from home:mcalabkova:branches:devel:languages:python
- Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1280690 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-html2text?expand=0&rev=44
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 27 16:19:15 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to pip-based build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 19 07:01:27 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-html2text
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,7 +17,6 @@
|
||||
|
||||
|
||||
%define upname html2text
|
||||
%define skip_python2 1
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-%{upname}
|
||||
Version: 2024.2.26
|
||||
@@ -27,12 +26,14 @@ License: GPL-3.0-only
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/Alir3z4/html2text/
|
||||
Source: https://files.pythonhosted.org/packages/source/h/%{upname}/%{upname}-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
Requires(post): alts
|
||||
Requires(preun): alts
|
||||
Provides: html2text = %{version}-%{release}
|
||||
Obsoletes: html2text < %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
@@ -51,10 +52,10 @@ sed -i '/^#!/d' %{upname}/__init__.py
|
||||
rm -r *.egg-info/
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%python_clone -a %{buildroot}%{_bindir}/%{upname}
|
||||
@@ -66,15 +67,13 @@ rm -r *.egg-info/
|
||||
%python_uninstall_alternative html2text
|
||||
|
||||
%check
|
||||
# otherwise python 3.6 does not automatically select UTF-8 for console output
|
||||
export LANG=en_US.UTF-8
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%license COPYING
|
||||
%doc README.md AUTHORS.rst ChangeLog.rst
|
||||
%python_alternative %{_bindir}/%{upname}
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/*.egg-info/
|
||||
%{python_sitelib}/html2text
|
||||
%{python_sitelib}/html2text-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user