diff --git a/.files b/.files new file mode 100644 index 0000000..9be4b08 Binary files /dev/null and b/.files differ diff --git a/.meta b/.meta new file mode 100644 index 0000000..1149a59 --- /dev/null +++ b/.meta @@ -0,0 +1,5 @@ + + 7zip + File archivier supporting both its 7z format and various common ones (GZIP, TAR, XZ, ZIP, etc). + + diff --git a/.rev b/.rev new file mode 100644 index 0000000..11a87b9 --- /dev/null +++ b/.rev @@ -0,0 +1,10 @@ + + + aa8154b7f3624037ccc74e721328b926 + 21.07 + + dimstar_suse + Add 7zip to Factory + 943593 + + diff --git a/7z2107-src.tar.xz b/7z2107-src.tar.xz new file mode 120000 index 0000000..b4447b4 --- /dev/null +++ b/7z2107-src.tar.xz @@ -0,0 +1 @@ +/ipfs/bafybeigfskozym7w2wwqccxwvkxh443unyrd57kigdzij37ymyxu6pmlcu \ No newline at end of file diff --git a/7zip.changes b/7zip.changes new file mode 100644 index 0000000..8b77159 --- /dev/null +++ b/7zip.changes @@ -0,0 +1,55 @@ +------------------------------------------------------------------- +Mon Jan 3 11:31:10 UTC 2022 - Danilo Spinella + +- Update to version 21.07: + * The sorting order of files in archives was slightly changed to be more + consistent for cases where the name of some directory is the same as the + prefix part of the name of another directory or file. + * TAR archives created by 7-Zip now are more consistent with archives + created by GNU TAR program. +- Remove unneeded pach remove-rar-handler.patch +- Use the tarball in place of the 7zip archive as Source + +------------------------------------------------------------------- +Wed Dec 22 20:48:46 UTC 2021 - Arjen de Korte + +- Extract source archive with bsdtar instead of p7zip +- Fixup line breaks of documentation files + +------------------------------------------------------------------- +Tue Dec 21 21:13:09 UTC 2021 - Arjen de Korte + +- update to version 21.06 + * Bug in LZMA encoder in file LzmaEnc.c was fixed: + - LzmaEnc_MemEncode(), LzmaEncode() and LzmaCompress() could work + incorrectly, if size value for output buffer is smaller than size + required for all compressed data. + - LzmaEnc_Encode() could work incorrectly, if callback + ISeqOutStream::Write() doesn't write all compressed data. + - NCompress::NLzma::CEncoder::Code() could work incorrectly, + if callback ISequentialOutStream::Write() returns error code. + * Bug in versions 21.00-21.05 was fixed: + 7-Zip didn't set attributes of directories during archive extracting. + +- update to version 21.04 + * 7-Zip now reduces the number of working CPU threads for compression, + if RAM size is not enough for compression with big LZMA2 dictionary. + * 7-Zip now can create and check "file.sha256" and "file.sha1" text + files that contain the list of file names and SHA-1 / SHA-256 + checksums in format compatible with sha1sum/sha256sum programs. + +- update to version 21.03 + * The maximum dictionary size for LZMA/LZMA2 compressing was increased + to 4 GB (3840 MiB). + * Minor speed optimizations in LZMA/LZMA2 compressing. + +------------------------------------------------------------------- +Tue Dec 21 00:07:36 UTC 2021 - Jan Engelhardt + +- Remove more -W flags for the Leap 15.x build to succeed + +------------------------------------------------------------------- +Tue Jul 6 14:36:25 UTC 2021 danilo.spinella@suse.com + +- Create initial version +- Add remove-rar-handler.patch diff --git a/7zip.spec b/7zip.spec new file mode 100644 index 0000000..23994ba --- /dev/null +++ b/7zip.spec @@ -0,0 +1,66 @@ +# +# spec file for package 7zip +# +# 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/ +# + + +%define stripped_version 2107 +Name: 7zip +Version: 21.07 +Release: 0 +Summary: File Archivier +# CPP/7zip/Compress/LzfseDecoder.cpp is under the BSD-3-Clause +# C/Sha1.c and C/Sha256.c are in the public domain +License: LGPL-2.1-or-later AND BSD-3-Clause AND SUSE-Public-Domain +Group: Productivity/Archiving/Compression +URL: https://www.7-zip.org/ +Source: https://www.7-zip.org/a/7z%{stripped_version}-src.tar.xz +BuildRequires: dos2unix +BuildRequires: gcc +BuildRequires: gcc-c++ + +%description +This package contains the 7z command line utility for archiving and +extracting various formats. + +%prep +%__tar xaf %{SOURCE0} +dos2unix DOC/*.txt +# Remove executable perms from docs +chmod -x DOC/*.txt + +# Remove -Werror to make build succeed +sed -i 's/-Werror//' CPP/7zip/7zip_gcc.mak +%if 0%{?suse_version} < 1550 +# (gcc 7.x) Remove -Waddress-of-packed-member to make build succeed +sed -i -e 's/-Waddress-of-packed-member//' -e 's/-Wcast-align=strict//' C/warn_gcc.mak CPP/7zip/warn_gcc.mak +%endif +# Inject CFLAGS +sed -i 's/^ -fPIC/ -fPIC %{optflags}/' CPP/7zip/7zip_gcc.mak + +%build +cd CPP/7zip//Bundles/Alone2 +%make_build -f ../../cmpl_gcc.mak DISABLE_RAR_COMPRESS=1 + +%install +install -d -m 755 %{buildroot}%{_bindir} +install -Dt %{buildroot}%{_bindir} CPP/7zip/Bundles/Alone2/b/g/7zz + +%files +%license DOC/copying.txt DOC/License.txt +%doc DOC/readme.txt DOC/7zC.txt DOC/Methods.txt DOC/src-history.txt +%{_bindir}/7zz + +%changelog