]> git.pld-linux.org Git - packages/squashfs.git/blob - squashfs.spec
Up to 4.6.1
[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.6.1
5 Release:        1
6 License:        GPL v2+
7 Group:          Base/Utilities
8 Source0:        https://github.com/plougher/squashfs-tools/archive/refs/tags/%{version}.tar.gz
9 # Source0-md5:  db23a40fa0dc54b4d6d225fb20ee6555
10 URL:            https://github.com/plougher/squashfs-tools
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}-tools-%{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         EXTRA_CFLAGS="%{rpmcppflags} %{rpmcflags}" \
67         EXTRA_LDFLAGS="%{rpmldflags}"
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT%{_bindir}
72 install -p squashfs-tools/mksquashfs $RPM_BUILD_ROOT%{_bindir}
73 install -p squashfs-tools/unsquashfs $RPM_BUILD_ROOT%{_bindir}
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %files
79 %defattr(644,root,root,755)
80 %attr(755,root,root) %{_bindir}/mksquashfs
81 %attr(755,root,root) %{_bindir}/unsquashfs
This page took 0.100072 seconds and 3 git commands to generate.