14
0
forked from pool/python-PyPDF2

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
This commit is contained in:
2025-05-12 11:44:19 +00:00
committed by Git OBS Bridge
parent 44c081e686
commit 7b99df54ff
2 changed files with 12 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 12 10:44:03 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Aug 25 14:08:04 UTC 2023 - ecsos <ecsos@opensuse.org> Fri Aug 25 14:08:04 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-PyPDF2 # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -25,7 +25,9 @@ License: BSD-3-Clause
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/py-pdf/PyPDF2 URL: https://github.com/py-pdf/PyPDF2
Source: https://github.com/py-pdf/PyPDF2/archive/refs/tags/%{version}.tar.gz Source: https://github.com/py-pdf/PyPDF2/archive/refs/tags/%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildArch: noarch 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 sed -i '/^#!/ d' PyPDF2/pagerange.py
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
chmod a-x CHANGELOG.md LICENSE README.md chmod a-x CHANGELOG.md LICENSE README.md
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc CHANGELOG.md README.md %doc CHANGELOG.md README.md
%{python_sitelib}/* %{python_sitelib}/PyPDF2
%{python_sitelib}/[Pp]y[Pp][Dd][Ff]2-%{version}*-info
%changelog %changelog