Accepting request 1200738 from devel:languages:python

- Add missing Requires on typing_extensions for Python 3.10.
- Correct fdupes macro call.
- Add an empty %check section to silence rpmlint.

OBS-URL: https://build.opensuse.org/request/show/1200738
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pypdf?expand=0&rev=3
This commit is contained in:
Ana Guerrero 2024-09-13 12:34:14 +00:00 committed by Git OBS Bridge
commit 84de119caf
2 changed files with 15 additions and 3 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Sep 13 05:35:16 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Add missing Requires on typing_extensions for Python 3.10.
- Correct fdupes macro call.
- Add an empty %check section to silence rpmlint.
-------------------------------------------------------------------
Fri Aug 30 19:52:14 UTC 2024 - Aline Werner <aline.werner@suse.com>

View File

@ -28,9 +28,12 @@ BuildRequires: %{python_module flit}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildArch: noarch
%if 0%{python_version_nodots} < 311
Requires: python-typing_extensions
%endif
Provides: python3-PyPDF2 = %version-%release
Obsoletes: python3-PyPDF2 < %version-%release
BuildArch: noarch
%python_subpackages
@ -57,14 +60,16 @@ It is therefore a useful tool for websites that manage or manipulate PDFs.
%install
%pyproject_install
%fdupes %{buildroot}%{python_sitelib}/pypdf
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# no checks possible as large pdf downloaded from the internet are necessary
%check
exit 0
%files %{python_files}
%license LICENSE
%doc CHANGELOG.md
%{python_sitelib}/pypdf
%{python_sitelib}/pypdf-%{version}*-info
%{python_sitelib}/pypdf-%{version}.dist-info
%changelog