kmod-15
OBS-URL: https://build.opensuse.org/package/show/Base:System/kmod?expand=0&rev=58
This commit is contained in:
11
kmod.spec
11
kmod.spec
@@ -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: 14
|
||||
Version: 15
|
||||
Release: 0
|
||||
Url: http://www.jonmasters.org/blog/2011/12/20/libkmod-replaces-module-init-tools/
|
||||
#Announce: https://lwn.net/Articles/502622/
|
||||
@@ -30,7 +30,11 @@ 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: kmod-no-static.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: libtool
|
||||
%if 0%{?suse_version} >= 1220
|
||||
BuildRequires: libxslt-tools
|
||||
%else
|
||||
@@ -96,8 +100,10 @@ in %lname.
|
||||
%prep
|
||||
%{?gpg_verify: xz -dk "%{S:0}"; %gpg_verify %{S:2}}
|
||||
%setup -q
|
||||
%patch -P 1 -p1
|
||||
|
||||
%build
|
||||
autoreconf -fi
|
||||
# The extra --includedir gives us the possibility to detect dependent
|
||||
# packages which fail to properly use pkgconfig.
|
||||
%configure \
|
||||
@@ -144,7 +150,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.4" "$b/%_lib/";
|
||||
ln -s "%_libdir/libkmod.so.2.2.5" "$b/%_lib/";
|
||||
%endif
|
||||
|
||||
%check
|
||||
@@ -159,6 +165,7 @@ make check V=1 || :;
|
||||
%_bindir/kmod
|
||||
%_libexecdir/%name
|
||||
/bin/kmod
|
||||
%_datadir/bash-completion/
|
||||
|
||||
%files -n %lname
|
||||
%defattr(-,root,root)
|
||||
|
Reference in New Issue
Block a user