# # spec file for package squashfs (Version 4.0) # # Copyright (c) 2010 SUSE LINUX Products 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 http://bugs.opensuse.org/ # # norootforbuild Name: squashfs BuildRequires: zlib-devel License: GPLv2+ Group: System/Filesystems Supplements: filesystem(squashfs) Version: 4.0 Release: 1 Source0: squashfs4.0.tar.gz Patch: squashfs-retval.patch Url: http://squashfs.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-build Summary: A Read-Only File System with Efficient Compression %description This package contains the userland utilities to create and read squashfs images. Authors: -------- Phillip Lougher %prep %setup -n squashfs%{version} %patch -p0 %build make -C squashfs-tools CFLAGS="-I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE $RPM_OPT_FLAGS" %install mkdir -p $RPM_BUILD_ROOT/usr/bin install -m 755 squashfs-tools/{un,mk}squashfs $RPM_BUILD_ROOT/usr/bin %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README README-4.0 PERFORMANCE.README CHANGES /usr/bin/*squashfs %changelog