]>
Commit | Line | Data |
---|---|---|
35563bed | 1 | Summary: Set of tools which creates squashfs filesystem |
38ab0197 | 2 | Summary(pl.UTF-8): Zestaw narzędzi do tworzenia systemu plików squashfs |
9d2ba463 | 3 | Name: squashfs |
c605d895 | 4 | Version: 4.2 |
ee577044 | 5 | Release: 2 |
9d2ba463 | 6 | License: GPL |
7 | Group: Base/Utilities | |
f42b088c | 8 | Source0: http://downloads.sourceforge.net/squashfs/%{name}%{version}.tar.gz |
c605d895 | 9 | # Source0-md5: 1b7a781fb4cf8938842279bd3e8ee852 |
9d2ba463 | 10 | URL: http://squashfs.sourceforge.net/ |
f42b088c | 11 | BuildRequires: attr-devel |
5ffebeaf | 12 | BuildRequires: lzo-devel >= 2.04 |
13 | BuildRequires: xz-devel >= 5.0.0 | |
9d2ba463 | 14 | BuildRequires: zlib-devel |
ee577044 ER |
15 | %ifarch %{x8664} |
16 | Requires: libgcc_s.so.1()(64bit) | |
17 | %else | |
18 | Requires: libgcc_s.so.1 | |
19 | %endif | |
9d2ba463 | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %define _sbindir /sbin | |
23 | ||
24 | %description | |
35563bed JB |
25 | This package contains utilities for squashfs filesystem. |
26 | ||
9d2ba463 | 27 | Squashfs is a highly compressed read-only filesystem for Linux (kernel |
723a05e1 | 28 | 2.6.29 and above). It uses zlib compression to compress both files, |
216a81cc | 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. | |
9d2ba463 | 32 | |
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. | |
37 | ||
62a07391 JR |
38 | %description -l pl.UTF-8 |
39 | Zestaw narzędzi do tworzenia systemu plików squashfs. | |
9d2ba463 | 40 | |
62a07391 | 41 | Squashfs jest systemem plików tylko do odczytu z dużym współczynnikiem |
723a05e1 | 42 | kompresji dla Linuksa (2.6.29 i nowsze). Używa kompresji zlib do |
62a07391 JR |
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. | |
35563bed | 46 | |
62a07391 JR |
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). | |
35563bed | 51 | |
9d2ba463 | 52 | %prep |
5ffebeaf | 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 | |
9d2ba463 | 57 | |
58 | %build | |
c8124a00 | 59 | %{__make} -C squashfs-tools \ |
5ffebeaf | 60 | CC="%{__cc}" |
9d2ba463 | 61 | |
62 | %install | |
63 | rm -rf $RPM_BUILD_ROOT | |
ee577044 ER |
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} | |
9d2ba463 | 67 | |
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
ee577044 ER |
73 | %attr(755,root,root) %{_bindir}/mksquashfs |
74 | %attr(755,root,root) %{_bindir}/unsquashfs |