]> git.pld-linux.org Git - SPECS.git/blob - squashfs.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.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.4
5 Release:        1
6 License:        GPL v2+
7 Group:          Base/Utilities
8 Source0:        http://downloads.sourceforge.net/squashfs/%{name}%{version}.tar.gz
9 # Source0-md5:  5033bea6cd522ef54b13755feea6c858
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 BuildRequires:  zstd-devel
17 %ifarch %{x8664}
18 Requires:       libgcc_s.so.1()(64bit)
19 %else
20 Requires:       libgcc_s.so.1
21 %endif
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %define         _sbindir        /sbin
25
26 %description
27 This package contains utilities for squashfs filesystem.
28
29 Squashfs is a highly compressed read-only filesystem for Linux (kernel
30 2.6.29 and above). It uses zlib compression to compress both files,
31 inodes and directories. Inodes in the system are very small and all
32 blocks are packed to minimise data overhead. Block sizes greater than
33 4K are supported up to a maximum of 64K.
34
35 Squashfs is intended for general read-only filesystem use, for
36 archival use (i.e. in cases where a .tar.gz file may be used), and in
37 constrained block device/memory systems (e.g. embedded systems) where
38 low overhead is needed.
39
40 %description -l pl.UTF-8
41 Zestaw narzędzi do tworzenia systemu plików squashfs.
42
43 Squashfs jest systemem plików tylko do odczytu z dużym współczynnikiem
44 kompresji dla Linuksa (2.6.29 i nowsze). Używa kompresji zlib do
45 plików, i-węzłów oraz katalogów. I-węzły są bardzo małe, a wszystkie
46 bloki są pakowane, aby zmniejszyć objętość. Rozmiary bloków powyżej
47 4kB są obsługiwane - maksymalnie do 64kB.
48
49 Squashfs ma służyć jako system plików tylko do odczytu ogólnego
50 przeznaczenia, do składowania archiwów (w tych przypadkach, kiedy
51 można używać plików .tar.gz) oraz w systemach z dużymi ograniczeniami
52 pamięci i urządzeń blokowych (np. systemach wbudowanych).
53
54 %prep
55 %setup -q -n %{name}%{version}
56 sed -i -e 's/^#XZ_SUPPORT.*=.*/XZ_SUPPORT = 1/'  squashfs-tools/Makefile
57 sed -i -e 's/^#LZO_SUPPORT.*=.*/LZO_SUPPORT = 1/' squashfs-tools/Makefile
58 sed -i -e 's/^#LZ4_SUPPORT.*=.*/LZ4_SUPPORT = 1/' squashfs-tools/Makefile
59 sed -i -e 's/^#LZMA_XZ_SUPPORT.*=.*/LZMA_XZ_SUPPORT = 1/' squashfs-tools/Makefile
60 sed -i -e 's/^#ZSTD_SUPPORT.*=.*/ZSTD_SUPPORT = 1/' squashfs-tools/Makefile
61 sed -i -e "s/-O2 -Wall/%{rpmcflags}/" squashfs-tools/Makefile
62
63 %build
64 %{__make} -C squashfs-tools \
65         CC="%{__cc}"
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69 install -d $RPM_BUILD_ROOT%{_bindir}
70 install -p squashfs-tools/mksquashfs $RPM_BUILD_ROOT%{_bindir}
71 install -p squashfs-tools/unsquashfs $RPM_BUILD_ROOT%{_bindir}
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %files
77 %defattr(644,root,root,755)
78 %attr(755,root,root) %{_bindir}/mksquashfs
79 %attr(755,root,root) %{_bindir}/unsquashfs
This page took 0.359881 seconds and 3 git commands to generate.