LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File module-init-tools.spec of Package module-init-tools (Project Base:System)

#
# spec file for package module-init-tools
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           module-init-tools
BuildRequires:  automake
BuildRequires:  docbook-utils
BuildRequires:  zlib-devel
Version:        3.15
Release:        0
# for grepping /etc/SUSE-release
PreReq:         grep
# nm and rpmsort (rpm) are required by the weak-modules script which is invoked
# in post, it also requires getopt (coreutils) and sed
PreReq:         coreutils rpm
# XXX: this should be nm OR eu-nm, the script works with both
PreReq:         /usr/bin/eu-nm /bin/sed
Provides:       modules
Provides:       modutils
Obsoletes:      modules
Obsoletes:      modutils
# needed by 11.1 / SLE11 kernel
Provides:       module-init-tools_fix_bnc480524
Summary:        Utilities to Load Modules into the Kernel
License:        GPL-2.0+
Group:          System/Kernel
Url:            http://www.kerneltools.org/
Source0:        http://www.kernel.org/pub/linux/utils/kernel/%{name}/%{name}-%{version}.tar.bz2
# Patch1:         module-init-tools-upstream.diff
Patch2:         module-init-tools-suse.diff
# PATCH-FIX-UPSTREAM module-init-tools-fix-nfs-local.diff [bnc#781737]
Patch3:         module-init-tools-fix-nfs-local.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       suse-module-tools

%description
Utilities for loading kernel modules. Included are 'insmod', 'lsmod',
'rmmod', 'depmod', and 'modprobe'. The configuration file
/etc/modprobe.* can be used to pass parameters to the modules. 'depmod'
should be used after compiling a new kernel to generate the dependency
information. 'insmod' does not use the dependency nor the options file.
Therefore, 'modprobe' is normally used to load a module.



Authors:
--------
    Rusty Russell <rusty@rustcorp.com.au>
    Adam J. Richter <adam@yggdrasil.com>
    Jon Masters <jcm@jonmasters.org>

%prep
%setup -q
# patch1 -p1
%patch2 -p1
%patch3 -p1

%build
autoreconf --force --install
CFLAGS="$RPM_OPT_FLAGS" \
	./configure \
	--prefix=/ \
	--mandir=%{_mandir} \
	--enable-zlib-dynamic \
	--disable-static-utils
make %{?_smp_mflags}

%install
make DESTDIR=$RPM_BUILD_ROOT install
ln -sf /bin/lsmod $RPM_BUILD_ROOT/sbin/lsmod
#install -d -m 755 $RPM_BUILD_ROOT/usr/lib/%name
#install -m 755 modindex $RPM_BUILD_ROOT/usr/lib/%name/

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog FAQ NEWS README TODO
%doc %{_mandir}/man?/*
/bin/*
/sbin/*

%changelog