]> git.pld-linux.org Git - packages/squashfs.git/blob - squashfs.spec
0fba4380ccbd86550a6a247664fc32bbd6e6d1bf
[packages/squashfs.git] / squashfs.spec
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.3
5 Release:        3
6 License:        GPL v2+
7 Group:          Base/Utilities
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
16 %ifarch %{x8664}
17 Requires:       libgcc_s.so.1()(64bit)
18 %else
19 Requires:       libgcc_s.so.1
20 %endif
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         _sbindir        /sbin
24
25 %description
26 This package contains utilities for squashfs filesystem.
27
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.
33
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.
38
39 %description -l pl.UTF-8
40 Zestaw narzędzi do tworzenia systemu plików squashfs.
41
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.
47
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).
52
53 %prep
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
60
61 %build
62 %{__make} -C squashfs-tools \
63         CC="%{__cc}"
64
65 %install
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}
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %files
75 %defattr(644,root,root,755)
76 %attr(755,root,root) %{_bindir}/mksquashfs
77 %attr(755,root,root) %{_bindir}/unsquashfs
This page took 0.054767 seconds and 2 git commands to generate.