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