14
0

Accepting request 1158173 from home:mcalabkova:branches:devel:languages:python

- Add patch utc.patch to fix the behavior on Python 3.12

OBS-URL: https://build.opensuse.org/request/show/1158173
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-pptx?expand=0&rev=9
This commit is contained in:
2024-03-15 14:46:34 +00:00
committed by Git OBS Bridge
parent 76caa1a59f
commit dcb64b2067
3 changed files with 97 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-python-pptx
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
#
# All modifications and additions to the file contributed by third parties
@@ -17,7 +17,6 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-python-pptx
Version: 0.6.23
Release: 0
@@ -25,6 +24,8 @@ Summary: Generate and manipulate Open XML PowerPoint (pptx) files
License: MIT
URL: http://github.com/scanny/python-pptx
Source: https://files.pythonhosted.org/packages/source/p/python-pptx/python-pptx-%{version}.tar.gz
# PATCH-FIX-UPSTREAM https://github.com/scanny/python-pptx/pull/957 Use UTC-aware datetime objects
Patch: utc.patch
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# SECTION test requirements
@@ -46,7 +47,7 @@ BuildArch: noarch
Generate and manipulate Open XML PowerPoint (.pptx) files.
%prep
%setup -q -n python-pptx-%{version}
%autosetup -p1 -n python-pptx-%{version}
%build
%python_build