1
0

24 Commits

Author SHA256 Message Date
8bace39d85 Accepting request 1288107 from devel:languages:python
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1288107
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rarfile?expand=0&rev=10
2025-06-24 18:48:55 +00:00
5a51c12692 - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rarfile?expand=0&rev=25
2025-06-24 02:23:24 +00:00
60826cf42c Accepting request 1216919 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1216919
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rarfile?expand=0&rev=9
2024-10-22 12:53:23 +00:00
719ed1f63c - Do not BuildRequire unar: this seems unused during the build/test
phase.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rarfile?expand=0&rev=23
2024-10-22 07:17:18 +00:00
3c067de7f3 Accepting request 1185230 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1185230
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rarfile?expand=0&rev=8
2024-07-04 14:26:27 +00:00
523bb69cf3 Accepting request 974864 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/974864
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rarfile?expand=0&rev=7
2022-05-04 13:11:11 +00:00
ae2a0dec1f Accepting request 974818 from home:mcalabkova:branches:devel:languages:python
- Add patch help.patch and enable Python 3.10
  * https://github.com/markokr/rarfile/pull/85

OBS-URL: https://build.opensuse.org/request/show/974818
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rarfile?expand=0&rev=19
2022-05-04 09:27:39 +00:00
d0bb2fd872 Accepting request 955485 from devel:languages:python
- skip python 3.10 build - not yet supported

OBS-URL: https://build.opensuse.org/request/show/955485
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rarfile?expand=0&rev=6
2022-02-16 23:31:19 +00:00
18e9c4005f - skip python 3.10 build - not yet supported
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rarfile?expand=0&rev=18
2022-02-16 20:40:57 +00:00
abfcbff874 Accepting request 824573 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/824573
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rarfile?expand=0&rev=5
2020-08-06 08:41:16 +00:00
Tomáš Chvátal
b775f842d3 Accepting request 824106 from home:alois:branches:devel:languages:python
- Update to version 4.0
  Main goals are:
  * Increased zipfile-compatibility, thus also achieving
    smaller difference between RAR3 and RAR5 archives.
  * Removing dependency on unrar for extract, thus making
    maintenance of alternative backends more manageable.
  Breaking changes:
  * Directory names will have "/" appended.
  * RarFile.extract operates only on single entry, so when used
    on directory it will create directory but not extract files
    under it.
  * RarFile.extract / RarFile.extractall / RarFile.testrar will
    not launch special unrar command line, instead they are
    implemented on top of RarFile.open.
  * Keyword args in top-level APIs were renamed to match zipfile:
    + RarFile(rarfile) -> RarFile(file)
    + RarFile.setpassword(password) -> .setpassword(pwd)
    + RarFile.getinfo(fname) -> .getinfo(name)
    + RarFile.open(fname, mode, psw) -> .open(name, mode, pwd)
    + RarFile.read(fname, psw) -> .read(name, pwd)
  * PATH_SEP cannot be changed from "/".
  New features:
  * RarFile.extract will return final sanitized filename
    for target file.
  * RarInfo.is_dir is now preferred spelling of isdir().
    Old method kept as alias.
  * New RarInfo.is_file and RarInfo.is_symlink
    methods. Only one of ~RarInfo.is_file, ~RarInfo.is_dir or
    ~RarInfo.is_symlink can be True.
  * RarFile.printdir has file argument for output.
  * RarFile.__iter__ loops over RarInfo entries.
  * RAR3: throw NeedFirstVolume exception with current volume
    number, like RAR5 does.
  * Nanosecond timestamp support.  Visible as nsdatetime
    instance.
  * Minimal CLI when run as script: python3 -m rarfile
  * Skip old file versions in versioned archive.
  Cleanups:
  * Use PBKDF2 implementation from hashlib.
  * Improve test coverage.
  version 3.3:
  Fixes:
  * Add the .sfx test files to MANIFEST.in for inclusion in pypi
    tarball.
  * Add all files in git to tarball.
- Run tests
- Switch to unar

OBS-URL: https://build.opensuse.org/request/show/824106
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rarfile?expand=0&rev=16
2020-08-06 05:39:42 +00:00
320f1f6c2d Accepting request 821832 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/821832
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rarfile?expand=0&rev=4
2020-07-20 19:02:21 +00:00
Tomáš Chvátal
201482fa66 Accepting request 821820 from home:alois:branches:devel:languages:python
- Update to version 3.2
  New features:
  * Support unar as decompression backend.  It has much
    better support for RAR features than bsdtar.
  * Support SFX archives - archive header is searched in first
    2MB of the file.
  * Add :data:`HACK_TMP_DIR` option, to force temp files into
    specific directory.
  Fixes:
  * Always use "/" for path separator in command-line
  Cleanups:
  * Drop module-level options from docs, they create confusion.
  * Drop support for Python 2 and 3.5 and earlier.  Python 2 is
    dead and requiring Python 3.6 gives blake2s, stdlib that
    supports pathlib, and ordered dict without compat hacks.

OBS-URL: https://build.opensuse.org/request/show/821820
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rarfile?expand=0&rev=14
2020-07-20 08:38:53 +00:00
4a1734cb7d Accepting request 738391 from devel:languages:python
Replace %fdupes -s with plain %fdupes; hardlinks are better.

OBS-URL: https://build.opensuse.org/request/show/738391
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rarfile?expand=0&rev=3
2019-10-16 07:15:35 +00:00
537389308a - Replace %fdupes -s with plain %fdupes; hardlinks are better.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rarfile?expand=0&rev=12
2019-10-14 14:40:16 +00:00
4235d52cf2 Accepting request 732398 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/732398
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rarfile?expand=0&rev=2
2019-09-23 10:39:11 +00:00
Tomáš Chvátal
3ae429dbfe Accepting request 732365 from home:alois:branches:devel:languages:python
Update to version 3.1

OBS-URL: https://build.opensuse.org/request/show/732365
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rarfile?expand=0&rev=10
2019-09-21 19:22:54 +00:00
b2f6002823 Accepting request 483992 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/483992
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rarfile?expand=0&rev=1
2017-04-14 11:34:54 +00:00
308f366247 Accepting request 483440 from home:alois:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/483440
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rarfile?expand=0&rev=6
2017-03-31 06:46:39 +00:00
4f3438e1be Accepting request 454475 from home:alois:branches:devel:languages:python
Update to version 3.0

OBS-URL: https://build.opensuse.org/request/show/454475
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rarfile?expand=0&rev=5
2017-02-06 08:07:18 +00:00
df9c44c8c2 Accepting request 427037 from home:alois:branches:devel:languages:python
Update to 2.8

OBS-URL: https://build.opensuse.org/request/show/427037
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rarfile?expand=0&rev=4
2016-09-14 12:39:10 +00:00
5ce9d8fa33 Accepting request 391569 from home:alois:branches:devel:languages:python
Update to version 2.7

OBS-URL: https://build.opensuse.org/request/show/391569
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rarfile?expand=0&rev=3
2016-04-26 14:22:10 +00:00
Todd R
e1b9200862 Accepting request 316563 from home:TheBlackCat:branches:devel:languages:python
Fix building on SLES 11

OBS-URL: https://build.opensuse.org/request/show/316563
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rarfile?expand=0&rev=2
2015-07-14 07:45:24 +00:00
Todd R
ac11199c1d Accepting request 244903 from KDE:Extra
package for reading rar files

OBS-URL: https://build.opensuse.org/request/show/244903
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rarfile?expand=0&rev=1
2014-08-15 21:08:48 +00:00
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>

View File

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