Sync from SUSE:SLFO:Main unrar_wrapper revision bb842da9ac6ea1c54af0595573f1d2ea

This commit is contained in:
Adrian Schröter 2025-01-13 12:20:58 +01:00
commit 2addc68e66
4 changed files with 111 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
unrar_wrapper-1.0.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

25
unrar_wrapper.changes Normal file
View File

@ -0,0 +1,25 @@
-------------------------------------------------------------------
Fri Aug 27 09:36:49 UTC 2021 - pgajdos@suse.com
- %check: do not use setup.py test
-------------------------------------------------------------------
Tue May 19 12:28:08 UTC 2020 - Kristyna Streitova <kstreitova@suse.com>
- Add missing "Requires: python3-setuptools" [bsc#1170792]
-------------------------------------------------------------------
Tue Apr 10 23:18:06 UTC 2018 - jengelh@inai.de
- Drop version from Provides: unrar
-------------------------------------------------------------------
Thu Mar 29 10:37:17 UTC 2018 - kstreitova@suse.com
- remove python3-devel BuildRequires that is not needed
- fix license
-------------------------------------------------------------------
Mon Mar 19 12:14:30 UTC 2018 - kstreitova@suse.com
- initial commit [fate#323896]

60
unrar_wrapper.spec Normal file
View File

@ -0,0 +1,60 @@
#
# spec file for package unrar_wrapper
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: unrar_wrapper
Version: 1.0.0
Release: 0
Summary: Backwards compatibility between unar and unrar
License: GPL-3.0-only
Group: Productivity/Archiving/Compression
URL: https://github.com/openSUSE/unrar_wrapper
Source: https://github.com/openSUSE/unrar_wrapper/archive/unrar_wrapper-%{version}.tar.gz
BuildRequires: python3-setuptools
Requires: python3-setuptools
Requires: unar
Conflicts: unrar
Provides: unrar
BuildArch: noarch
%description
Wrapper python script that transforms the basic UnRAR commands to unar
and lsar calls in order to provide a backwards compatibility.
%prep
%setup -q -n %{name}-%{name}-%{version}
%build
python3 setup.py build
%check
python3 -m unittest -v
%install
python3 setup.py install --root=%{buildroot}
ln -s %{_bindir}/unrar_wrapper %{buildroot}/%{_bindir}/unrar
%files
%license LICENSE
%doc README.md
%{_bindir}/unrar_wrapper
%{_bindir}/unrar
%{python3_sitelib}/unrar_wrapper.py
%{python3_sitelib}/__pycache__
%{python3_sitelib}/unrar_wrapper-%{version}-py%{py3_ver}.egg-info
%changelog