]> git.pld-linux.org Git - packages/squashfs.git/blame - squashfs.spec
require libgcc_s.so.1 for pthread_* to work; move tools to user bin
[packages/squashfs.git] / squashfs.spec
CommitLineData
35563bed 1Summary: Set of tools which creates squashfs filesystem
38ab0197 2Summary(pl.UTF-8): Zestaw narzędzi do tworzenia systemu plików squashfs
9d2ba463 3Name: squashfs
c605d895 4Version: 4.2
ee577044 5Release: 2
9d2ba463 6License: GPL
7Group: Base/Utilities
f42b088c 8Source0: http://downloads.sourceforge.net/squashfs/%{name}%{version}.tar.gz
c605d895 9# Source0-md5: 1b7a781fb4cf8938842279bd3e8ee852
9d2ba463 10URL: http://squashfs.sourceforge.net/
f42b088c 11BuildRequires: attr-devel
5ffebeaf 12BuildRequires: lzo-devel >= 2.04
13BuildRequires: xz-devel >= 5.0.0
9d2ba463 14BuildRequires: zlib-devel
ee577044
ER
15%ifarch %{x8664}
16Requires: libgcc_s.so.1()(64bit)
17%else
18Requires: libgcc_s.so.1
19%endif
9d2ba463 20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%define _sbindir /sbin
23
24%description
35563bed
JB
25This package contains utilities for squashfs filesystem.
26
9d2ba463 27Squashfs is a highly compressed read-only filesystem for Linux (kernel
723a05e1 282.6.29 and above). It uses zlib compression to compress both files,
216a81cc 29inodes and directories. Inodes in the system are very small and all
30blocks are packed to minimise data overhead. Block sizes greater than
314K are supported up to a maximum of 64K.
9d2ba463 32
33Squashfs is intended for general read-only filesystem use, for
34archival use (i.e. in cases where a .tar.gz file may be used), and in
35constrained block device/memory systems (e.g. embedded systems) where
36low overhead is needed.
37
62a07391
JR
38%description -l pl.UTF-8
39Zestaw narzędzi do tworzenia systemu plików squashfs.
9d2ba463 40
62a07391 41Squashfs jest systemem plików tylko do odczytu z dużym współczynnikiem
723a05e1 42kompresji dla Linuksa (2.6.29 i nowsze). Używa kompresji zlib do
62a07391
JR
43plików, i-węzłów oraz katalogów. I-węzły są bardzo małe, a wszystkie
44bloki są pakowane, aby zmniejszyć objętość. Rozmiary bloków powyżej
454kB są obsługiwane - maksymalnie do 64kB.
35563bed 46
62a07391
JR
47Squashfs ma służyć jako system plików tylko do odczytu ogólnego
48przeznaczenia, do składowania archiwów (w tych przypadkach, kiedy
49można używać plików .tar.gz) oraz w systemach z dużymi ograniczeniami
50pamięci i urządzeń blokowych (np. systemach wbudowanych).
35563bed 51
9d2ba463 52%prep
5ffebeaf 53%setup -q -n %{name}%{version}
54sed -i -e 's/^#XZ_SUPPORT.*=.*/XZ_SUPPORT = 1/' squashfs-tools/Makefile
55sed -i -e 's/^#LZO_SUPPORT.*=.*/LZO_SUPPORT = 1/' squashfs-tools/Makefile
56sed -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
63rm -rf $RPM_BUILD_ROOT
ee577044
ER
64install -d $RPM_BUILD_ROOT%{_bindir}
65install -p squashfs-tools/mksquashfs $RPM_BUILD_ROOT%{_bindir}
66install -p squashfs-tools/unsquashfs $RPM_BUILD_ROOT%{_bindir}
9d2ba463 67
68%clean
69rm -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
This page took 0.118969 seconds and 4 git commands to generate.