1 |
%define sqname squashfs |
2 |
%define sqver 4.2 |
3 |
%define subrel 1 |
4 |
%define release %mkrel 1 |
5 |
%define Summary Utilities for the creation of compressed squashfs images |
6 |
|
7 |
Name: %{sqname}-tools |
8 |
Version: %{sqver} |
9 |
Release: %{release} |
10 |
Summary: %{Summary} |
11 |
License: GPL |
12 |
Group: File tools |
13 |
URL: http://squashfs.sourceforge.net/ |
14 |
Source0: %{sqname}%{sqver}.tar.gz |
15 |
Patch0: unsquashfs-add-checks-for-corrupted-data-in-opendir-functions.patch |
16 |
Patch1: compressors-mksquashfs-unsquashfs-broken-if-GZIP_SUPPORT-is-not-defined.patch |
17 |
Patch2: path-issue.patch |
18 |
Patch3: buffer-issue.patch |
19 |
BuildRequires: zlib-devel attr-devel lzma-devel |
20 |
|
21 |
%description |
22 |
squashfs-tools are utilities for the creation of compressed squashfs images. |
23 |
|
24 |
%prep |
25 |
%setup -q -n %{sqname}%{sqver} |
26 |
%apply_patches |
27 |
|
28 |
%build |
29 |
cd squashfs-tools |
30 |
%make XZ_SUPPORT=1 COMP_DEFAULT=xz |
31 |
|
32 |
%install |
33 |
rm -rf %{buildroot} |
34 |
install -d %{buildroot}%{_bindir} |
35 |
cd squashfs-tools |
36 |
install -m 755 mksquashfs unsquashfs %{buildroot}%{_bindir} |
37 |
|
38 |
%clean |
39 |
rm -rf %{buildroot} |
40 |
|
41 |
%files |
42 |
#%doc README |
43 |
%{_bindir}/mksquashfs |
44 |
%{_bindir}/unsquashfs |