1
0

4 Commits

2 changed files with 19 additions and 7 deletions

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Jun 24 02:21:52 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Tue Oct 22 06:44:49 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Do not BuildRequire unar: this seems unused during the build/test
phase.
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jun 29 17:30:32 UTC 2024 - Luigi Baldoni <aloisio@gmx.com> Sat Jun 29 17:30:32 UTC 2024 - Luigi Baldoni <aloisio@gmx.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-rarfile # spec file for package python-rarfile
# #
# Copyright (c) 2024 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
@@ -24,14 +24,15 @@ Summary: RAR Archive Reader for Python
License: ISC License: ISC
URL: https://rarfile.readthedocs.org/ URL: https://rarfile.readthedocs.org/
Source0: https://files.pythonhosted.org/packages/source/r/rarfile/rarfile-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/source/r/rarfile/rarfile-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: 7zip BuildRequires: 7zip
BuildRequires: bsdtar BuildRequires: bsdtar
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: python3-Sphinx >= 1.3 BuildRequires: python3-Sphinx >= 1.3
BuildRequires: unar
Requires: bsdtar Requires: bsdtar
Recommends: unar Recommends: unar
BuildArch: noarch BuildArch: noarch
@@ -57,12 +58,12 @@ This package contains technical documentation.
%autosetup -p1 -n rarfile-%{version} %autosetup -p1 -n rarfile-%{version}
%build %build
%python_build %pyproject_wheel
%make_build -C doc html %make_build -C doc html
rm doc/_build/html/.buildinfo rm doc/_build/html/.buildinfo
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -70,9 +71,9 @@ rm doc/_build/html/.buildinfo
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%pycache_only %{python_sitelib}/__pycache__/rarfile.*.py* %pycache_only %{python_sitelib}/__pycache__/rarfile.*.pyc
%{python_sitelib}/rarfile.py* %{python_sitelib}/rarfile.py
%{python_sitelib}/rarfile-%{version}-py%{python_version}.egg-info %{python_sitelib}/rarfile-%{version}.dist-info
%files %{python_files doc} %files %{python_files doc}
%license LICENSE %license LICENSE