From 2addc68e66ed6f55c18c49a0e9368561b6a6b19e95f63ea2ded06d0ad3c5e1d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Mon, 13 Jan 2025 12:20:58 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main unrar_wrapper revision bb842da9ac6ea1c54af0595573f1d2ea --- .gitattributes | 23 +++++++++++++++ unrar_wrapper-1.0.0.tar.gz | 3 ++ unrar_wrapper.changes | 25 ++++++++++++++++ unrar_wrapper.spec | 60 ++++++++++++++++++++++++++++++++++++++ 4 files changed, 111 insertions(+) create mode 100644 .gitattributes create mode 100644 unrar_wrapper-1.0.0.tar.gz create mode 100644 unrar_wrapper.changes create mode 100644 unrar_wrapper.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/unrar_wrapper-1.0.0.tar.gz b/unrar_wrapper-1.0.0.tar.gz new file mode 100644 index 0000000..847f5d0 --- /dev/null +++ b/unrar_wrapper-1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f3c66e20c3ad6b8fc76b607fc0e867b4655dd8f7486b8bfcc8428a30b43bc787 +size 51761 diff --git a/unrar_wrapper.changes b/unrar_wrapper.changes new file mode 100644 index 0000000..60c9771 --- /dev/null +++ b/unrar_wrapper.changes @@ -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 + +- 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] diff --git a/unrar_wrapper.spec b/unrar_wrapper.spec new file mode 100644 index 0000000..d3926e8 --- /dev/null +++ b/unrar_wrapper.spec @@ -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