From 7b99df54ff9337ed1beb4590f25a22152490a62ec61b9581eb0cac87dcc68145 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Mon, 12 May 2025 11:44:19 +0000 Subject: [PATCH] Accepting request 1276808 from home:mcalabkova:branches:devel:languages:python - Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1276808 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyPDF2?expand=0&rev=24 --- python-PyPDF2.changes | 5 +++++ python-PyPDF2.spec | 11 +++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/python-PyPDF2.changes b/python-PyPDF2.changes index cca4601..ca001c0 100644 --- a/python-PyPDF2.changes +++ b/python-PyPDF2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 12 10:44:03 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Fri Aug 25 14:08:04 UTC 2023 - ecsos diff --git a/python-PyPDF2.spec b/python-PyPDF2.spec index 55a7105..f7f5a47 100644 --- a/python-PyPDF2.spec +++ b/python-PyPDF2.spec @@ -1,7 +1,7 @@ # # spec file for package python-PyPDF2 # -# Copyright (c) 2022 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 @@ -25,7 +25,9 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/py-pdf/PyPDF2 Source: https://github.com/py-pdf/PyPDF2/archive/refs/tags/%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -52,16 +54,17 @@ It is therefore a useful tool for websites that manage or manipulate PDFs. sed -i '/^#!/ d' PyPDF2/pagerange.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} chmod a-x CHANGELOG.md LICENSE README.md %files %{python_files} %license LICENSE %doc CHANGELOG.md README.md -%{python_sitelib}/* +%{python_sitelib}/PyPDF2 +%{python_sitelib}/[Pp]y[Pp][Dd][Ff]2-%{version}*-info %changelog