|
|
f1da6a |
Name: kmod
|
|
|
dae7ef |
Version: 20
|
|
|
4dc70c |
Release: 8%{?dist}
|
|
|
f1da6a |
Summary: Linux kernel module management utilities
|
|
|
f1da6a |
|
|
|
f1da6a |
Group: System Environment/Kernel
|
|
|
f1da6a |
License: GPLv2+
|
|
|
f1da6a |
URL: http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary
|
|
|
f1da6a |
Source0: ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/%{name}-%{version}.tar.xz
|
|
|
f1da6a |
Source1: weak-modules
|
|
|
6f41c8 |
Source2: depmod.conf.dist
|
|
|
f1da6a |
Exclusiveos: Linux
|
|
|
f1da6a |
|
|
|
f1da6a |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
|
|
f1da6a |
BuildRequires: chrpath
|
|
|
f1da6a |
BuildRequires: zlib-devel
|
|
|
f1da6a |
BuildRequires: xz-devel
|
|
|
f1da6a |
BuildRequires: libxslt
|
|
|
f1da6a |
|
|
|
f1da6a |
Provides: module-init-tools = 4.0-1
|
|
|
f1da6a |
Obsoletes: module-init-tools < 4.0-1
|
|
|
f1da6a |
Provides: /sbin/modprobe
|
|
|
f1da6a |
|
|
|
6f41c8 |
# Required for the weak-modules script
|
|
|
6f41c8 |
Requires: /usr/bin/nm
|
|
|
6f41c8 |
Requires: /usr/bin/gzip
|
|
|
6f41c8 |
Requires: /usr/bin/xz
|
|
|
6f41c8 |
Requires: /usr/bin/cpio
|
|
|
dae7ef |
Requires: dracut
|
|
|
dae7ef |
Requires: diffutils
|
|
|
6f41c8 |
|
|
|
f1da6a |
%description
|
|
|
f1da6a |
The kmod package provides various programs needed for automatic
|
|
|
f1da6a |
loading and unloading of modules under 2.6, 3.x, and later kernels, as well
|
|
|
f1da6a |
as other module management programs. Device drivers and filesystems are two
|
|
|
f1da6a |
examples of loaded and unloaded modules.
|
|
|
f1da6a |
|
|
|
f1da6a |
%package libs
|
|
|
f1da6a |
Summary: Libraries to handle kernel module loading and unloading
|
|
|
f1da6a |
License: LGPLv2+
|
|
|
f1da6a |
Group: System Environment/Libraries
|
|
|
f1da6a |
|
|
|
f1da6a |
%description libs
|
|
|
f1da6a |
The kmod-libs package provides runtime libraries for any application that
|
|
|
f1da6a |
wishes to load or unload Linux kernel modules from the running system.
|
|
|
f1da6a |
|
|
|
f1da6a |
%package devel
|
|
|
f1da6a |
Summary: Header files for kmod development
|
|
|
f1da6a |
Group: Development/Libraries
|
|
|
dae7ef |
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
f1da6a |
|
|
|
f1da6a |
%description devel
|
|
|
f1da6a |
The kmod-devel package provides header files used for development of
|
|
|
f1da6a |
applications that wish to load or unload Linux kernel modules.
|
|
|
f1da6a |
|
|
|
f1da6a |
%prep
|
|
|
f1da6a |
%setup -q
|
|
|
f1da6a |
|
|
|
f1da6a |
%build
|
|
|
f1da6a |
export V=1
|
|
|
f1da6a |
%configure \
|
|
|
f1da6a |
--with-zlib \
|
|
|
f1da6a |
--with-xz
|
|
|
f1da6a |
make %{?_smp_mflags}
|
|
|
dae7ef |
#make check
|
|
|
f1da6a |
|
|
|
f1da6a |
%install
|
|
|
f1da6a |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
f1da6a |
pushd $RPM_BUILD_ROOT/%{_mandir}/man5
|
|
|
f1da6a |
ln -s modprobe.d.5.gz modprobe.conf.5.gz
|
|
|
f1da6a |
popd
|
|
|
f1da6a |
|
|
|
f1da6a |
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
f1da6a |
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
|
|
|
f1da6a |
ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_sbindir}/modprobe
|
|
|
f1da6a |
ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_sbindir}/modinfo
|
|
|
f1da6a |
ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_sbindir}/insmod
|
|
|
f1da6a |
ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_sbindir}/rmmod
|
|
|
f1da6a |
ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_sbindir}/depmod
|
|
|
f1da6a |
ln -sf ../bin/kmod $RPM_BUILD_ROOT%{_sbindir}/lsmod
|
|
|
f1da6a |
|
|
|
f1da6a |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d
|
|
|
f1da6a |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d
|
|
|
f1da6a |
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/modprobe.d
|
|
|
f1da6a |
|
|
|
f1da6a |
mkdir -p $RPM_BUILD_ROOT/sbin
|
|
|
f1da6a |
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/weak-modules
|
|
|
f1da6a |
|
|
|
6f41c8 |
install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/depmod.d/dist.conf
|
|
|
6f41c8 |
|
|
|
f1da6a |
%post libs -p /sbin/ldconfig
|
|
|
f1da6a |
|
|
|
f1da6a |
%postun libs -p /sbin/ldconfig
|
|
|
f1da6a |
|
|
|
f1da6a |
%files
|
|
|
f1da6a |
%defattr(-,root,root,-)
|
|
|
f1da6a |
%dir %{_sysconfdir}/depmod.d
|
|
|
f1da6a |
%dir %{_sysconfdir}/modprobe.d
|
|
|
f1da6a |
%dir %{_prefix}/lib/modprobe.d
|
|
|
f1da6a |
%{_bindir}/kmod
|
|
|
f1da6a |
%{_sbindir}/modprobe
|
|
|
f1da6a |
%{_sbindir}/modinfo
|
|
|
f1da6a |
%{_sbindir}/insmod
|
|
|
f1da6a |
%{_sbindir}/rmmod
|
|
|
f1da6a |
%{_sbindir}/lsmod
|
|
|
f1da6a |
%{_sbindir}/depmod
|
|
|
f1da6a |
%{_sbindir}/weak-modules
|
|
|
dae7ef |
%{_datadir}/bash-completion/completions/kmod
|
|
|
6f41c8 |
%{_sysconfdir}/depmod.d/dist.conf
|
|
|
f1da6a |
%attr(0644,root,root) %{_mandir}/man5/*.5*
|
|
|
f1da6a |
%attr(0644,root,root) %{_mandir}/man8/*.8*
|
|
|
f1da6a |
%doc NEWS README TODO COPYING
|
|
|
f1da6a |
|
|
|
f1da6a |
%files libs
|
|
|
f1da6a |
%{_libdir}/libkmod.so.*
|
|
|
f1da6a |
|
|
|
f1da6a |
%files devel
|
|
|
f1da6a |
%{_includedir}/libkmod.h
|
|
|
f1da6a |
%{_libdir}/pkgconfig/libkmod.pc
|
|
|
f1da6a |
%{_libdir}/libkmod.so
|
|
|
f1da6a |
|
|
|
f1da6a |
%changelog
|
|
|
4dc70c |
* Tue Aug 30 2016 Tony Camuso <tcamuso@redhat.com> - 20-8
|
|
|
4dc70c |
- Patch weak-modules to correctly handle powerpc TOC. symbol
|
|
|
4dc70c |
Resolves: rhbz#1367662
|
|
|
4dc70c |
|
|
|
dae7ef |
* Wed Jun 3 2015 David Shea <dshea@redhat.com> - 20-5
|
|
|
dae7ef |
- Check for changes in non-module files that affect that initramfs
|
|
|
dae7ef |
Resolves: rhbz#1108166
|
|
|
dae7ef |
- Use dracut to skip early cpio archives in the initramfs
|
|
|
dae7ef |
Resolves: rhbz#1210449
|
|
|
dae7ef |
|
|
|
dae7ef |
* Mon Apr 13 2015 David Shea <dshea@redhat.com> - 20-4
|
|
|
dae7ef |
- Do not remove the weak-updates directory
|
|
|
dae7ef |
Resolves: rhbz#1124352
|
|
|
dae7ef |
|
|
|
dae7ef |
* Thu Apr 2 2015 David Shea <dshea@redhat.com> - 20-3
|
|
|
dae7ef |
- Require kmod-libs instead of kmod from kmod-devel
|
|
|
dae7ef |
Related: rhbz#1199646
|
|
|
dae7ef |
|
|
|
dae7ef |
* Thu Apr 2 2015 David Shea <dshea@redhat.com> - 20-2
|
|
|
dae7ef |
- Remove the explicit requirement on kmod-libs
|
|
|
dae7ef |
Related: rhbz#1199646
|
|
|
dae7ef |
|
|
|
dae7ef |
* Wed Mar 11 2015 David Shea <dshea@redhat.com> - 20-1
|
|
|
dae7ef |
- Rebase to kmod-20
|
|
|
dae7ef |
Resolves: rhbz#1199646
|
|
|
dae7ef |
|
|
|
1cb8b8 |
* Tue Jan 14 2015 David Shea <dshea@redhat.com> - 14-10
|
|
|
1cb8b8 |
- Allow module paths to start with /usr
|
|
|
1cb8b8 |
Resolves: rhbz#1177266
|
|
|
1cb8b8 |
|
|
|
6f41c8 |
* Tue Apr 1 2014 David Shea <dshea@redhat.com> - 14-9
|
|
|
6f41c8 |
- Support initramfs files with early_cpio
|
|
|
6f41c8 |
Resolves: rhbz#1070035
|
|
|
6f41c8 |
|
|
|
6f41c8 |
* Wed Feb 26 2014 David Shea <dshea@redhat.com> - 14-8
|
|
|
6f41c8 |
- Support xz-compressed and uncompressed initramfs files
|
|
|
6f41c8 |
Resolves: rhbz#1070035
|
|
|
6f41c8 |
|
|
|
6f41c8 |
* Tue Feb 25 2014 David Shea <dshea@redhat.com> - 14-7
|
|
|
6f41c8 |
- Require binutils for weak-modules
|
|
|
6f41c8 |
Resolves: rhbz#1069612
|
|
|
6f41c8 |
|
|
|
6f41c8 |
* Mon Feb 17 2014 David Shea <dshea@redhat.com> - 14-6
|
|
|
6f41c8 |
- Added a depmod search order as /etc/depmod.d/dist.conf
|
|
|
6f41c8 |
Resolves: rhbz#1065354
|
|
|
6f41c8 |
|
|
|
6f41c8 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 14-5
|
|
|
6f41c8 |
- Mass rebuild 2014-01-24
|
|
|
6f41c8 |
|
|
|
6f41c8 |
* Mon Jan 06 2014 Václav Pavlín <vpavlin@redhat.com> - 14-4
|
|
|
6f41c8 |
- Version bump due to build fail
|
|
|
6f41c8 |
Resolves: rhbz#1048868
|
|
|
6f41c8 |
|
|
|
6f41c8 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 14-3
|
|
|
6f41c8 |
- Mass rebuild 2013-12-27
|
|
|
6f41c8 |
|
|
|
f1da6a |
* Wed Aug 07 2013 Václav Pavlín <vpavlin@redhat.com> - 14-2
|
|
|
f1da6a |
- Run tests during build
|
|
|
f1da6a |
|
|
|
f1da6a |
* Fri Jul 05 2013 Josh Boyer <jwboyer@redhat.com> - 14-1
|
|
|
f1da6a |
- Update to version 14
|
|
|
f1da6a |
|
|
|
f1da6a |
* Fri Apr 19 2013 Václav Pavlín <vpavlin@redhat.com> - 13-2
|
|
|
f1da6a |
- Main package should require -libs
|
|
|
f1da6a |
|
|
|
f1da6a |
* Wed Apr 10 2013 Josh Boyer <jwboyer@redhat.com> - 13-1
|
|
|
f1da6a |
- Update to version 13
|
|
|
f1da6a |
|
|
|
f1da6a |
* Wed Mar 20 2013 Weiping Pan <wpan@redhat.com> - 12-3
|
|
|
f1da6a |
- Pull in weak-modules for kABI from Jon Masters <jcm@redhat.com>
|
|
|
f1da6a |
|
|
|
f1da6a |
* Mon Mar 18 2013 Josh Boyer <jwboyer@redhat.com>
|
|
|
f1da6a |
- Add patch to make rmmod understand built-in modules (rhbz 922187)
|
|
|
f1da6a |
|
|
|
f1da6a |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 12-2
|
|
|
f1da6a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
f1da6a |
|
|
|
f1da6a |
* Thu Dec 06 2012 Josh Boyer <jwboyer@redhat.com>
|
|
|
f1da6a |
- Update to version 12
|
|
|
f1da6a |
|
|
|
f1da6a |
* Thu Nov 08 2012 Josh Boyer <jwboyer@redhat.com>
|
|
|
f1da6a |
- Update to version 11
|
|
|
f1da6a |
|
|
|
f1da6a |
* Fri Sep 07 2012 Josh Boyer <jwboyer@redaht.com>
|
|
|
f1da6a |
- Update to version 10
|
|
|
f1da6a |
|
|
|
f1da6a |
* Mon Aug 27 2012 Josh Boyer <jwboyer@redhat.com>
|
|
|
f1da6a |
- Update to version 9
|
|
|
f1da6a |
|
|
|
f1da6a |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8-3
|
|
|
f1da6a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
f1da6a |
|
|
|
f1da6a |
* Wed May 23 2012 Josh Boyer <jwboyer@redhat.com> - 8-2
|
|
|
f1da6a |
- Provide modprobe.conf(5) (rhbz 824552)
|
|
|
f1da6a |
|
|
|
f1da6a |
* Tue May 08 2012 Josh Boyer <jwboyer@redhat.com> - 8-1
|
|
|
f1da6a |
- Update to version 8
|
|
|
f1da6a |
|
|
|
f1da6a |
* Mon Mar 19 2012 Kay Sievers <kay@redhat.com> - 7-1
|
|
|
f1da6a |
- update to version 7
|
|
|
f1da6a |
- fix issue with --show-depends, where built-in
|
|
|
f1da6a |
modules of the running kernel fail to include
|
|
|
f1da6a |
loadable modules of the kernel specified
|
|
|
f1da6a |
|
|
|
f1da6a |
* Sun Mar 04 2012 Kay Sievers <kay@redhat.com> - 6-1
|
|
|
f1da6a |
- update to version 6
|
|
|
f1da6a |
- remove all patches, they are included in the release
|
|
|
f1da6a |
|
|
|
f1da6a |
* Fri Feb 24 2012 Kay Sievers <kay@redhat.com> - 5-8
|
|
|
f1da6a |
- try to address brc#771285
|
|
|
f1da6a |
|
|
|
f1da6a |
* Sun Feb 12 2012 Kay Sievers <kay@redhat.com> - 5-7
|
|
|
f1da6a |
- fix infinite loop with softdeps
|
|
|
f1da6a |
|
|
|
f1da6a |
* Thu Feb 09 2012 Harald Hoyer <harald@redhat.com> 5-6
|
|
|
f1da6a |
- add upstream patch to fix "modprobe --ignore-install --show-depends"
|
|
|
f1da6a |
otherwise dracut misses a lot of modules, which are already loaded
|
|
|
f1da6a |
|
|
|
f1da6a |
* Wed Feb 08 2012 Harald Hoyer <harald@redhat.com> 5-5
|
|
|
f1da6a |
- add "lsmod"
|
|
|
f1da6a |
|
|
|
f1da6a |
* Tue Feb 7 2012 Kay Sievers <kay@redhat.com> - 5-4
|
|
|
f1da6a |
- remove temporarily added fake-provides
|
|
|
f1da6a |
|
|
|
f1da6a |
* Tue Feb 7 2012 Kay Sievers <kay@redhat.com> - 5-3
|
|
|
f1da6a |
- temporarily add fake-provides to be able to bootstrap
|
|
|
f1da6a |
the new udev which pulls the old udev into the buildroot
|
|
|
f1da6a |
|
|
|
f1da6a |
* Tue Feb 7 2012 Kay Sievers <kay@redhat.com> - 5-1
|
|
|
f1da6a |
- Update to version 5
|
|
|
f1da6a |
- replace the module-init-tools package and provide all tools
|
|
|
f1da6a |
as compatibility symlinks
|
|
|
f1da6a |
|
|
|
f1da6a |
* Mon Jan 16 2012 Kay Sievers <kay@redhat.com> - 4-1
|
|
|
f1da6a |
- Update to version 4
|
|
|
f1da6a |
- set --with-rootprefix=
|
|
|
f1da6a |
- enable zlib and xz support
|
|
|
f1da6a |
|
|
|
f1da6a |
* Thu Jan 05 2012 Jon Masters <jcm@jonmasters.org> - 3-1
|
|
|
f1da6a |
- Update to latest upstream (adds new depmod replacement utility)
|
|
|
f1da6a |
- For the moment, use the "kmod" utility to test the various functions
|
|
|
f1da6a |
|
|
|
f1da6a |
* Fri Dec 23 2011 Jon Masters <jcm@jonmasters.org> - 2-6
|
|
|
f1da6a |
- Update kmod-2-with-rootlibdir patch with rebuild automake files
|
|
|
f1da6a |
|
|
|
f1da6a |
* Fri Dec 23 2011 Jon Masters <jcm@jonmasters.org> - 2-5
|
|
|
f1da6a |
- Initial build for Fedora following package import
|
|
|
f1da6a |
|
|
|
f1da6a |
* Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-4
|
|
|
f1da6a |
- There is no generic macro for non-multilib "/lib", hardcode like others
|
|
|
f1da6a |
|
|
|
f1da6a |
* Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-3
|
|
|
f1da6a |
- Update package incorporating fixes from initial review feedback
|
|
|
f1da6a |
- Cleaups to SPEC, rpath, documentation, library and binary locations
|
|
|
f1da6a |
|
|
|
f1da6a |
* Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-2
|
|
|
f1da6a |
- Update package for posting to wider test audience (initial review submitted)
|
|
|
f1da6a |
|
|
|
f1da6a |
* Thu Dec 22 2011 Jon Masters <jcm@jonmasters.org> - 2-1
|
|
|
f1da6a |
- Initial Fedora package for module-init-tools replacement (kmod) library
|