SHA256
1
0
forked from pool/kmod
2014-06-24 13:19:36 +00:00
committed by Git OBS Bridge
parent 4d0c3cc817
commit 8797ee9329
7 changed files with 36 additions and 244 deletions

View File

@@ -21,7 +21,7 @@ Name: kmod
Summary: Utilities to load modules into the kernel
License: LGPL-2.1+ and GPL-2.0+
Group: System/Kernel
Version: 17
Version: 18
Release: 0
Url: http://www.jonmasters.org/blog/2011/12/20/libkmod-replaces-module-init-tools/
#Announce: https://lwn.net/Articles/577962/
@@ -30,7 +30,6 @@ Url: http://www.jonmasters.org/blog/2011/12/20/libkmod-replaces-modul
#Git-Clone: git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod
Source: ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/%name-%version.tar.xz
Source2: ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/%name-%version.tar.sign
Patch1: 0001-depmod-Make-dependency-loops-be-fatal.patch
Patch2: 0002-modprobe-Recognize-allow-unsupported-modules-on-comm.patch
Patch3: 0003-libkmod-config-Recognize-allow_unsupported_modules-i.patch
Patch9: 0009-libkmod-Implement-filtering-of-unsupported-modules-o.patch
@@ -98,13 +97,8 @@ This package contains the development headers for the library found
in %lname.
%prep
%{?gpg_verify: xz -dk "%{S:0}"; %gpg_verify %{S:2}}
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch9 -p1
%patch10 -p1
%patch -P 2 -P 3 -P 9 -P 10 -p1
%build
autoreconf -fi
@@ -116,7 +110,7 @@ autoreconf -fi
%endif
--with-xz \
--with-zlib \
--includedir="%_includedir/%name-%version" \
--includedir="%_includedir/pkg/%name" \
--with-rootlibdir="%_libdir" \
--bindir="%_bindir"
make %{?_smp_mflags}
@@ -154,7 +148,7 @@ mkdir -p "$b"/{bin,sbin,%_lib};
ln -s "%_bindir/kmod" "$b/bin/";
%if "%_libdir" != "/%_lib"
ln -s "%_libdir/libkmod.so.2" "$b/%_lib/";
ln -s "%_libdir/libkmod.so.2.2.7" "$b/%_lib/";
ln -s "%_libdir/libkmod.so.2.2.8" "$b/%_lib/";
%endif
%check