%define date 20100211 Name: squashfs-tools Version: 4.1 %if "%date" != "" Release: 0.%date.1ark Source: %name-%date.tar.lz %else Release: 1ark Source: http://mesh.dl.sourceforge.net/project/squashfs/squashfs/squashfs%version/squashfs%version.tar.gz %endif Patch: squashfs-tools-higher-compression.patch Summary: Tools for creating SquashFS filesystems URL: http://squashfs.sf.net/ License: GPL Group: System/Libraries BuildRoot: %{_tmppath}/%{name}-root BuildRequires: xz-libs-devel %description Tools for creating SquashFS filesystems %prep %if "%date" != "" %setup -q -n %name %else %setup -q -n squashfs%version %endif %if "%date" == "" cd squashfs-tools %endif %patch -p1 -b .compression~ sed -i -e "s|-O2|$RPM_OPT_FLAGS|g;s|\\\$(CC)|\$(CC) \$(CFLAGS)|g" Makefile %build %if "%date" == "" cd squashfs-tools %endif make %?_smp_mflags XZ_SUPPORT=1 %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%_bindir %if "%date" == "" cd squashfs-tools %endif install -c -m 755 mksquashfs unsquashfs $RPM_BUILD_ROOT%_bindir %files %defattr(-,root,root) %_bindir/* %clean rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version} %changelog * Thu Feb 11 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 4.0-1ark - 4.0 final * Sat Feb 7 2009 Bernhard Rosenkraenzer <bero@arklinux.org> 4.0-0.20090207.1ark - Update * Wed Jan 21 2009 Bernhard Rosenkraenzer <bero@arklinux.org> 4.0-0.20090121.1ark - Update to 4.0-CVS to make 2.6.29-rc* happy * Mon Jan 19 2009 Bernhard Rosenkraenzer <bero@arklinux.org> 3.4-1ark - 3.4 * Fri Jan 18 2008 Bernhard Rosenkraenzer <bero@arklinux.org> 3.3-1ark - 3.3 with LZMA 4.57 * Fri Sep 21 2007 Bernhard Rosenkraenzer <bero@arklinux.org> 3.2-1ark - 3.2 - Use the new LZMA patch from squashfs-lzma.org * Wed Sep 13 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 3.0-4ark - Adjust to new LZMA patch * Sun Aug 20 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 3.0-3ark - Rebuild with gcc 4.2 to get a speed boost * Sun Apr 16 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 3.0-2ark - Add support for LZMA compressed images * Wed Mar 22 2006 Bernhard Rosenkraenzer <bero@arklinux.org> 3.0-1ark - 3.0 * Sun Oct 16 2005 Bernhard Rosenkraenzer <bero@arklinux.org> 2.2r2-1ark - 2.2r2 * Mon Dec 20 2004 Bernhard Rosenkraenzer <bero@arklinux.org> 2.1-1ark - 2.1(r2) * Sat Jun 05 2004 Bernhard Rosenkraenzer <bero@arklinux.org> 2.0-1ark - initial RPM