SPECS: squashfs_lzma.spec - more modules, some dirty tricks, patch...

zbyniu zbyniu at pld-linux.org
Sat Mar 8 19:59:45 CET 2008


Author: zbyniu                       Date: Sat Mar  8 18:59:45 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- more modules, some dirty tricks, patches are strange

---- Files affected:
SPECS:
   squashfs_lzma.spec (1.24 -> 1.25) 

---- Diffs:

================================================================
Index: SPECS/squashfs_lzma.spec
diff -u SPECS/squashfs_lzma.spec:1.24 SPECS/squashfs_lzma.spec:1.25
--- SPECS/squashfs_lzma.spec:1.24	Sat Mar  8 19:13:50 2008
+++ SPECS/squashfs_lzma.spec	Sat Mar  8 19:59:39 2008
@@ -31,7 +31,7 @@
 URL:		http://www.squashfs-lzma.org/
 BuildRequires:	patchutils
 %if %{with kernel}
-%{?with_dist_kernel:BuildRequires:	kernel%{_alt_kernel}-module-build >= 3:2.6.24.3}
+%{?with_dist_kernel:BuildRequires:	kernel%{_alt_kernel}-module-build >= 3:2.6.24}
 BuildRequires:	rpmbuild(macros) >= 1.379
 %endif
 %if %{with userspace}
@@ -104,6 +104,9 @@
 
 #%patch1 -p1
 #%patch2 -p1
+mv C/Compress/Lzma/kmod/* C/Compress/Lzma
+sed -i 's at ../LzmaDecode.c at LzmaDecode.c@' C/Compress/Lzma/module.c
+ln -s ../../../sqlzma.h C/Compress/Lzma
 
 %build
 %if %{with userspace}
@@ -131,7 +134,9 @@
 %endif
 
 %if %{with kernel}
-%build_kernel_modules -C fs/squashfs -m squashfs
+%build_kernel_modules -C C/Compress/Lzma -m unlzma,sqlzma
+cp C/Compress/Lzma/Module.symvers fs/squashfs
+%build_kernel_modules -C fs/squashfs -m squashfs -c
 mv fs/squashfs/squashfs{,_lzma}-dist.ko
 %endif
 
@@ -146,6 +151,7 @@
 
 %if %{with kernel}
 %install_kernel_modules -m fs/squashfs/squashfs_lzma -d kernel/fs
+%install_kernel_modules -m C/Compress/Lzma/{unlzma,sqlzma} -d kernel/fs
 %endif
 
 %clean
@@ -167,7 +173,7 @@
 %if %{with kernel}
 %files -n kernel%{_alt_kernel}-fs-squashfs_lzma
 %defattr(644,root,root,755)
-/lib/modules/%{_kernel_ver}/kernel/fs/squashfs_lzma.ko*
+/lib/modules/%{_kernel_ver}/kernel/fs/*lzma.ko*
 %endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -176,6 +182,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.25  2008-03-08 18:59:39  zbyniu
+- more modules, some dirty tricks, patches are strange
+
 Revision 1.24  2008-03-08 18:13:50  areq
 - 3.3, NFY
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/squashfs_lzma.spec?r1=1.24&r2=1.25&f=u



More information about the pld-cvs-commit mailing list