Name: squashfs-tools Version: 4.4 Release: 1 Summary: Utility for the squashfs filesystems License: GPLv2+ URL: http://squashfs.sourceforge.net/ Source0: http://downloads.sourceforge.net/squashfs/squashfs%{version}.tar.gz BuildRequires: zlib-devel xz-devel libzstd-devel git BuildRequires: lzo-devel libattr-devel lz4-devel %description Squashfs is a highly compressed read-only filesystem for Linux. It uses either gzip/xz/lzo/lz4/zstd compression to compress both files, inodes and directories. %prep %autosetup -n squashfs%{version} -p1 -S git %build CFLAGS="%{optflags}" XZ_SUPPORT=1 LZO_SUPPORT=1 LZMA_XZ_SUPPORT=1 LZ4_SUPPORT=1 ZSTD_SUPPORT=1 \ %make_build -C squashfs-tools %install install -D -m 755 squashfs-tools/mksquashfs %{buildroot}%{_sbindir}/mksquashfs install -D -m 755 squashfs-tools/unsquashfs %{buildroot}%{_sbindir}/unsquashfs %files %defattr(-,root,root) %doc ACKNOWLEDGEMENTS README-4.4 %license COPYING %{_sbindir}/mksquashfs %{_sbindir}/unsquashfs %changelog * Tue Oct 15 2019 zhanghaibo - 4.4-1 - Rebase to version 4.4 * Wed Jul 18 2018 openEuler Buildteam - 4.3-17 - Package init