2007-01-16 00:37:53 +01:00
|
|
|
#
|
2012-01-22 17:01:40 +01:00
|
|
|
# spec file for package squashfs
|
2007-01-16 00:37:53 +01:00
|
|
|
#
|
2016-01-21 17:45:53 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:37:53 +01:00
|
|
|
#
|
2009-02-26 12:56:39 +01:00
|
|
|
# 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.
|
|
|
|
|
2007-01-16 00:37:53 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-05-26 10:46:18 +02:00
|
|
|
|
2007-01-16 00:37:53 +01:00
|
|
|
Name: squashfs
|
2014-05-16 15:18:31 +02:00
|
|
|
Version: 4.3
|
2012-01-22 17:01:40 +01:00
|
|
|
Release: 0
|
2007-01-16 00:37:53 +01:00
|
|
|
Summary: A Read-Only File System with Efficient Compression
|
2012-01-22 17:01:40 +01:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Filesystems
|
2015-03-06 13:24:46 +01:00
|
|
|
Url: http://squashfs.sourceforge.net/
|
|
|
|
Source0: http://sourceforge.net/projects/squashfs/files/squashfs/%{name}%{version}/%{name}%{version}.tar.gz
|
|
|
|
Patch0: squashfs-64k.patch
|
2015-11-05 11:27:18 +01:00
|
|
|
# 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
|
2016-01-21 17:45:53 +01:00
|
|
|
%if %{?suse_version} > 1315
|
2015-03-06 13:24:46 +01:00
|
|
|
BuildRequires: liblz4-devel
|
2016-01-21 17:45:53 +01:00
|
|
|
%endif
|
2015-03-06 13:24:46 +01:00
|
|
|
BuildRequires: lzma-devel
|
|
|
|
BuildRequires: lzo-devel
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
Supplements: filesystem(squashfs)
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-16 00:37:53 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains the userland utilities to create and read
|
|
|
|
squashfs images.
|
|
|
|
|
|
|
|
%prep
|
2015-03-06 13:24:46 +01:00
|
|
|
%setup -q -n squashfs%{version}
|
2014-05-16 15:18:31 +02:00
|
|
|
%patch0 -p1
|
2015-11-05 11:27:18 +01:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2007-01-16 00:37:53 +01:00
|
|
|
|
|
|
|
%build
|
2010-11-03 10:44:36 +01:00
|
|
|
sed -i -e "s,-O2,%{optflags}," squashfs-tools/Makefile
|
2016-01-21 17:45:53 +01:00
|
|
|
make %{?_smp_mflags} -C squashfs-tools XZ_SUPPORT=1 LZO_SUPPORT=1 \
|
|
|
|
%if %{?suse_version} > 1315
|
|
|
|
LZ4_SUPPORT=1
|
|
|
|
%endif
|
2007-01-16 00:37:53 +01:00
|
|
|
|
|
|
|
%install
|
2015-03-06 13:24:46 +01:00
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
install -m 755 squashfs-tools/{un,mk}squashfs %{buildroot}%{_bindir}
|
2007-01-16 00:37:53 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2015-03-06 13:24:46 +01:00
|
|
|
%doc README README-%{version} PERFORMANCE.README CHANGES
|
|
|
|
%{_bindir}/*squashfs
|
2007-01-16 00:37:53 +01:00
|
|
|
|
2007-03-29 18:29:20 +02:00
|
|
|
%changelog
|