SPECS: anyfs-tools.spec - prepare kernel module build (doesn't bui...
shadzik
shadzik at pld-linux.org
Mon Apr 2 04:51:33 CEST 2007
Author: shadzik Date: Mon Apr 2 02:51:33 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- prepare kernel module build (doesn't build anyway due to uncompatible source code with kernel 2.6.20)
---- Files affected:
SPECS:
anyfs-tools.spec (1.15 -> 1.16)
---- Diffs:
================================================================
Index: SPECS/anyfs-tools.spec
diff -u SPECS/anyfs-tools.spec:1.15 SPECS/anyfs-tools.spec:1.16
--- SPECS/anyfs-tools.spec:1.15 Mon Apr 2 04:22:30 2007
+++ SPECS/anyfs-tools.spec Mon Apr 2 04:51:27 2007
@@ -4,6 +4,9 @@
# - fix make anyfs_module
# - make subpackage for libany.a ( -libany or just -static)
+%bcond_without dist_kernel # allow non-distribution kernel
+%bcond_without kernel # don't build 'any' kernel module
+
Summary: anyfs-tools - a unix-like toolset for recovering and converting filesystems
Summary(pl.UTF-8): anyfs-tools - uniksowy zestaw narzędzi do odzyskiwania i konwersji systemów plików
Name: anyfs-tools
@@ -16,6 +19,10 @@
Patch0: %{name}-DFL_RTEXTSIZE.patch
URL: http://anyfs-tools.sourceforge.net/
BuildRequires: e2fsprogs-devel >= 1.38
+%if %{with kernel}
+%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.9}
+BuildRequires: rpmbuild(macros) >= 1.379
+%endif
BuildRequires: libfuse-devel >= 2.5
BuildRequires: mjpegtools-devel
BuildRequires: mpeg2dec-devel
@@ -97,6 +104,24 @@
tabeli i-węzłów przy odmontowywaniu systemu plików, bez zmiany danych
na urządzeniu blokowym.
+%package -n kernel%{_alt_kernel}-misc-any
+Summary: AnyFS kernel module
+Summary(pl.UTF-8): Modul AnyFS
+Release: %{_rel}@%{_kernel_ver_str}
+License: GPL v2
+Group: Base/Kernel
+Requires(post,postun): /sbin/depmod
+%if %{with dist_kernel}
+%requires_releq_kernel
+Requires(postun): %releq_kernel
+%endif
+%if "%{_alt_kernel}" != "%{nil}"
+Provides: kernel-misc-any
+%endif
+
+%description -n kernel%{_alt_kernel}-misc-any
+This package contains the AnyFS kernel module.
+
%package devel
Summary: Header files for anyfs-tools
Summary(pl.UTF-8): Pliki nagłówkowe anyfs-tools
@@ -112,11 +137,18 @@
%prep
%setup -q
%patch0 -p0
+cat > anyfs/Makefile <<'EOF'
+obj-m += any.o
+any-objs := inode.o file.o dir.o namei.o symlink.o
+EOF
%build
%configure
%{__make} libany
%{__make} progs
+%if %{with kernel}
+%build_kernel_modules -C anyfs -m any
+%endif
%install
rm -rf $RPM_BUILD_ROOT
@@ -124,6 +156,10 @@
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+%if %{with kernel}
+%install_kernel_modules -m anyfs/any -d kernel/misc -n any -s current
+%endif
+
%find_lang %{name}
%clean
@@ -143,6 +179,12 @@
%lang(ru) %{_mandir}/ru/man5/*
%lang(ru) %{_mandir}/ru/man8/*
+%if %{with kernel}
+%files -n kernel%{_alt_kernel}-misc-any
+%defattr(644,root,root,755)
+/lib/modules/%{_kernel_ver}/kernel/fs/any.ko*
+%endif
+
%files devel
%defattr(644,root,root,755)
%{_includedir}/anyfs-tools
@@ -153,6 +195,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.16 2007/04/02 02:51:27 shadzik
+- prepare kernel module build (doesn't build anyway due to uncompatible source code with kernel 2.6.20)
+
Revision 1.15 2007/04/02 02:22:30 shadzik
- add patch0
- add TODO
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/anyfs-tools.spec?r1=1.15&r2=1.16&f=u
More information about the pld-cvs-commit
mailing list