- The test suite survives without
ca-certificates-mozilla-prebuilt now, so we can remove BR (and avoid deadly cycles). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-MarkupSafe?expand=0&rev=53
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 4 23:21:41 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- The test suite survives without
|
||||
ca-certificates-mozilla-prebuilt now, so we can remove BR (and
|
||||
avoid deadly cycles).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 11 14:26:38 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
@@ -32,7 +32,6 @@ Source: https://files.pythonhosted.org/packages/source/M/MarkupSafe/Mark
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: ca-certificates-mozilla-prebuilt
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-base >= 3.6
|
||||
@@ -46,7 +45,10 @@ Implements a unicode subclass that supports HTML strings. This can be used to
|
||||
safely encode strings for dynamically generated web pages.
|
||||
|
||||
%prep
|
||||
%setup -q -n MarkupSafe-%{version}
|
||||
%autosetup -p1 -n MarkupSafe-%{version}
|
||||
|
||||
# Upstream changed the Python package metadata to require Python 3.7, but the tests pass on Python 3.6.
|
||||
sed -i -e '/^python_requires =/s/3\.7/3\.6/' setup.cfg
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
@@ -56,10 +58,6 @@ export CFLAGS="%{optflags}"
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
%python_expand rm %{buildroot}%{$python_sitearch}/markupsafe/_speedups.c
|
||||
# Upstream changed the Python package metadata to require Python 3.7, but the tests pass on Python 3.6.
|
||||
%if %{python_version_nodots} == 36
|
||||
%python_expand sed 's/Requires-Python: >=3.7/Requires-Python: >=3.6/' -i %{buildroot}%{$python_sitearch}/MarkupSafe-%{version}-py3.6.egg-info/PKG-INFO
|
||||
%endif
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
|
Reference in New Issue
Block a user