]>
Commit | Line | Data |
---|---|---|
1 | Summary: Set of tools which creates squashfs filesystem | |
2 | Summary(pl.UTF-8): Zestaw narzędzi do tworzenia systemu plików squashfs | |
3 | Name: squashfs | |
4 | Version: 4.2 | |
5 | Release: 2 | |
6 | License: GPL | |
7 | Group: Base/Utilities | |
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 | |
15 | %ifarch %{x8664} | |
16 | Requires: libgcc_s.so.1()(64bit) | |
17 | %else | |
18 | Requires: libgcc_s.so.1 | |
19 | %endif | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %define _sbindir /sbin | |
23 | ||
24 | %description | |
25 | This package contains utilities for squashfs filesystem. | |
26 | ||
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. | |
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 | ||
38 | %description -l pl.UTF-8 | |
39 | Zestaw narzędzi do tworzenia systemu plików squashfs. | |
40 | ||
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. | |
46 | ||
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). | |
51 | ||
52 | %prep | |
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 | |
57 | ||
58 | %build | |
59 | %{__make} -C squashfs-tools \ | |
60 | CC="%{__cc}" | |
61 | ||
62 | %install | |
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} | |
67 | ||
68 | %clean | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | ||
71 | %files | |
72 | %defattr(644,root,root,755) | |
73 | %attr(755,root,root) %{_bindir}/mksquashfs | |
74 | %attr(755,root,root) %{_bindir}/unsquashfs |