76 lines
2.3 KiB
RPMSpec
76 lines
2.3 KiB
RPMSpec
Name: squashfs-tools
|
|
Version: 4.3
|
|
Release: 17
|
|
Summary: Utility for the squashfs filesystems
|
|
License: GPLv2+
|
|
URL: http://squashfs.sourceforge.net/
|
|
|
|
Source0: http://downloads.sourceforge.net/squashfs/squashfs%{version}.tar.gz
|
|
Source1: mksquashfs.1
|
|
Source2: unsquashfs.1
|
|
|
|
|
|
Patch0: 0000-PAE.patch
|
|
Patch1: 0001-mem-overflow.patch
|
|
Patch2: 0002-2gb.patch
|
|
Patch3: 0003-cve-2015-4645.patch
|
|
Patch4: 0004-local-cve-fix.patch
|
|
|
|
#notice patch sequence because of autosetup
|
|
Patch9000: 9000-makedev-miss-headfile.patch
|
|
|
|
Patch6000: 6000-mksquashfs.c-get-inline-functions-work-with-C99.patch
|
|
Patch6001: 6001-unsquashfs-Fix-one-off-error-in-name-length-check.patch
|
|
Patch6002: 6002-unsquashfs-add-definition-for-SQUASHFS_DIR_COUNT.patch
|
|
Patch6003: 6003-unsquashfs-Be-more-explicit-when-file-system-corrupt.patch
|
|
Patch6004: 6004-unsquashfs-move-fs-table-reading-into-the-version-sp.patch
|
|
Patch6005: 6005-unsquashfs-no-longer-need-to-version-and-export-some.patch
|
|
Patch6006: 6006-unsquash-4-get-fs-table-start-and-end-points.patch
|
|
Patch6007: 6007-unsquashfs-Make-some-variables-long-long-rather-than.patch
|
|
Patch6008: 6008-unsquash-4-fix-error-message.patch
|
|
Patch6009: 6009-CVE-2015-464.patch
|
|
|
|
|
|
BuildRequires: zlib-devel xz-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 compression to compress both files, inodes
|
|
and directories.
|
|
|
|
%package help
|
|
Summary: Including man files for squashfs-tools
|
|
Requires: man
|
|
|
|
%description help
|
|
This contains man files for the using of squashfs-tools.
|
|
|
|
%prep
|
|
%autosetup -n squashfs%{version} -p1 -S git
|
|
|
|
%build
|
|
CFLAGS="%{optflags}" XZ_SUPPORT=1 LZO_SUPPORT=1 LZMA_XZ_SUPPORT=1 LZ4_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
|
|
install -D -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man1/mksquashfs.1
|
|
install -D -m 644 %{SOURCE2} %{buildroot}%{_mandir}/man1/unsquashfs.1
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc ACKNOWLEDGEMENTS README README-4.3 DONATIONS
|
|
%license COPYING
|
|
%{_sbindir}/mksquashfs
|
|
%{_sbindir}/unsquashfs
|
|
|
|
%files help
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
%changelog
|
|
* Wed Jul 18 2018 openEuler Buildteam <buildteam@openeuler.org> - 4.3-17
|
|
- Package init
|