forked from pool/squashfs
Stanislav Brabec
cb0f29fdff
- Add -offset function to skip n bytes at the beginning of the squashfs… https://github.com/plougher/squashfs-tools/commit/5a498ad24dcfeac9f3d747e894f22901f3ac10 OBS-URL: https://build.opensuse.org/request/show/707937 OBS-URL: https://build.opensuse.org/package/show/filesystems/squashfs?expand=0&rev=39
77 lines
2.5 KiB
RPMSpec
77 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package squashfs
|
|
#
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.3
|
|
Release: 0
|
|
Summary: A Read-Only File System with Efficient Compression
|
|
License: GPL-2.0-or-later
|
|
Group: System/Filesystems
|
|
Url: http://squashfs.sourceforge.net/
|
|
Source0: http://sourceforge.net/projects/squashfs/files/squashfs/%{name}%{version}/%{name}%{version}.tar.gz
|
|
Patch0: squashfs-64k.patch
|
|
# PATCH-FIX-UPSTREAM 0001-mksquashfs-fix-rare-race-in-fragment-waiting-in-file.patch boo#953723
|
|
Patch1: 0001-mksquashfs-fix-rare-race-in-fragment-waiting-in-file.patch
|
|
# PATCH-FIX-UPSTREAM 0002-Fix-2GB-limit-of-the-is_fragment-.-function.patch boo#953723
|
|
Patch2: 0002-Fix-2GB-limit-of-the-is_fragment-.-function.patch
|
|
Patch3: squashfs-thread-limit
|
|
# PATCH-FIX-UPSTREAM Include <sys/sysmacros.h> for major/minor/makedev
|
|
Patch4: sysmacros.patch
|
|
# PATCH-FIX_UPSTREAM add -offset function to skip n bytes
|
|
Patch5: 0003-Add-offset-function-to-skip-n-bytes.patch
|
|
%if %{?suse_version} > 1315
|
|
BuildRequires: liblz4-devel
|
|
%endif
|
|
BuildRequires: lzma-devel
|
|
BuildRequires: lzo-devel
|
|
BuildRequires: zlib-devel
|
|
Supplements: filesystem(squashfs)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
This package contains the userland utilities to create and read
|
|
squashfs images.
|
|
|
|
%prep
|
|
%setup -q -n squashfs%{version}
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%patch2 -p1
|
|
%patch3 -p1
|
|
%patch4 -p1
|
|
%patch5 -p1
|
|
|
|
%build
|
|
%define _lto_cflags %{nil}
|
|
sed -i -e "s|-O2|%{optflags}|" squashfs-tools/Makefile
|
|
make %{?_smp_mflags} -C squashfs-tools XZ_SUPPORT=1 LZO_SUPPORT=1 \
|
|
%if %{?suse_version} > 1315
|
|
LZ4_SUPPORT=1
|
|
%endif
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
install -m 755 squashfs-tools/{un,mk}squashfs %{buildroot}%{_bindir}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README README-%{version} PERFORMANCE.README CHANGES
|
|
%{_bindir}/*squashfs
|
|
|
|
%changelog
|