Group :: Archiving/Compression
RPM: 7-zip
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: 7-zip
Version: 23.01
Release: alt1
Group: Archiving/Compression
License: LGPLv2+ with UnRAR-exception
Url: https://www.7-zip.org
Source: %name-%version.tar.xz
Source1: check.tar
Patch1: nostrip.patch
Patch2: dangling-pointer.patch
Patch3: uninitialized.patch
Patch100: ALT-armh.patch
Summary: Official 7-zip for linux, the file archiver with a high compression ratio
Provides: 7zz = %version-%release
# Automatically added by buildreq on Fri Jul 02 2021
# optimized out: glibc-kernheaders-generic glibc-kernheaders-x86 libstdc++-devel python3-base sh4
BuildRequires: gcc-c++
%description
High compression ratio in 7z format with LZMA and LZMA2 compression
Supported formats:
Packing / unpacking: 7z, XZ, BZIP2, GZIP, TAR, ZIP and WIM
Unpacking only: AR, ARJ, CAB, CHM, CPIO, CramFS, DMG, EXT, FAT, GPT,
HFS, IHEX, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, QCOW2, RAR, RPM,
SquashFS, UDF, UEFI, VDI, VHD, VMDK, WIM, XAR and Z.
For ZIP and GZIP formats, 7-Zip provides a compression ratio that is
2-10 percent better than the ratio provided by PKZip and WinZip
Strong AES-256 encryption in 7z and ZIP formats
Self-extracting capability for 7z format
Integration with Windows Shell
Powerful File Manager
Powerful command line version
Plugin for FAR Manager
Localizations for 87 languages
%prep
%setup -a1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch100 -p1
sed -Ei "s at 7zCon.sfx at %_libdir/7z/7zCon.sfx at " CPP/7zip/UI/Console/Main.cpp
sed -Ei '
s at 7zCon.sfx at %buildroot%_libdir/7z/7zCon.sfx at g
/brotli|zstd|lz[45]|lizard|flzma2|7za433_7zip.7z|7za.exe.lz$/,/^\s*$/s/^/# NOT IN ORIGINAL 7z # /
' p7zip/check/check.sh
%build
%if_without lto
%define optflags_lto %nil
%endif
%ifarch %arm
%define optflags_lto %nil
%add_optflags -mno-unaligned-access
%endif
%make_build -C CPP/7zip/Bundles/Alone2 -f ../../cmpl_gcc.mak \
LOCAL_FLAGS="%optflags" \
MY_LIBS="" \
%ifarch %e2k
CFLAGS_WARN="-Wno-error -O%_optlevel" \
%endif
%nil
%make_build -C CPP/7zip/Bundles/SFXCon -f makefile.gcc \
%ifarch %e2k
CFLAGS_WARN="-Wno-error -O%_optlevel" \
%endif
%nil
%install
install -D CPP/7zip/Bundles/Alone2/b/g/7zz %buildroot%_bindir/7zz
install -D CPP/7zip/Bundles/SFXCon/_o/7zCon %buildroot%_libdir/7z/7zCon.sfx
%files
%doc DOC/*
%_bindir/*
%_libdir/7z
%check
cd p7zip/check
sh check.sh %buildroot%_bindir/7zz
%changelog
…
Full changelog you can see here
Version: 23.01
Release: alt1
Group: Archiving/Compression
License: LGPLv2+ with UnRAR-exception
Url: https://www.7-zip.org
Source: %name-%version.tar.xz
Source1: check.tar
Patch1: nostrip.patch
Patch2: dangling-pointer.patch
Patch3: uninitialized.patch
Patch100: ALT-armh.patch
Summary: Official 7-zip for linux, the file archiver with a high compression ratio
Provides: 7zz = %version-%release
# Automatically added by buildreq on Fri Jul 02 2021
# optimized out: glibc-kernheaders-generic glibc-kernheaders-x86 libstdc++-devel python3-base sh4
BuildRequires: gcc-c++
%description
High compression ratio in 7z format with LZMA and LZMA2 compression
Supported formats:
Packing / unpacking: 7z, XZ, BZIP2, GZIP, TAR, ZIP and WIM
Unpacking only: AR, ARJ, CAB, CHM, CPIO, CramFS, DMG, EXT, FAT, GPT,
HFS, IHEX, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, QCOW2, RAR, RPM,
SquashFS, UDF, UEFI, VDI, VHD, VMDK, WIM, XAR and Z.
For ZIP and GZIP formats, 7-Zip provides a compression ratio that is
2-10 percent better than the ratio provided by PKZip and WinZip
Strong AES-256 encryption in 7z and ZIP formats
Self-extracting capability for 7z format
Integration with Windows Shell
Powerful File Manager
Powerful command line version
Plugin for FAR Manager
Localizations for 87 languages
%prep
%setup -a1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch100 -p1
sed -Ei "s at 7zCon.sfx at %_libdir/7z/7zCon.sfx at " CPP/7zip/UI/Console/Main.cpp
sed -Ei '
s at 7zCon.sfx at %buildroot%_libdir/7z/7zCon.sfx at g
/brotli|zstd|lz[45]|lizard|flzma2|7za433_7zip.7z|7za.exe.lz$/,/^\s*$/s/^/# NOT IN ORIGINAL 7z # /
' p7zip/check/check.sh
%build
%if_without lto
%define optflags_lto %nil
%endif
%ifarch %arm
%define optflags_lto %nil
%add_optflags -mno-unaligned-access
%endif
%make_build -C CPP/7zip/Bundles/Alone2 -f ../../cmpl_gcc.mak \
LOCAL_FLAGS="%optflags" \
MY_LIBS="" \
%ifarch %e2k
CFLAGS_WARN="-Wno-error -O%_optlevel" \
%endif
%nil
%make_build -C CPP/7zip/Bundles/SFXCon -f makefile.gcc \
%ifarch %e2k
CFLAGS_WARN="-Wno-error -O%_optlevel" \
%endif
%nil
%install
install -D CPP/7zip/Bundles/Alone2/b/g/7zz %buildroot%_bindir/7zz
install -D CPP/7zip/Bundles/SFXCon/_o/7zCon %buildroot%_libdir/7z/7zCon.sfx
%files
%doc DOC/*
%_bindir/*
%_libdir/7z
%check
cd p7zip/check
sh check.sh %buildroot%_bindir/7zz
%changelog
…
Full changelog you can see here