1 Summary: Set of tools which creates squashfs filesystem
2 Summary(pl.UTF-8): Zestaw narzędzi do tworzenia systemu plików squashfs
8 Source0: http://downloads.sourceforge.net/squashfs/%{name}%{version}.tar.gz
9 # Source0-md5: 1b7a781fb4cf8938842279bd3e8ee852
10 URL: http://squashfs.sourceforge.net/
11 BuildRequires: attr-devel
12 BuildRequires: lzo-devel >= 2.04
13 BuildRequires: xz-devel >= 5.0.0
14 BuildRequires: zlib-devel
16 Requires: libgcc_s.so.1()(64bit)
18 Requires: libgcc_s.so.1
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _sbindir /sbin
25 This package contains utilities for squashfs filesystem.
27 Squashfs is a highly compressed read-only filesystem for Linux (kernel
28 2.6.29 and above). It uses zlib compression to compress both files,
29 inodes and directories. Inodes in the system are very small and all
30 blocks are packed to minimise data overhead. Block sizes greater than
31 4K are supported up to a maximum of 64K.
33 Squashfs is intended for general read-only filesystem use, for
34 archival use (i.e. in cases where a .tar.gz file may be used), and in
35 constrained block device/memory systems (e.g. embedded systems) where
36 low overhead is needed.
38 %description -l pl.UTF-8
39 Zestaw narzędzi do tworzenia systemu plików squashfs.
41 Squashfs jest systemem plików tylko do odczytu z dużym współczynnikiem
42 kompresji dla Linuksa (2.6.29 i nowsze). Używa kompresji zlib do
43 plików, i-węzłów oraz katalogów. I-węzły są bardzo małe, a wszystkie
44 bloki są pakowane, aby zmniejszyć objętość. Rozmiary bloków powyżej
45 4kB są obsługiwane - maksymalnie do 64kB.
47 Squashfs ma służyć jako system plików tylko do odczytu ogólnego
48 przeznaczenia, do składowania archiwów (w tych przypadkach, kiedy
49 można używać plików .tar.gz) oraz w systemach z dużymi ograniczeniami
50 pamięci i urządzeń blokowych (np. systemach wbudowanych).
53 %setup -q -n %{name}%{version}
54 sed -i -e 's/^#XZ_SUPPORT.*=.*/XZ_SUPPORT = 1/' squashfs-tools/Makefile
55 sed -i -e 's/^#LZO_SUPPORT.*=.*/LZO_SUPPORT = 1/' squashfs-tools/Makefile
56 sed -i -e "s/-O2 -Wall/%{rpmcflags}/" squashfs-tools/Makefile
59 %{__make} -C squashfs-tools \
63 rm -rf $RPM_BUILD_ROOT
64 install -d $RPM_BUILD_ROOT%{_bindir}
65 install -p squashfs-tools/mksquashfs $RPM_BUILD_ROOT%{_bindir}
66 install -p squashfs-tools/unsquashfs $RPM_BUILD_ROOT%{_bindir}
69 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
73 %attr(755,root,root) %{_bindir}/mksquashfs
74 %attr(755,root,root) %{_bindir}/unsquashfs