forked from pool/squashfs
- update to 4.5: * Mksquashfs now supports "Actions". * New sqfstar command which will create a Squashfs image from a tar archive. * Tar style handling of source pathnames in Mksquashfs. * Cpio style handling of source pathnames in Mksquashfs. * New option to throttle the amount of CPU and I/O. * Mksquashfs now allows no source directory to be specified. * New Pseudo file "R" definition which allows a Regular file o be created with data stored within the Pseudo file. * Symbolic links are now followed in extract files * Unsquashfs now supports "exclude" files. * Max depth traversal option added. * Unsquashfs can now output a "Pseudo file" representing the input Squashfs filesystem. * New -one-file-system option in Mksquashfs. * New -no-hardlinks option in Mksquashfs. * Exit code in Unsquashfs changed to distinguish between non-fatal errors (exit 2), and fatal errors (exit 1). * Xattr id count added in Unsquashfs "-stat" output. * Unsquashfs "write outside directory" exploit fixed. * Error handling in Unsquashfs writer thread fixed. * Fix failure to truncate destination if appending aborted. * Prevent Mksquashfs reading the destination file. OBS-URL: https://build.opensuse.org/request/show/939998 OBS-URL: https://build.opensuse.org/package/show/filesystems/squashfs?expand=0&rev=49
68 lines
2.0 KiB
RPMSpec
68 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package squashfs
|
|
#
|
|
# 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: squashfs
|
|
Version: 4.5
|
|
Release: 0
|
|
Summary: A Read-Only File System with Efficient Compression
|
|
License: GPL-2.0-or-later
|
|
Group: System/Filesystems
|
|
URL: https://github.com/plougher/squashfs-tools
|
|
Source0: https://github.com/plougher/squashfs-tools/archive/refs/tags/4.5.tar.gz
|
|
Patch0: squashfs-64k.patch
|
|
Patch1: squashfs-thread-limit
|
|
BuildRequires: lzma-devel
|
|
BuildRequires: lzo-devel
|
|
BuildRequires: zlib-devel
|
|
Supplements: filesystem(squashfs)
|
|
%if %{?suse_version} > 1315
|
|
BuildRequires: liblz4-devel
|
|
%endif
|
|
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150100
|
|
BuildRequires: libzstd-devel
|
|
%endif
|
|
|
|
%description
|
|
This package contains the userland utilities to create and read
|
|
squashfs images.
|
|
|
|
%prep
|
|
%autosetup -p1 -n squashfs-tools-%{version}
|
|
|
|
%build
|
|
%define _lto_cflags %{nil}
|
|
sed -i -e "s|-O2|%{optflags}|" squashfs-tools/Makefile
|
|
%make_build -C squashfs-tools XZ_SUPPORT=1 LZO_SUPPORT=1 \
|
|
%if %{?suse_version} > 1315
|
|
LZ4_SUPPORT=1 \
|
|
%endif
|
|
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150100
|
|
ZSTD_SUPPORT=1
|
|
%endif
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
install -m 755 squashfs-tools/{un,mk}squashfs %{buildroot}%{_bindir}
|
|
|
|
%files
|
|
%license COPYING
|
|
%doc README-%{version} ACKNOWLEDGEMENTS CHANGES USAGE
|
|
%{_bindir}/*squashfs
|
|
|
|
%changelog
|